This is a standalone "development" version of my first interactive contribution to aemkei's tixy.land, a fully playable snake game. Use the cursor keys to play. The play field is "infinite" and wraps around on all four edges. Which means your only enemy is your own tail. I tried to avoid typical mistakes: You don't run into yourself when accidentially moving backwards. And the red food pill will never be placed on a spot that is currently occupied by the snake (which would break the game). The only remaining glitch is that wrapping around on the left and right edge also moves the snake 1 step up or down. This is a result of the minification and could be fixed with a bit more code.

Thiemo Kreuz, 2020-11-20
More JavaScript experiments »