Beispiel #1
0
 public Car(ITexture2DHolder newImage, Vector2 position)
 {
     _image = newImage.GetTexture2D();
     _width = newImage.GetTexture2DWidth();
     _height = newImage.GetTexture2DHeight();
     _x = position.X;
     _y = position.Y;
 }
Beispiel #2
0
 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;
 }