diff options
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/player.c b/src/player.c index b51572b..1871944 100644 --- a/src/player.c +++ b/src/player.c @@ -1,14 +1,15 @@ #include "entityimpl.h" IMPL(draw) { - LZR_DrawSetColor(1, 1, 1, 1); - LZR_DrawRectangle(true, this->pos[0] - this->width / 2, + TZR_DrawSetColor(1, 1, 1, 1); + TZR_DrawRectangle(true, this->pos[0] - this->width / 2, this->pos[1] - this->height / 2, this->width, this->height); } IMPL(update) { - this->vel[0] = LZR_BUTTON(RIGHT) - LZR_BUTTON(LEFT); + this->vel[0] = TZR_IsKeyDown(SDL_SCANCODE_RIGHT) + - TZR_IsKeyDown(SDL_SCANCODE_LEFT); entity_move(this, g); } |