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
3 Answers
+ 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
0
thank you Rei
0
youre the class prefect now