Inheritance: IClouds
コード例 #1
0
ファイル: Map.cs プロジェクト: cjohnsson/Racing-Game
 public Map(Texture2D backgroundImage, Texture2D foregroundImage, Bitmap collisionImage, ITexture2DHolder cloudImage, int startX, int startY, float startRotation)
 {
     BackgroundImage = backgroundImage;
     ForegroundImage = foregroundImage;
     CollisionImage = collisionImage;
     clouds = new Clouds(cloudImage.GetTexture2D());
     StartX = startX;
     StartY = startY;
     StartRotation = startRotation;
 }
コード例 #2
0
ファイル: Clouds_Test.cs プロジェクト: cjohnsson/Racing-Game
 private Clouds CreateCloud()
 {
     Clouds cloud = new Clouds();
     cloud.X = new float[] {0, 800, 0, 800};
     cloud.Y = new float[] {0, -600, -600, 0};
     cloud.Width = 800;
     cloud.Height = 600;
     return cloud;
 }