Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mygame;
- import com.jme3.app.SimpleApplication;
- import com.jme3.renderer.RenderManager;
- import mygame.controls_states.GameState;
- /**
- * This is the Main Class of your Game. You should only do initialization here.
- * Move your Logic into AppStates or Controls
- * @author normenhansen
- */
- public class Main extends SimpleApplication {
- GameState gameState = new GameState();
- public static void main(String[] args) {
- Main app = new Main();
- app.setShowSettings(false);
- app.start();
- }
- @Override
- public void simpleInitApp() {
- stateManager.attach(gameState);
- }
- @Override
- public void simpleUpdate(float tpf) {
- //TODO: add update code
- }
- @Override
- public void simpleRender(RenderManager rm) {
- //TODO: add render code
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement