0

Please help with the code for canvas height.

I need you guys to help me. Created a game and I wanna make it full screen https://code.sololearn.com/WjNr18bkom1J/?ref=app

6th Nov 2020, 10:00 PM
Leon Marie Maris
Leon Marie Maris - avatar
3 odpowiedzi
+ 2
you can change it in css, changing the actual canvas size might mess with the game calculation. where as css size will only affect how the game displayed, the actual game window will be the same. just make sure the canvas actual size and display (css) size are in same aspect ratio, so your game wont look stretched/squashed
6th Nov 2020, 11:21 PM
Rei
Rei - avatar
0
thank you Rei
7th Nov 2020, 12:04 PM
Leon Marie Maris
Leon Marie Maris - avatar
0
youre the class prefect now
7th Nov 2020, 12:04 PM
Leon Marie Maris
Leon Marie Maris - avatar