Mercurial > repos > genjam1
comparison src/creep.h @ 16:a9500e8bff93
Wait to spawn creeps until player hits start. Prevent player from placing walls in such a way to completely block creeps from goal. Remove placeholder walls.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 12 Jan 2014 19:01:30 -0800 |
parents | 5c7f33441e43 |
children | 51a0972fcf76 |
comparison
equal
deleted
inserted
replaced
15:f71eb24b3896 | 16:a9500e8bff93 |
---|---|
15 u8 direction; | 15 u8 direction; |
16 } creep; | 16 } creep; |
17 | 17 |
18 #define MAX_CREEPS 40 | 18 #define MAX_CREEPS 40 |
19 extern u16 cur_creeps; | 19 extern u16 cur_creeps; |
20 extern u16 distances[20*14]; | |
20 u16 spawn_creep(u8 species, s16 x, s16 y); | 21 u16 spawn_creep(u8 species, s16 x, s16 y); |
21 void gen_distances(u16 x, u16 y); | 22 void gen_distances(u16 x, u16 y); |
22 void print_distances(void); | 23 void print_distances(void); |
23 void update_creeps(void); | 24 void update_creeps(void); |
24 | 25 |