コード例 #1
0
 @Override
 public void init() {
   GameWindowApplet applet = new GameWindowApplet(this, 640, 480);
   Renderer gameRenderer = new Java2DRenderer(applet);
   gameRenderer.setResolution(640, 480);
   gameBase = new GameBase(gameRenderer);
   gameBase.setPreferredFPS(60L);
   gameBase.startThreaded();
 }
コード例 #2
0
 @Override
 public void stop() {
   gameBase.stopThreaded();
 }