Skip to content

Experimental#2

Open
bob302 wants to merge 5 commits intoWedyarit:masterfrom
bob302:experimental
Open

Experimental#2
bob302 wants to merge 5 commits intoWedyarit:masterfrom
bob302:experimental

Conversation

@bob302
Copy link

@bob302 bob302 commented Feb 19, 2024

  • implemented better window resize handling
  • still need some tweaks with speed but collision handling seems to work as intended

Added support for scaling objects for different resolutions
- Added a rough implementation of changing the background color
- Almost done dynamic resizing of objects and collisions
- Got rid of warnings
- Can compile for lulz
@bob302 bob302 mentioned this pull request Feb 19, 2024
- implemented much smoother window resize
- speed scaling is now proportional to scale
let text_fragment = TextFragment::new(format_squares_numbers(count_objects(&self.squares, Team::MOON), count_objects(&self.squares, Team::SUN)))
.font("LiberationMono")
.scale(40.0)
.scale(40.0 * self.scale_factor)
Copy link
Owner

Choose a reason for hiding this comment

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

Better to extract into a separate constant.

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

Comments