Advertisement
ComputerCraft32

Main.java

Jul 7th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1. package mygame;
  2.  
  3. import com.jme3.app.SimpleApplication;
  4. import com.jme3.renderer.RenderManager;
  5. import mygame.controls_states.GameState;
  6.  
  7.  
  8. /**
  9.  * This is the Main Class of your Game. You should only do initialization here.
  10.  * Move your Logic into AppStates or Controls
  11.  * @author normenhansen
  12.  */
  13. public class Main extends SimpleApplication {
  14.  
  15.     GameState gameState = new GameState();
  16.    
  17.     public static void main(String[] args) {
  18.        
  19.         Main app = new Main();
  20.         app.setShowSettings(false);
  21.         app.start();
  22.     }
  23.  
  24.     @Override
  25.     public void simpleInitApp() {
  26.      
  27.         stateManager.attach(gameState);
  28.  
  29.     }
  30.  
  31.     @Override
  32.     public void simpleUpdate(float tpf) {
  33.         //TODO: add update code
  34.     }
  35.  
  36.     @Override
  37.     public void simpleRender(RenderManager rm) {
  38.         //TODO: add render code
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement