debug player

This commit is contained in:
nemo 2024-10-08 10:48:20 +02:00
parent 57eba3c089
commit b0feeb2099
1 changed files with 8 additions and 4 deletions

12
main.c
View File

@ -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)))