Skip to content

resolution#1

Closed
bob302 wants to merge 2 commits into
Wedyarit:masterfrom
bob302:resolution
Closed

resolution#1
bob302 wants to merge 2 commits into
Wedyarit:masterfrom
bob302:resolution

Conversation

@bob302
Copy link
Copy Markdown

@bob302 bob302 commented Feb 13, 2024

Added support for scaling objects for different resolutions

Added support for scaling objects for different resolutions
@bob302
Copy link
Copy Markdown
Author

bob302 commented Feb 13, 2024

//TODO Фиксануть оцентровку текста, немного подправить константы, чтобы поле было не во весь экран

@Wedyarit Wedyarit self-requested a review February 13, 2024 18:41
- Added a rough implementation of changing the background color
@bob302
Copy link
Copy Markdown
Author

bob302 commented Feb 13, 2024

Фиксанул оцентровку, и набросал фигни с бгшкой, надо будет подчистить

@bob302 bob302 closed this Feb 13, 2024
@bob302 bob302 deleted the resolution branch February 13, 2024 19:31
@bob302 bob302 restored the resolution branch February 13, 2024 19:34
@bob302 bob302 reopened this Feb 13, 2024
@bob302
Copy link
Copy Markdown
Author

bob302 commented Feb 13, 2024

Oops

Comment thread src/main.rs
let result = ContextBuilder::new("Moon & Sun", "wedyarit")
.window_mode(conf::WindowMode::default().dimensions(1280.0, 1280.0))
.window_mode(conf::WindowMode::default()
.maximized(true)
Copy link
Copy Markdown
Owner

@Wedyarit Wedyarit Feb 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume there is no need to set the default maximum window size. Window size should be comfortable.

Comment thread src/game.rs
}
}

fn set_target_background_color(&mut self, target_color: Color, duration: f32) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method set_target_background_color is never used

Comment thread src/game.rs
use ggez::timer;
use ggez::{graphics, Context, GameResult, event::EventHandler};
use ggez::graphics::{Text, TextFragment, Color as GgezColor};
use ggez::graphics::{Color, Drawable, Text, TextFragment};
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import: Drawable

Comment thread src/game.rs
use std::fmt::Alignment;

use ggez::mint::Point2;
use ggez::timer;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import: ggez::timer

Comment thread src/game.rs
@@ -1,36 +1,51 @@
use std::fmt::Alignment;

use ggez::mint::Point2;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import: ggez::mint::Point2

Comment thread src/game.rs
@@ -1,36 +1,51 @@
use std::fmt::Alignment;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import: std::fmt::Alignment

@bob302
Copy link
Copy Markdown
Author

bob302 commented Feb 19, 2024

Тебе не впадлу было unused импорты смотреть?
Переезд

@bob302 bob302 closed this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants