superSnake
%This project was made by Bill and Terry
The whole game is constructed using different classes.
1. snakeClass.m controls the movement of the snake.
2. mapClass.m is used to detect collisions.
3. itemClass.m defines the actions of each item and how they are spawned.
4. graphicsClass.m does graphic initialization and snake drawing.
5. snakeStateClass.m is a additional class which defines the logic to snake's duration effects.
6. gameClass.m uses all the above classes and manage them to form the game.
"superSnake.m" is the main entry of the game. Start the game using "superSnake.m".
To play the game, simply use 'W', 'A', 'S', 'D' to move the snake.
A "readMe/readMe.txt" includes the details on how to play the game.
Cite As
Bill and Terry (2019). superSnake (https://www.mathworks.com/matlabcentral/fileexchange/<...>), MATLAB Central File Exchange. Retrieved April 9, 2019.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.