vooga.examples.resource.clock
Class DropThis

java.lang.Object
  extended by com.golden.gamedev.Game
      extended by vooga.engine.core.Game
          extended by vooga.examples.resource.clock.DropThis

public class DropThis
extends Game

Demonstrates how to initialize an OverlayClock, place it somewhere on the screen, update, and render it. The code required to actually make the game run without errors is hacked together and should be ignored. Generally, you should create your OverlayClock inside a GameState rather than in the game class.


Field Summary
static int HEIGHT
           
static int WIDTH
           
 
Fields inherited from class vooga.engine.core.Game
levelParser, myCurrentLevel, myPlayState, stateManager
 
Constructor Summary
DropThis()
           
 
Method Summary
 void initResources()
           
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
 

Field Detail

WIDTH

public static final int WIDTH
See Also:
Constant Field Values

HEIGHT

public static final int HEIGHT
See Also:
Constant Field Values
Constructor Detail

DropThis

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