vooga.examples.overlay.sample
Class ReachTheTop

java.lang.Object
  extended by com.golden.gamedev.Game
      extended by vooga.engine.core.Game
          extended by 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.


Field Summary
 
Fields inherited from class vooga.engine.core.Game
levelParser, myCurrentLevel, myPlayState, stateManager
 
Constructor Summary
ReachTheTop()
           
 
Method Summary
 void deductLife()
           
 void initResources()
           
 boolean livesLeft()
           
static void main(java.lang.String[] args)
           
 void render(java.awt.Graphics2D g)
           
 void update(long elapsedTime)
           
 
Methods inherited from class vooga.engine.core.Game
addGameState, getCurrentLevel, getGameStateManager, getPlayGameState, getResourceXMLPath, initGameStates, initSoundPlayer, launch, setAsPlayGameState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReachTheTop

public ReachTheTop()
Method Detail

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()