// Move enemies, animate background, etc public void MoveElements() { player.Move(); myShot.Move(); for (int i = 0; i < numEnemies; i++) { enemies[i].Move(); } }
// Move enemies, animate background, etc public void MoveElements() { myShot.Move(); for (int i = 0; i < enemies.Count; i++) { if (enemies[i].isValidMove(enemies, i)) { enemies[i].Move(); } } }