enemy lifecycle

This commit is contained in:
t. boddy 2026-02-14 23:29:13 -05:00
parent ad71177251
commit 19258268b0
2 changed files with 28 additions and 6 deletions

View file

@ -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){