diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index b2244d2..42baa75 100644 --- a/src/main.c +++ b/src/main.c @@ -200,7 +200,7 @@ int main(int const argc, char *const *const argv) { int x = 0, y = 0; player_new(); player_property(player, "x", "40"); - player_property(player, "y", "40"); + player_property(player, "y", "64"); while (1) { SDL_Event evt; while (SDL_PollEvent(&evt)) { @@ -302,7 +302,9 @@ int main(int const argc, char *const *const argv) { SDL_RenderClear(renderer); //SDL_RenderCopy(renderer, tilemap->wang_tileset, &(SDL_Rect) {0, 0, 128, 90}, &(SDL_Rect) {0, 0, 128, 90}); - player[0].update(player); + if (player[0].update(player)) { + break; // TODO: game over state + } //x += input_right(input_now) - input_left(input_now); //y += input_down(input_now) - input_up(input_now); |