X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/51243f56fd37dd5b24cbd15e22c8a48bdc4ee41f..ac05cee74d9922fdca433dd2c03fd8542002bb28:/badge/jumpnrun/jumpnrun.h diff --git a/badge/jumpnrun/jumpnrun.h b/badge/jumpnrun/jumpnrun.h index 0ce9ad6..5c4024b 100644 --- a/badge/jumpnrun/jumpnrun.h +++ b/badge/jumpnrun/jumpnrun.h @@ -4,6 +4,7 @@ #include "enemies.h" #include "items.h" #include "levels.h" +#include "shots.h" #include "tiles.h" #include "../ui/sprite.h" @@ -14,8 +15,8 @@ enum { JUMPNRUN_PLAYING, - JUMPNRUN_DEAD, JUMPNRUN_WON, + JUMPNRUN_LOST, JUMPNRUN_ERROR }; @@ -24,19 +25,10 @@ enum { JUMPNRUN_MAX_SPAWNED_ENEMIES = 10 }; -typedef struct jumpnrun_game_state { - jumpnrun_moveable player; - - uint8_t status; - int left; - - size_t spawned_enemies_counter; - size_t spawned_enemies[JUMPNRUN_MAX_SPAWNED_ENEMIES]; -} jumpnrun_game_state; - -rectangle hacker_rect_current(jumpnrun_game_state const *state); - +vec2d jumpnrun_player_extents(void); +void jumpnrun_apply_gravity(vec2d *inertia); void jumpnrun_passive_movement(vec2d *inertia); +badge_sprite const *jumpnrun_hacker_symbol(void); uint8_t jumpnrun_play(char const *lvname);