vooga.games.tron
Class DropThis

java.lang.Object
  extended by com.golden.gamedev.Game
      extended by vooga.engine.core.Game
          extended by vooga.games.tron.DropThis

public class DropThis
extends Game


Field Summary
 ColorBackground backGround
           
 
Fields inherited from class vooga.engine.core.Game
levelParser, myCurrentLevel, myPlayState, stateManager
 
Constructor Summary
DropThis()
           
 
Method Summary
 void afterCollision()
          handles what happens after a collision happens (game over phase)
 void buildBlockWall()
          fills in the grid spaces behind the players with collidable blocks.
 void createRandomBonus()
          create random bonuses for the level
 void createRandomLevelBlocks()
          create random obstacle blocks for the level
 void initializeBlocks()
          initialize the blocks
 void initializeCollisionManagers()
          Initialize the collision managers
 void initializeNewLevel()
          Create a random level with random blocks
 void initializePlayfield()
          Initialize the playfield
 void initResources()
          Initializing the resources, initializing the game
static void main(java.lang.String[] args)
           
 void render(java.awt.Graphics2D g)
          render the graphics
 void update(long elapsedTime)
          Update the frames
 
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

backGround

public ColorBackground backGround
Constructor Detail

DropThis

public DropThis()
Method Detail

initResources

public void initResources()
Initializing the resources, initializing the game

Overrides:
initResources in class Game

initializeNewLevel

public void initializeNewLevel()
Create a random level with random blocks


createRandomBonus

public void createRandomBonus()
create random bonuses for the level


initializeBlocks

public void initializeBlocks()
initialize the blocks


createRandomLevelBlocks

public void createRandomLevelBlocks()
create random obstacle blocks for the level


initializePlayfield

public void initializePlayfield()
Initialize the playfield


initializeCollisionManagers

public void initializeCollisionManagers()
Initialize the collision managers


update

public void update(long elapsedTime)
Update the frames

Overrides:
update in class Game

buildBlockWall

public void buildBlockWall()
fills in the grid spaces behind the players with collidable blocks.


afterCollision

public void afterCollision()
handles what happens after a collision happens (game over phase)


render

public void render(java.awt.Graphics2D g)
render the graphics

Overrides:
render in class Game

main

public static void main(java.lang.String[] args)