/u/7434365
/joeiddon

The original snake game

play it in 2d here

play it in 3d here

(arrow keys to move)

This was a proof-of-concept project to just test the basic snake game.

The main application was to use the same code (translated to C) for the Arduino Club's snake game.

However, as I was also working on my 3d graphics library at the time, I decided to also make it in 3d.

The code for this was extremely simple, as all that needed doing was to convert the 2d coordinates of the snake's body into locations of 3d blocks. It was then just a matter of picking a good camera angle to survey the game from, and that's all there was to it.

For a bit of fun, I also added a third dimension to the actual game space (so you can move up and down the z-axis as well). This was a cool idea, but ended up being virtually impossible to actually play!

See the links at the top of the page to play them.