File Exchange

image thumbnail


version (227 KB) by Rob
3-dimensional version of the classic Snake. playsnake starts the game!!! Takes some practice.

1 Download

Updated 24 Sep 2012

View Version History

View License

**hopefully this works, my friends' computers had problems running this game, but I don't know why**
This is one of the first programs my friend and I have ever made, so the code is likely not organized very understandably. We have no formal programming experience; this was all made through trial and error. From what we can find, this game has never been made before, we came up with this on our own. Any feedback is appreciated!

Cite As

Rob (2021). Snake3D (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Mingjing Zhang

If you mean the voices I heard when the snake hit itself or when the game is over, yes the sounds do work (What does it say when the snake hits the wall? It sounds like "dooh" but I cannot make anything out if it).

I think you are right about the apple's shadows. I pictured in my mind what the game would have looked like if the shadows of the apple are added, and it does not appear good.

It seems that you have a great team and you guys really had fun. I envy you guys. When I tried to write a game, I never get to work with a team...Anyway, you guys should keep going and make more things like that.


Thank you mingjing! Just out of curiosity, did the sounds work on your computer?

And in response to the apple's shadows, we originally had those, but the game ended up feeling more like 2D snake played with the 3 shadows. Hard to explain. The way to play without the apple's shadows is to match the color of the snake with the apple, then you know you are on the same level. We were hoping this would make it feeling more "3D."

Again, thanks for the feedback!

Mingjing Zhang

Well designed game with good player experience. I especially like the practice mode. The projections of the snake on three surfaces are very helpful for locating the snake in the 3D space.

The only problem I find is that the position of the apple (or whatever you may call it) is hard to determine since its projections are not shown on the walls of the cube.

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!