I edited this program to have a button at the beginning to start the game. Also, there are buttons at the end of the game to either restart the game, or quit the game.
If you want to change the size of the playing window it only requires one change in the snake.java file. The program is able to use that setting in the algorithm to place food within the grid.
Enjoy, Eric
Attachment:
File comment: This is the snake program I changed. M_snake.zip [56.55 KiB]
Downloaded 290 times
For this message the author cartkid08 has received gratitude : msi_333
Re: Snake Java (SE) Game
Fri Jun 03, 2011 8:59 pm
Ive got a question...about the upper snake game...can anybody edit so when you start the program, it shows a blank window with a button "start the game" and the button "exit". And when you click start, then a new windows shows up where you play the game.
I seriously dont know how to do that, i tried different things, but unsuccessful...