NesJs
NesJs copied to clipboard
how to increase size of game window in web browser
hi , i was looking for nes emulator with web gui . this allows me cast the browser tab to tv via chromecast . how can i increase the size of game window ?
thanks.
To change the canvas's size, change the sizes in style.css
(lines 25 and 26). Or use the fullscreen-API, by adding a button and having it call c.requestFullscreen()
(or c.webkitRequestFullscreen()
in Safari).
If I ever get back to working on this, a better UI with fullscreen support (and stuff like key-rebinding) is something I have wanted to add. I don't know if I will ever get back to it though, Javascript is not that good of a fit for emulator-development, so motivation for this project is quite low.