コード例 #1
0
ファイル: Player.cs プロジェクト: cjohnsson/Racing-Game
 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;
 }
コード例 #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);
 }