diff options
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c index cdf42c7..a4d346e 100644 --- a/src/player.c +++ b/src/player.c @@ -3,6 +3,7 @@ IMPL_INIT(player, 0) { IMPL_UNUSED; this->height = this->width = 5; + this->pos[1] -= 1; } IMPL(update) { @@ -23,8 +24,11 @@ IMPL(update) { else this->vel[1] += 0.1; + if (this->pos[0] > PX_WIDTH) { + g->queue_next_scene = 1; + printf("YO\n"); + } move(); - camera_update(this->vel); } IMPL(draw) { |