I've created this game. Now I want this to be portable or running in mobile and tablet browsers as well.
I have tried almost all kind of techniques for achieving this like using <iframe>
which only adjusts the outside size and never changes the content size. I have even tried applying zoom on the <canvas>
tag which will end up not responding of <canvas>
tag.
Do I have to remake the game for different mobile resolutions every time, or is there any method to scale it according to screen device height and width, so that the content of <canvas>
tag is fully shown?
So what can I do? BTW I have also tried media queries and seems like they won't work for me because I have used preloaded in JavaScript to load my files and stuff. I would love to get any help.
P.S how does my shared link, game works on different resolutions? Any method you want to discuss or any new search on this rescaling dynamically for different resolutions of <canvas>
tag.