projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Beim Neuspawnen eines Gegners alle Flags zurücksetzen.
[hackover2013-badge-firmware.git]
/
badge
/
jumpnrun
/
enemies.h
diff --git
a/badge/jumpnrun/enemies.h
b/badge/jumpnrun/enemies.h
index
a2e6ae6
..
5b6da64
100644
(file)
--- a/
badge/jumpnrun/enemies.h
+++ b/
badge/jumpnrun/enemies.h
@@
-29,7
+29,10
@@
typedef struct jumpnrun_enemy_type {
void (*collision_player)(struct jumpnrun_enemy *self,
struct jumpnrun_game_state *state,
vec2d *player_inertia_mod);
void (*collision_player)(struct jumpnrun_enemy *self,
struct jumpnrun_game_state *state,
vec2d *player_inertia_mod);
- void (*game_tick)(struct jumpnrun_enemy *self,
+ void (*collision_shots)(struct jumpnrun_enemy *self,
+ struct jumpnrun_game_state *state);
+
+ void (*move_tick)(struct jumpnrun_enemy *self,
struct jumpnrun_game_state *state,
struct jumpnrun_level *lv,
struct jumpnrun_tile_range const *visible_tiles,
struct jumpnrun_game_state *state,
struct jumpnrun_level *lv,
struct jumpnrun_tile_range const *visible_tiles,
@@
-47,7
+50,8
@@
typedef struct jumpnrun_enemy {
enum {
JUMPNRUN_ENEMY_SPAWNED = 1,
JUMPNRUN_ENEMY_UNAVAILABLE = 2,
enum {
JUMPNRUN_ENEMY_SPAWNED = 1,
JUMPNRUN_ENEMY_UNAVAILABLE = 2,
- JUMPNRUN_ENEMY_FACING_RIGHT = 4
+ JUMPNRUN_ENEMY_FACING_RIGHT = 4,
+ JUMPNRUN_ENEMY_EVENT_TRIGGER1 = 128
};
static inline rectangle const *enemy_box (jumpnrun_enemy const *enemy) { return &enemy->base.current_box ; }
};
static inline rectangle const *enemy_box (jumpnrun_enemy const *enemy) { return &enemy->base.current_box ; }
@@
-67,6
+71,9
@@
enum {
JUMPNRUN_ENEMY_TYPE_ROTOR,
JUMPNRUN_ENEMY_TYPE_DOG,
JUMPNRUN_ENEMY_TYPE_GIRAFFE,
JUMPNRUN_ENEMY_TYPE_ROTOR,
JUMPNRUN_ENEMY_TYPE_DOG,
JUMPNRUN_ENEMY_TYPE_GIRAFFE,
+ JUMPNRUN_ENEMY_TYPE_BIRD,
+ JUMPNRUN_ENEMY_TYPE_BIRD_STRAIGHT,
+ JUMPNRUN_ENEMY_TYPE_BIRD_DIP,
JUMPNRUN_ENEMY_TYPE_COUNT
};
JUMPNRUN_ENEMY_TYPE_COUNT
};
This page took
0.022598 seconds
and
4
git commands to generate.