X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/01d395b92b5ba972a6e1c3d8f2bf4803f155a3cb..78c90fb803b6fdca0ded04730eb9f34d6c0813ed:/badge/jumpnrun/game_state.h 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;