コード例 #1
0
 //draws each of the four ghosts and adjust the image variation to what it should be
 public void GhostsDraw()
 {
     //The purpose of the Draw ghosts method is to loop through the ghosts calling their animate and then draw methods.
     foreach (Ghost ghost in allghosts)
     {
         ghost.animateddirection();
         ghost.Draw();
     }
 }