1 #ifndef INCLUDED_BADGE2013_JUMPNRUN_H
2 #define INCLUDED_BADGE2013_JUMPNRUN_H
9 #include "../ui/sprite.h"
10 #include "../util/util.h"
23 JUMPNRUN_MAX_SPAWN_MARGIN
= BADGE_SPRITE_MAX_WIDTH
+ 1,
24 JUMPNRUN_MAX_SPAWNED_ENEMIES
= 10
27 typedef struct jumpnrun_game_state
{
28 jumpnrun_moveable player
;
32 uint8_t anim_direction
;
34 size_t spawned_enemies_counter
;
35 size_t spawned_enemies
[JUMPNRUN_MAX_SPAWNED_ENEMIES
];
36 } jumpnrun_game_state
;
38 rectangle
hacker_rect_current(jumpnrun_game_state
const *state
);
40 void jumpnrun_passive_movement(vec2d
*inertia
);
42 uint8_t jumpnrun_play(char const *lvname
);