Release

Snake

9

nathanielbabiak 2023-11-11 04:07 (Edited)

snake.nx | Open in app
2023-11-28 02:07
snake.nx | Open in app
2023-11-12 15:39
snake.nx | Open in app
2023-11-11 04:07

was8bit 2023-11-11 14:40

Very cool :)


Pablo 2023-11-12 05:26

Very cute game!


JudgeGroovyman 2023-11-23 04:50

This is super smooth and one of the best snake games i have ever played. Nice work!


nathanielbabiak 2023-11-24 04:02 (Edited)

Thanks! I noticed there aren't any examples of this type of "smooth" control on the site. Figured I'd upload this by way of an example.

I added a queue to the input stream so that pressing a direction button a few frames early doesn't require it to be held down through the turn. Something like, "what was the last button pressed, if different than the current direction?" "OK, I'll go that direction at the next available opportunity."


JudgeGroovyman 2023-11-25 13:06

Brilliant! I found (and fixed) a small bug: accidentally pressing even just a little bit diagonally backwards sometimes made the snake die. For example going right if you push nw it would die. Adding this before the end if in input_grad fixed it ‘’’IF HORZ THEN VERT =0’’’

Got a great high score too!


JudgeGroovyman 2023-11-25 13:13

High score! 47!


nathanielbabiak 2023-11-26 01:59

Thanks for the fix! I noticed something like that was happening, glad it's figured out. I'll revise once I'm back from Thanksgiving travels.


Log in to reply.