package yourclass ; import fang.* ; import java.awt.Color ; import java.awt.geom.* ; public class YourClass extends GameLoop { // put class variables here private OvalSprite example ; public void startGame( ) { // want to make sprites and intialize any other field instances (class variables) and then add sprites to canvas makeSprites( ) ; addSprites( ) ; } public void makeSprites( ) { // create sprites here like... example = new OvalSprite( 1, 1 ) ; example.setLocation( .5, .5 ) ; example.setScale( .1 ) ; example.setColor( Color.RED ) ; } public void addSprites( ) { // add sprites to the canvas canvas.addSprite( example ) ; } public void advanceFrame( double timePassed ) { // handle the gameplay here, called every frame // usually a "handleCollisions" method is called from here when needed } public static void main( String[ ] args ) { YouClass yc = new YourClass( ) ; yc.players = 1 ; // number of players yc.playersSelectable = false ; // whether you want the user to be able to change the number of players when the game starts up yc.runAsApplication( ) ; } }