added som test files from jme and some key input to SpaceGame2
This commit is contained in:
parent
f705ff8fb4
commit
ce5b7e69d1
11 changed files with 1569 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ import com.jme.renderer.Renderer;
|
|||
import com.jme.scene.Node;
|
||||
import com.jme.system.DisplaySystem;
|
||||
import com.jmex.game.state.CameraGameState;
|
||||
import com.jmex.game.state.GameStateManager;
|
||||
import com.jmex.game.state.load.LoadingGameState;
|
||||
import com.jmex.physics.DynamicPhysicsNode;
|
||||
import com.jmex.physics.PhysicsDebugger;
|
||||
|
|
@ -32,6 +33,7 @@ public class InGameState extends CameraGameState {
|
|||
super(name);
|
||||
|
||||
LoadingGameState loader = new LoadingGameState(2);
|
||||
GameStateManager.getInstance().attachChild(loader);
|
||||
loader.setActive(true);
|
||||
// ***************** Load the Game **********************************
|
||||
|
||||
|
|
@ -62,6 +64,7 @@ public class InGameState extends CameraGameState {
|
|||
|
||||
// ***************** Done loading **********************************
|
||||
loader.setActive(false);
|
||||
GameStateManager.getInstance().detachChild(loader);
|
||||
this.setActive(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue