1b193b5e623bbed1a398228f54609d224fc2c6b8
[hackover2013-badge-firmware.git] / badge / jumpnrun / player.h
1 #ifndef INCLUDED_BADGE_JUMPNRUN_PLAYER_H
2 #define INCLUDED_BADGE_JUMPNRUN_PLAYER_H
3
4 #include "moveable.h"
5 #include "../ui/display.h"
6 #include "../util/util.h"
7
8 enum {
9 // Do not collide with JUMPNRUN_MOVEABLE_* flags
10 JUMPNRUN_PLAYER_DEAD = 4
11 };
12
13 enum {
14 JUMPNRUN_PLAYER_FRAMES = 4
15 };
16
17 typedef struct jumpnrun_player {
18 jumpnrun_moveable base;
19
20 uint8_t lives;
21 uint8_t keys;
22 } jumpnrun_player;
23
24 void jumpnrun_player_spawn (jumpnrun_player *self, vec2d spawn_pos, uint8_t lives);
25 void jumpnrun_player_respawn (jumpnrun_player *self, vec2d spawn_pos);
26
27 #endif
This page took 0.049959 seconds and 3 git commands to generate.