vooga.examples.player
Class GameExample

java.lang.Object
  extended by Game
      extended by vooga.examples.player.GameExample

public class GameExample
extends Game

This game is an example of how to use the sprite-switching features of the new core Sprite if you were unable to write a good Level XML file. Normally, all of the initialization code would be handled by the Level parser and done automatically. However, this is a good demonstration of the "setAsRenderedSprite()" method. See the update method for its use. PLEASE VISIT THE level1.xml FILE FOR AN EXAMPLE OF HOW TO CREATE THESE SPRITES USING XML, WHICH IS HOW IT REALLY SHOULD BE DONE.


Constructor Summary
GameExample()
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameExample

public GameExample()
Method Detail

initResources

public void initResources()

update

public void update(long elapsedTime)

render

public void render(java.awt.Graphics2D g)

main

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