added pellet entity as well as minor changes to collision functions

This commit is contained in:
2017-06-01 23:41:04 -05:00
parent e6be886888
commit 615789fe81
73 changed files with 40 additions and 23 deletions

View File

@@ -96,4 +96,18 @@ public class EntityController {
break;
}
}
public void deathClean() {
for (int i = 0; i < activeAllies.size; i ++) {
if (activeAllies.get(i).isDead()) {
free(activeAllies.get(i));
}
}
for (int i = 0; i < activeEnemies.size; i++) {
if (activeEnemies.get(i).isDead()) {
free(activeEnemies.get(i));
}
}
}
}