LWJGL state drawing but nothing else?

Hi,

I am using states to make a game, and when I run the program, everything draws, but the entire screen is as if its frozen, nothing moves and no physics work :confused:

Here is my GameState code:
http://pastebin.java-gaming.org/03784172a8c

and here is my Player code as an example of the entities:
http://pastebin.java-gaming.org/378472a2c80

It works if I put it in the code that launches the game, but if I put the gamestate code in its own class, then nothing moves for some reason.

Thanks,

  • Dan

Maybe this is the problem:


   // Draw Everything
public void draw() {
   ....
   entityDraw();
   ....
}

It creates a new player, so position is resetted.


   public void entityDraw() {
      // Add Entities
      player = new Player();
      enemy = new Enemy();
      particleList = new ArrayList<Particle>(0);

   }