コード例 #1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     for (int i = 0; i < map.GetLength(0); i++)
     {
         for (int j = 0; j < map.GetLength(1); j++)
         {
             map[i, j].draw(spriteBatch, 0, 0);
         }
     }
     endGoal.draw(spriteBatch, 0, 0);
     foreach (Trigger temp in triggers)
     {
         temp.draw(spriteBatch, 0, 0);
     }
     player.draw(spriteBatch, 0, 0);
     foreach (Enemy temp in enemies)
     {
         temp.draw(spriteBatch, 0, 0);
     }
     foreach (GameObjectChild temp in gameObjects)
     {
         temp.draw(spriteBatch, 0, 0);
     }
     spriteBatch.End();
 }