diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-17 21:07:07 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-17 21:08:01 +0100 |
commit | 1ae914f3baf48d199985bb34c55e6b7159dfdb76 (patch) | |
tree | 01a50b77c143646429792d8760e2395dd834d0d0 /src/player.c | |
parent | 127299656cb1de29a6deffb6f982bbfcecd64d2e (diff) | |
download | hyperultra-1ae914f3baf48d199985bb34c55e6b7159dfdb76.tar.gz |
second level
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index 32f4f6f..c729085 100644 --- a/src/player.c +++ b/src/player.c @@ -48,6 +48,9 @@ player_update(Entity *this, Game *g) entity_move(this, g); if (this->vel[0] == 0.0 && this->vel[1] >= -0.0) this->player.dirx *= -1; + + if (entity_place_meeting(this, g, ET_EXIT) != NULL) + g->queue_next_scene = true; } static void |