Project #32681 - Program 5 - Java

Description

You are given three Java class files:
	- MainGame.java
	The main game class that reads user input, maintains a snake 
	and updates game board
	
	- GameBoard.java
	This class represents the board of the snake game and is 
	responsible for drawing the board in graphical mode
	
	- Coordinate.java
	A simple coordinate class to represent the location of 
	an element in a 2D array. 

	

Read through each of them and try to grasp the main logic flow of building this game. For basic part, you probably only need to understand MainGame.java and Coordinate.java). Don't worry if you see things you do not know (e.g., ActionListener, KeyAdapter, Graphics ... ). You will not be using them unless you decide to work on the extra credit part.

Fill in the code for Task 1-4 labeled in MainGame.java. Each task carries 25 points.

Once the basic tasks are done, you will be able to play a simple snake game like the one shown below:


Extra Credit (20 pts max):
You are free to add more interesting features to the game. Points will be given based on the difficulty of the features added and the overall standard of the class. Some suggestions:

- Change difficulty (such as movement speed) based on user selection or game time
- Improve the graphics part (such as drawing snake head & tail)
- Add an apple every few tens of seconds on board and the snake grows after eating an apple
- Allow user to enter name and keep/display a score board
- Add a game menu ( and functions to pause / quit to menu )

Subject Computer
Due By (Pacific Time) 06/10/2014 09:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy