コード例 #1
0
ファイル: SpaceElement.cs プロジェクト: bpo106/SpaceGame
 static public void DrawSpace(SpaceDraw spaceDraw, int x, int y)
 {
     for (int i = 0; i < x; i++)
     {
         for (int j = 0; j < y; j++)
         {
             spaceDraw.AddImage("./images/space.gif", i * 50, j * 50);
         }
     }
 }
コード例 #2
0
 public void DrawShip(string filename)
 {
     spaceDraw.AddImage(filename, posx * 50, posy * 50);
 }