- Joined
- Nov 19, 2019
- Messages
- 80
I attached a modified version of html5game.js that has some modifications that enable hi-DPI support on HTML5. The modifications are marked with "grant Hi-DPI edit". It checks if the browser scaling (window.devicePixelRatio) has changed on each frame, so it will detect if the DPI changes mid game.
Also I added this line to the head tag of CerberusGame.html
Also I added this line to the head tag of CerberusGame.html
Code:
<meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
Attachments
Last edited: