I am just now starting to convert some games to HTML5. Is there a way to resize it via the webpage itself or do I need to resize my games accordingly in gamemaker before the compile?
Game a certain size?
Started by ChefDavid22, Jul 27 2012 01:31 PM
4 replies to this topic
#1
Posted 27 July 2012 - 01:31 PM
#2
Posted 27 July 2012 - 04:03 PM
You can do it with javascript. Here's something related to the topic: http://www.w3schools...anvas_scale.asp
#3
Posted 27 July 2012 - 04:11 PM
Well in keeping with the context of having it all done by game maker - is it more logical to just resize my game before the html5 compile?
#4
Posted 27 July 2012 - 07:52 PM
The game will "fit" whatever canvas size is set.
The easiest way is to make a new room right at the start, set the size to be what you want the game to be (this sets the canvas size), then in the create event of the room... move to the next room.
From then on, ALL rooms will scale to FIT that first space, meaning you don't have to resize anything.
The easiest way is to make a new room right at the start, set the size to be what you want the game to be (this sets the canvas size), then in the create event of the room... move to the next room.
From then on, ALL rooms will scale to FIT that first space, meaning you don't have to resize anything.
#5
Posted 27 July 2012 - 07:55 PM
Thanks for the tip. I appreciate it.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











