New games every week!
Maths Complications
29th September 2020  
Spent most of yesterday working out ratios.


The HERO in Browsercade game requires a lot of scaling for various resolutions.
For the most part, I've opted to simply fade out the "screen" at the top and bottom, which helps immensely, but isn't something I typically like to do.

I did try drawing the rooms above/below, but due to the way the levels are built up, that led to some ... oddities..

Instead, I fell back on the fade-out method, and .. That'll do. It's close enough!

The next complication is scaling those values so that the game "feels" the same no matter the resolution.
Typically I use floats for everything, but have opted to use real screen co-ordinates for this one. .. But I don't think I'll do that, 'cos it's all getting muddled up.

Right then.. Work to do.

Views 79, Upvotes 5  
Daily Blog , Browsercade
New games every week!
Site credits : If you can see it, Jayenkai did it.
(c) Jayenkai 2017 and onwards, site design Rychan. RSS feed
Blog - Maths Complications - AGameAWeek