diff options
author | NielsCoding <48092678+heavydemon21@users.noreply.github.com> | 2023-04-02 20:48:06 +0200 |
---|---|---|
committer | NielsCoding <48092678+heavydemon21@users.noreply.github.com> | 2023-04-02 20:48:06 +0200 |
commit | e987d23d915942ec4a3910b9cc2729f1b21361a9 (patch) | |
tree | c74b48322acb426a205d5cc9a31351c902dfbb65 /src/GameLoop/gameplay.c | |
parent | 552dcc17db2b98287ba1b480c2e70759cd94d81f (diff) |
snake case/background
Diffstat (limited to 'src/GameLoop/gameplay.c')
-rw-r--r-- | src/GameLoop/gameplay.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/GameLoop/gameplay.c b/src/GameLoop/gameplay.c deleted file mode 100644 index 72297f5..0000000 --- a/src/GameLoop/gameplay.c +++ /dev/null @@ -1,44 +0,0 @@ -#include "gameplay.h" - - - -void hh_gameplay(hh_g_all_levels game, hh_e_GameState* hh_game_state){ - static hh_e_gameplay gameplay = hh_e_setup_screen; - - switch (gameplay) - { - case hh_e_setup_screen: - hh_setup_screen(game.level[game.currentLevel]); - gameplay = hh_e_play_level; - break; - case hh_e_play_level: - // TODO: here come all the different functions for the gameplay - hh_player_actions(); - - - - if(game.level[game.currentLevel].hh_level_completed){ - gameplay = hh_e_level_complete; - } - break; - case hh_e_level_complete: - if(game.currentLevel < 3){ - game.currentLevel++; - gameplay = hh_e_setup_screen; - } - else { - gameplay = hh_e_game_over; - } - break; - case hh_e_game_over: - // TODO make reset levels - hh_reset_levels(); - gameplay = hh_e_setup_screen; - *hh_game_state = hh_e_STATE_GameOver; - break; - default: - break; - } - -} -void hh_reset_levels(){} |