A brand new game
for Windows, Linux, Mac, HTML5, 3DS Homebrew and more
Controller Rewrite - Part One
25th January, 2020
OK, I *think* I've got the controller code whittled down to a decent set of functions.
Part One is simply the One Player setup.
If you're feeling somewhat bored, open up Browsercade and give it a try.
Controllers should be ignored until you hit the A button, and should then spring to life.
Any/all controller buttons should work, but I've reduced my code down to just three buttons..
Primary button (Should default to A)
Secondary button (Should default to B)
and Start (Should default to... .. Start!)
The left thumbstick should work, but may be inverted. Let me know if yours is.. And what controller it is!
The DPad on a 360 controller should work. Any other controller's DPads, please let me know what happens, and again, what the controller is!
All other buttons on the controller will be any or all of the above, but should be "roughly" what you expect them to be.
The controller code is now an absolute mess, but is hopefully in a state where things work as expected, and where I *think* I can get a bit of Local Multiplayer stuff working, with a little more jiggery pokery.
.. I think!!
If you're reporting any issues/oddities, let me know.
1. Your controller
2. Your browser
3. The OS/Device you're playing on