From b0feeb20997896ff27d09fd1e50ed95c6da79b3d Mon Sep 17 00:00:00 2001 From: nemo Date: Tue, 8 Oct 2024 10:48:20 +0200 Subject: [PATCH] debug player --- main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 796e0ba..02f59b0 100644 --- a/main.c +++ b/main.c @@ -79,10 +79,8 @@ int main(void) PlayerType player_type = PLAYER_MINIGUN; - if (player_type == PLAYER_NINJA) - load_ninja(); - else if (player_type == PLAYER_MINIGUN) - load_minigun(); + load_ninja(); + load_minigun(); bullet_load(); @@ -93,6 +91,12 @@ int main(void) camera.offset = SCREEN_MIDDLE; } +#ifndef RELEASE + if (IsKeyPressed(KEY_SPACE)) { + player_type = (player_type+1)%PLAYER_COUNT; + } +#endif + if (ninja_dash_time() <= EPSILON) { float movement_speed = 10.0f * DT * 50; if ((key_down(KC_UP) || key_down(KC_DOWN)) && (key_down(KC_LEFT) || key_down(KC_RIGHT)))