X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/5813966ca98e7d5f2eabe69b5d0683fbc83720b1..926f4cca0bec5b39f4d45dc9cdece5ddcedbcd95:/badge/jumpnrun/jumpnrun.h diff --git a/badge/jumpnrun/jumpnrun.h b/badge/jumpnrun/jumpnrun.h index 5fcc893..c6613f5 100644 --- a/badge/jumpnrun/jumpnrun.h +++ b/badge/jumpnrun/jumpnrun.h @@ -25,6 +25,7 @@ enum { }; typedef struct jumpnrun_shot { + rectangle old_box; rectangle current_box; vec2d inertia; uint8_t tick; @@ -42,12 +43,12 @@ typedef struct jumpnrun_game_state { uint8_t status; int left; + uint8_t lives; jumpnrun_shot shots[JUMPNRUN_MAX_SHOTS]; } jumpnrun_game_state; -rectangle hacker_rect_current(jumpnrun_game_state const *state); - +vec2d hacker_extents(void); void jumpnrun_passive_movement(vec2d *inertia); uint8_t jumpnrun_play(char const *lvname);