コード例 #1
0
ファイル: TrafficMap.cs プロジェクト: rpallarino3/Test2DGame
 public void insertNPC(NPC npc, int y, int x, int height, int width)
 {
     fillRectangle(true, y, x, height, width);
     for (int i = y; i < height + y; i++)
     {
         for (int j = x; j < width + x; j++)
         {
             insertNPCAtLocation(npc, i, j);
         }
     }
 }
コード例 #2
0
ファイル: TrafficMap.cs プロジェクト: rpallarino3/Test2DGame
 public void insertNPCAtLocation(NPC npc, int y, int x)
 {
     npcMap[y, x] = npc;
 }