vooga.examples.overlay.sample
Class ReachTheTop
java.lang.Object
com.golden.gamedev.Game
vooga.engine.core.Game
vooga.examples.overlay.sample.ReachTheTop
public class ReachTheTop
- extends Game
This is the Example to use the OverlayCreator Class.
The first 20 or so lines of this code have to do with the overlays,
after that it is just code to make the game run.
Objective:Reach the finish line as many times as you can. Get 10 points every
time the bomb reaches the finish line. You get 4 lives.
Use the up , down, right and left arrow keys to move.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReachTheTop
public ReachTheTop()
initResources
public void initResources()
- Overrides:
initResources
in class Game
update
public void update(long elapsedTime)
- Overrides:
update
in class Game
render
public void render(java.awt.Graphics2D g)
- Overrides:
render
in class Game
main
public static void main(java.lang.String[] args)
deductLife
public void deductLife()
livesLeft
public boolean livesLeft()