Optimized code, everything is buffered in a buffered image now

This commit is contained in:
jancoow
2015-06-07 14:22:56 +02:00
parent 396769317c
commit 750f525c2d
15 changed files with 237 additions and 233 deletions
+2
View File
@@ -14,6 +14,7 @@ public class GameStateManager {
private List<GameState> gamestates;
public GameState currentState;
private int index = 0;
public int fps;
public enum State {
TITLE_STATE,
@@ -44,5 +45,6 @@ public class GameStateManager {
public void update(float factor){
currentState.update(factor);
fps = (int) (60/(factor/10));
}
}