Skip to content

Commit

Permalink
This will contain all tutorials from 3 through 5. Input, Collision, a…
Browse files Browse the repository at this point in the history
…nd Sound.
  • Loading branch information
carldea committed Jun 9, 2012
1 parent 153ce24 commit a8fc035
Showing 1 changed file with 35 additions and 0 deletions.
@@ -0,0 +1,35 @@
package carlfx.demos.navigateship;

import carlfx.gameengine.GameWorld;
import javafx.application.Application;
import javafx.stage.Stage;

/**
* The main driver of the game.
*
* @author cdea
*/
public class Part3_4_5 extends Application {

GameWorld gameWorld = new TheExpanse(59, "JavaFX 2 GameTutorial Part 4 Collision");

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
launch(args);
}

@Override
public void start(Stage primaryStage) {
// setup title, scene, stats, controls, and actors.
gameWorld.initialize(primaryStage);

// kick off the game loop
gameWorld.beginGameLoop();

// display window
primaryStage.show();
}

}

0 comments on commit a8fc035

Please sign in to comment.