diff options
Diffstat (limited to 'mazeoflife.cpp')
-rw-r--r-- | mazeoflife.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mazeoflife.cpp b/mazeoflife.cpp index 06a2ca2..cbf1f1d 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp | |||
@@ -27,13 +27,15 @@ int main(int argc, char *argv[]) | |||
27 | } | 27 | } |
28 | 28 | ||
29 | SDL_WM_SetCaption("Maze Of Life", NULL); | 29 | SDL_WM_SetCaption("Maze Of Life", NULL); |
30 | SDL_EnableKeyRepeat(100, 50); | 30 | SDL_EnableKeyRepeat(150, 75); |
31 | 31 | ||
32 | State* state = new GameState(screen->format); | 32 | State* state = new GameState(); |
33 | 33 | ||
34 | SDL_Event anEvent; | 34 | SDL_Event anEvent; |
35 | for (;;) | 35 | for (;;) |
36 | { | 36 | { |
37 | state->tick(); | ||
38 | |||
37 | while (SDL_PollEvent(&anEvent)) | 39 | while (SDL_PollEvent(&anEvent)) |
38 | { | 40 | { |
39 | switch (anEvent.type) | 41 | switch (anEvent.type) |