Hi everyone! I wanted to learn Typescript and experiment with PWAs[1] so I decided to create these little games. In fact if you go to <a href="https://xojoc.pw/games2d/" rel="nofollow">https://xojoc.pw/games2d/</a> in some mobile browsers you'll receive a prompt to install the games. They should work offline too.<p>You can find the code on my GitHub: <a href="https://github.com/xojoc/games2d" rel="nofollow">https://github.com/xojoc/games2d</a><p>[1] <a href="https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/Progressive_web...</a>
I get 4 snakes, can control one, the rest remain stationary. It will then also show circle-food thingies that jump around, but always of a color that's not mine.<p>I suspect that's not how it is supposed to play, no? Using Mobile Safari.
This makes me want to try a version where you control two snakes at once.<p>The steering interface is much harder than the traditional 4-direction version. (Not saying that's good or bad, just saying it.)
Neat little game, but the controls suck.<p>I think it'd be a lot easier to control the snake if you had the turning radius start wider and decrease over dozens of frames of constant turning before clamping to the tight one you currently use initially. That way the player could modulate turning a bit to maintain a larger turning radius, as well as make subtle corrections with small taps.
I also was confused by the 4 snakes concept. I think perhaps it could have been solved by putting a different color food in front of the snake when the board is initialized. This way the "time to snake change" is reduced drastically.
this is a great game, I only with it had less degrees of freedom (I.e. only 4/8 directions), it's super difficult to control while also thinking for me :)