fixe building animations

This commit is contained in:
Ziver Koc 2007-05-07 13:46:41 +00:00
parent bdd9d6c746
commit ae32a0a298
4 changed files with 18 additions and 14 deletions

View file

@ -28,18 +28,19 @@ public class EndGameState extends GameState{
case VICTORY:
Sprite v = new Sprite("Victory","data/victory.png");
v.setLocation(new Vector3f(
(LWJGLGameWindow.getWidth()/2),
(LWJGLGameWindow.getHeight()/2),0.0f));
(LWJGLGameWindow.getWidth()/2+LWJGLGameWindow.getCamera().getLocation().getX()),
(LWJGLGameWindow.getHeight()/2+LWJGLGameWindow.getCamera().getLocation().getY()),0.0f));
fade.setEntity(v);
break;
case DEFEAT:
Sprite d = new Sprite("Defeat","data/defeat.png");
d.setLocation(new Vector3f(
(LWJGLGameWindow.getWidth()/2),
(LWJGLGameWindow.getHeight()/2),0.0f));
(LWJGLGameWindow.getWidth()/2+LWJGLGameWindow.getCamera().getLocation().getX()),
(LWJGLGameWindow.getHeight()/2+LWJGLGameWindow.getCamera().getLocation().getY()),0.0f));
fade.setEntity(d);
break;
}
}
InGameState.input(false);
}
@Override