W14 | andrewberls 4pm | thetomcraig, sdrhoads | Running game with obstacles.
W16 | omeed 5pm |Dongyang Li, Yueyang Li| Running game with obstacles.
M16 | |Karli Yokotake, Yuxiang (Ethan) Wang | Running game with obstacles.
#Game Description
Country Runner is an "avoid-the-obstacles" sidescroller game. Ride your piggy through the countryside landscape while dodging livestock and other obstacles in your way. Crash into anything, and you'll fall off your pig...thats Gameover. The farther you get and the more obstacles you skillfully avoid the higher your score. View your highest scores on the title page...and try to beat them of course!
##Title Screen
Use the UP and DOWN arrow keys to cycle through your options. Press RIGHT to select. Select Play to start the game. Select High Scores to display user high scores. Select Instructions to learn how to play. Select Choose Difficulty choose the difficulty of the game. Select Choose Avatar to choose an avatar to pay. Select Choose Background to choose a background for the game. (The HighScores will be displayed on a pop up on Title Page)
##Instuctions
Avoid all obstacles that come into the screen. Could be a stationary scarecrow, or a dashing sheep. Some crows could be overhead so time your jumps carefully. Press the Up arrow key to jump, Left/Right arrow keys to move forward or backward.
#Developer Notes
These notes will help the current or future developers understand the overall goals for Country Runner as well as some suggestions on how to imlement some of the main features.
##Country Runner Version 1.0
Country Runner is a sidescroller game developed in Java.
###General Mechanics of the Game
The runner is fixed at a constant X coordinate and translates his Y coordinate. To make the runner look like he is moving in the X direction, the background's X coordinate translates at the speed that you want the runner to appear to move.
The background will be continuously replaced with the next bit of stage of in the background to make it appear as if the runner is traveling. This will also make jumping look like an arc. The background can repeat.
We want the motion of the runner "feel good." Jumping should models simple physics; for example, slowing down until he reaches highest point in jump, and then speeds up on the way down. The jumps will be exaggerated so that he can actually jump over the obstacles.
###Running and Testing the Game
We are using ant to automate compiling, testing, and running.
Type ant run
to compile and run the game.
Type ant -p
to view the currently available tasks you can perform.
##Ideas Future Versions of Country Runner Prevent the add score button from showing up on the game over screen when the score is 0.
Set a boundary that prevents the player from moving of the screen.
Runner jumps longer by holding down the UP button. Quickly tapping the UP button will result in shorter jumps.
Layer the background to create depth. Layering wil consist of of several backgrounds (some of which have transparent parts) that each scroll slightly faster then one behind it.
##M16 Final Remarks
This is a game that we control a character to move and jump to avoid obstacles and get scores. Once the character collides with obstacles, game is over. The Gui.java is to create the window. The JPanel and title screen classes are used to draw image in different states of the game. Runner, Sheep and Snail classes which extends Sprite class will create and handle the state and behavior of the objects in the game. Runner object is the main character. Sheep, Snail, Racoon, and Panda objects are the obstacle objects. For future development of this legacy project, developer could prevent the player from moving off screen. Also, developer can add shoot method to let the main character or obstacles shoot. Furthermore, developers also can make a layered background which makes the game look more comfortable. For the opportunity of refactoring the project, future developers can move the action listeners out and create a InputHandler class to handle user inputs.