예제 #1
0
 // Move enemies, animate background, etc
 public void MoveElements()
 {
     player.Move();
     myShot.Move();
     for (int i = 0; i < numEnemies; i++)
     {
         enemies[i].Move();
     }
 }
예제 #2
0
 // 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();
         }
     }
 }