|
RHS |
Henway
As described in class you're to create the game "Henway" where a chicken is trying to cross a four-laned road (two lanes in each direction).
The chicken starts at a "free" area at the left side of the road and wants to go to a similar free area at the right side of the road.
Each lane has one car travelling at fixed speed.
If the chicken collides with a car it dies - three lives are supplied at start of the game.
Of on the other hand the chicken reaches the other side it earns a bonus.
In both situations a sound is played and the chicken re-starts from the left side - unless no more lives are available.
In the latter case the game ands by showind the total score on the screen.
Below are ressources for the game (images and icon) as well as a detailed template for game-canvas (fill in where you see // PUT YOUR OWN CODE..)
The sounds used in the game are simple system.sounds supplied by most mobile phones.
| Java files | HCanvas.java HenwayMIDlet.java |
||
Icon |
Henway_icon.png (to be used for the application manager) | ||
| Images | Car1.png Car2.png Car3.png Car4.png Chicken.png (consistes of two sub-images") ChickenHead.png (to show number of remaining lives) Highway.png (the road / background) |