コード例 #1
0
ファイル: Car.cs プロジェクト: cjohnsson/Racing-Game
 public Car(ITexture2DHolder newImage, Vector2 position)
 {
     _image = newImage.GetTexture2D();
     _width = newImage.GetTexture2DWidth();
     _height = newImage.GetTexture2DHeight();
     _x = position.X;
     _y = position.Y;
 }
コード例 #2
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;
 }