Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 private static Player CreatePlayer(Control control, Texture2D carTexture, Map map)
 {
     return new Player(control, new Texture2DHolder(carTexture), new Vector2(map.StartX, map.StartY), map.StartRotation);
 }