Esempio n. 1
0
 public Car(ITexture2DHolder newImage, Vector2 position)
 {
     _image = newImage.GetTexture2D();
     _width = newImage.GetTexture2DWidth();
     _height = newImage.GetTexture2DHeight();
     _x = position.X;
     _y = position.Y;
 }
Esempio n. 2
0
 public Player(Control control, ITexture2DHolder carImage, Vector2 position, float startRotation)
 {
     IsHuman = true;
     Control = control;
     Car = new Car(carImage, position);
     Car.X = position.X;
     Car.Y = position.Y;
     Car.Rotation = startRotation;
 }
Esempio n. 3
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;
 }