Code covered by the BSD License  

Highlights from
Classic Snake Game in MATLAB GUI

4.0

4.0 | 1 rating Rate this file 86 Downloads (last 30 days) File Size: 260.49 KB File ID: #29103
image thumbnail

Classic Snake Game in MATLAB GUI

by Akash Gupta

 

21 Oct 2010 (Updated 26 Oct 2010)

Enjoy a simple and easy to play game where the snake needs to feed on its prey.

| Watch this File

File Information
Description

Unzip the 'Snake.zip' and run the game.m file. The game controls are present on the GUI screen that comes up and are self explanatory, although small annotations have been added for easier grasp.

Hope you enjoy.
A better version with subtle scoring methods and riskier play will be uploaded in time.

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
21 Oct 2010 Sean de

??? Error using ==> wavplay at 36
WAVPLAY is only for use with Windows machines.

Use a simple check:
if ispc; wavplay...;end
So those of us without windows don't get an error every time we get the food.

21 Oct 2010 Zachary Danziger

Perhaps you can explain how this is better/worse/different than previous snake-game submissions:
http://www.mathworks.com/matlabcentral/fileexchange/?term=snake+nokia

26 Oct 2010 Binbin Qi

i don't know how to exit the game?can you tell me?

30 Oct 2010 Akash Gupta

The wavplay error has been redeemed.
To exit, one will have to stop the execution of the game by going to MATLAB command line and typing CTRL+C.
This is my first attempt at such an endeavour and I haven't seen other submissions in this regard.

06 Nov 2010 Akash Gupta

The game is designed through the application of mild image processing.

18 Nov 2010 w sq

Although your program is good, i found it coundn't resume when I pushed the 'PAUSE' button. Matlab 'paush' function can be waken up by any key, but it is just once. What's mean is that when you click one time, it's be waked up. But this doesn't continuous. So can you solve this little problem?

Please login to add a comment or rating.
Updates
26 Oct 2010

will not give error on Linux.

Tag Activity for this File
Tag Applied By Date/Time
classic snake game Akash Gupta 21 Oct 2010 11:31:49
gui Akash Gupta 21 Oct 2010 11:31:49
game Akash Gupta 21 Oct 2010 11:31:50
matlab Akash Gupta 06 Nov 2010 11:16:24
image processing Akash Gupta 06 Nov 2010 11:16:59

Contact us at files@mathworks.com