vooga.examples.player
Class GameExample
java.lang.Object
Game
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameExample
public GameExample()
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)