What's new in v1.8


Joypad support! That's what's new.

And it was a real pain to implement. The API is easy enough to understand, you just have to poll the state of the controller instead of registering event handlers. The reason this was a pain to implement is because the Gamepad API is locked behind HTTPS, so testing it locally is impossible. This is the reason Free Rings received so many updates on the 28th. They were actually release candidates for v1.8 and I was using them to test. I went through 10 of the damn things before I finally got everything working.


The joypad selection is a bit janky but should generally work fine. The first joypad to be "connected" has a permanent reference stored and used until it is disconnected. In the future, I'll probably add a UIMenu to let the player switch.

Files

free-rings-1.5.3.zip 37 kB
Aug 28, 2022
free-rings-1.6.1.zip 44 kB
Sep 09, 2022
free-rings-1.7.7.zip 27 kB
Sep 20, 2022
free-rings-1.8.1.zip Play in browser
Sep 29, 2022

Get Free Rings

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

Oh and since it requires a secure context, that probably means that the itch desktop client won't work with it, unless there was some *other* reason `crypto.randomUUID` is unavailable.

Deleted 2 years ago