diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-04 23:19:02 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-04 23:19:02 +0100 |
commit | 3bc9c114df783f37bd14339e3f29f80de97ad240 (patch) | |
tree | b4ff948dc47a69213347b18cff787cc3f6383024 | |
parent | 81efbd3a866fe3f99768b03c341b7b9d11dda9de (diff) | |
download | gold-mine-run-3bc9c114df783f37bd14339e3f29f80de97ad240.tar.gz gold-mine-run-3bc9c114df783f37bd14339e3f29f80de97ad240.zip |
Set the direction as it must be 0
-rw-r--r-- | src/effect.c | 1 | ||||
-rw-r--r-- | src/game.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/effect.c b/src/effect.c index 030f223..e308054 100644 --- a/src/effect.c +++ b/src/effect.c @@ -24,6 +24,7 @@ static const Rect frames[2 * 4] = void effect_out_init(Entity *e) { e->frames = (const Rect *)frames; + e->dir = DIR_RIGHT; e->frame = 1; e->delay = 0; e->update = effect_out_update; @@ -205,6 +205,13 @@ void run_game() tmonster = NULL; } + if (map_is_complete()) + { + tmonster = NULL; + timer_stop(); + entities_warp_out_all(); + } + entities_draw(); player_draw(); |