NesJs icon indicating copy to clipboard operation
NesJs copied to clipboard

how to increase size of game window in web browser

Open thisisnottaken opened this issue 2 years ago • 1 comments

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.

thisisnottaken avatar Oct 26 '22 04:10 thisisnottaken

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.

angelo-wf avatar Nov 27 '22 22:11 angelo-wf