X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/01d395b92b5ba972a6e1c3d8f2bf4803f155a3cb..05db94c84b6f7e4ee91fd67d6e1a8d97a2b97f2e:/badge/jumpnrun/game_state.h?ds=inline diff --git a/badge/jumpnrun/game_state.h b/badge/jumpnrun/game_state.h index 2ebe4d0..7e86cb6 100644 --- a/badge/jumpnrun/game_state.h +++ b/badge/jumpnrun/game_state.h @@ -7,15 +7,17 @@ #include "../ui/display.h" enum { - JUMPNRUN_MAX_SHOTS = 2, + JUMPNRUN_MAX_SHOTS = 2, - JUMPNRUN_STATE_WON = 1 + JUMPNRUN_STATE_WON = 1, + JUMPNRUN_STATE_TICKS_PER_FRAME = 3 }; typedef struct jumpnrun_game_state { jumpnrun_player player; int screen_left; uint8_t flags; + uint8_t tick; jumpnrun_shot shots[JUMPNRUN_MAX_SHOTS]; } jumpnrun_game_state;