• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Drawing after window_resize

Davidpc123

Member
Hello! I have recently been experimenting with Html5, and window resizing with some games I have already made for windows. To ensure that the screen fits in any browser I resize it, this scales down the positions and size of objects on the screen, but not anything that is drawn using the draw event. Is there any way to fix this, or a way to scale down objects and things that have been drawn? Thanks!
 

TheouAegis

Member
One way is to draw to a separate surface first, then draw that surface. That way everything scales together. Another method is to calculate the scale factor and multiply all your draw values by that.

Someone might have better ideas.
 
Top