Commit Graph

16 Commits

Author SHA1 Message Date
Colin McMillen
528d9577eb move gamepad handling into a separate class 2019-09-25 17:22:04 -04:00
Colin McMillen
c0cd1e6df3 remove unused fields & unneeded vendor prefixes 2019-09-25 16:36:25 -04:00
Colin McMillen
3dbf2d96c6 add comment to SnesInput 2019-09-25 16:17:44 -04:00
Colin McMillen
02c1907d26 add SnesInput class to represent controller input
separate input handling (from keyboard and gamepad) from the results
thereof
2019-09-25 16:10:03 -04:00
Colin McMillen
e13c4d0985 bugfix: ensure that canvas scale is at least 1x 2019-09-25 15:49:19 -04:00
Colin McMillen
3e9a45a7c3 use zsnes default keybindings for keyboard control 2019-09-25 15:33:45 -04:00
Colin McMillen
aed6bdd877 create a CharacterSprite class
add ability to switch between character graphics by pressing R
2019-09-25 15:06:27 -04:00
Colin McMillen
6d5e92faec move xxArrowPressed globals into the Input class 2019-09-25 13:29:26 -04:00
Colin McMillen
d06c5a49c4 add SNES_WIDTH and SNES_HEIGHT constants 2019-09-25 10:40:10 -04:00
Colin McMillen
0ebdf6f47f autoscale canvas based on browser dimensions.
add more canvas scale options.
hide canvas element until scale is set.
2019-09-25 10:24:31 -04:00
Colin McMillen
1506b7a3eb make image-rendering: pixelated work in firefox
set default scale back to 4x
2019-09-24 21:21:23 -04:00
Colin McMillen
f8a3be556d set default scale to 3x.
fix a map typo.
2019-09-24 20:54:10 -04:00
Colin McMillen
822a5a108e add basic keyboard controls 2019-09-24 20:16:01 -04:00
Colin McMillen
ce3ee42c4e add tiled background rendering and one ghosty boi 2019-09-24 19:44:08 -04:00
Colin McMillen
d7a88b6d67 remove unused variable 2019-09-24 15:08:04 -04:00
Colin McMillen
3cd1b66965 add main.js & main.html 2019-09-24 14:57:24 -04:00