You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using percentage units, we should use virtual pixels to draw our rooms and items, allowing players to create rooms that are not square.
We should also add multiple scaling options, for example Scaling.REAL, which would mean that each virtual pixel is exactly one real pixel, Scaling.FILL_PARENT to stretch the room to it's parent canvas size, etc.
The text was updated successfully, but these errors were encountered:
I think that it would make framework much more complex to use and to maintain. It could be useful pro feature - for those who want more. But this framework is meant for kids. When you want more than it offers, you can simply write your own functions in JavaScript . We can give them convert functions that helps them do that: game.addAngryRobot(pixelsToPercents(224));
Not squared rooms could exists but best would be in way with percents. new Room(0.5, 0.5);
Or with direct pixels: new Room(pixelsToPercents(250), pixelsToPercents(250));
But maintaining project where you will have to support multiple options, scaling and virtual pixels would be painful.
Instead of using percentage units, we should use virtual pixels to draw our rooms and items, allowing players to create rooms that are not square.
We should also add multiple scaling options, for example
Scaling.REAL
, which would mean that each virtual pixel is exactly one real pixel,Scaling.FILL_PARENT
to stretch the room to it's parent canvas size, etc.The text was updated successfully, but these errors were encountered: