1 decade ago by anasbud
Hi,
I am having trouble making my game fullscreen in all devices...
I use tiles of 70x70, and i would like to always have top and bottom borders on my screen like this :
- http://i.imgur.com/edVWRUc.png (PC)
- http://i.imgur.com/egbaVBT.png (landscape smartphone)
Here some picture :
- On big screen (PC) it's seems ok (ish) :
I am having trouble making my game fullscreen in all devices...
I use tiles of 70x70, and i would like to always have top and bottom borders on my screen like this :
- http://i.imgur.com/edVWRUc.png (PC)
- http://i.imgur.com/egbaVBT.png (landscape smartphone)
Here some picture :
- On big screen (PC) it's seems ok (ish) :
1 decade ago by stillen
How are you setting the game full screen, by CSS or by redrawing the game?
If you are doing it by CSS, then the game will stretch, but you can keep it proportional and depending on how you set the CSS, it will either letter box or be aligned.
If you are doing it by adjusting the game size, then the game will show more of the level/board because the canvas area is larger instead of scaled like in css.
If you are doing it by CSS, then the game will stretch, but you can keep it proportional and depending on how you set the CSS, it will either letter box or be aligned.
If you are doing it by adjusting the game size, then the game will show more of the level/board because the canvas area is larger instead of scaled like in css.
1 decade ago by anasbud
What is the best way to do it ?
I was using the Jump'N'Run script but the top borders won't appear...
I can't see what's wrong... The size of tiles is too big ?
I was using the Jump'N'Run script but the top borders won't appear...
I can't see what's wrong... The size of tiles is too big ?
1 decade ago by stillen
If you want to keep the game screen constant, then use CSS, but that will make the game pixelate on huge screens, it will scale like an image on a website then.
If you want to show more of the game level, you could also set a max height so the game is always as tall as the level but allow the game to draw more of the level width wise. This works kinda like overflow on a div.
If you want to show more of the game level, you could also set a max height so the game is always as tall as the level but allow the game to draw more of the level width wise. This works kinda like overflow on a div.
Page 1 of 1
« first
« previous
next ›
last »