public static void main(String[] args) {
   Game game = new TargetSlowestExample(DEFAULT_WIDTH, DEFAULT_HEIGHT);
   GameLoop loop = new GameLoopVariable(0.1f);
   GameScreen screen = new GameScreen(DEFAULT_WIDTH, DEFAULT_HEIGHT, true, loop, game);
   screen.setBackground(Color.black);
   GameScreen.showWindow(screen, "TargetAverageExample");
 }
Пример #2
0
 public static void main(String[] args) {
   Game game = new FovTest();
   GameLoop loop = new GameLoopVariable(0.1f);
   GameScreen screen = new GameScreen(WIDTH, HEIGHT, false, loop, game);
   screen.setBackground(Color.black);
   GameScreen.showWindow(screen, "Field-of-view Test");
 }