enemy lifecycle
This commit is contained in:
parent
ad71177251
commit
19258268b0
2 changed files with 28 additions and 6 deletions
|
|
@ -50,7 +50,12 @@ void spawnEnemy(u8 type, u8 zone){
|
|||
for(u8 j = 0; j < PROP_COUNT; j++){
|
||||
enemies[i].ints[j] = 0;
|
||||
}
|
||||
enemies[i].ints[0] = random() % 20;
|
||||
switch(enemies[i].type){
|
||||
case 0:
|
||||
loadEnemyOne(i);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void boundsEnemy(u8 i){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue