public Car(Vector2 position, float scale, Color color) { _texture = Game1.instance.Content.Load<Texture2D>("Car_body"); _run = false; Scale = scale; Position = position; Color = color; _wheel1 = new Wheel(this, new Vector2(67, 62), Color.Yellow); _wheel2 = new Wheel(this, new Vector2(212, 62), Color.Yellow); }
public Car(Vector2 pos) { _texture = Game1.instance.Content.Load<Texture2D>("small_car"); Position = pos; Speed = new Vector2(3f, 0f); BrakeValue = new Vector2(0f, 0f); _wheel1 = new Wheel(this, new Vector2(22, 22)); _wheel2 = new Wheel(this, new Vector2(72, 22)); Crashed = false; Stopped = false; }
public Car(Vector2 position, float scale, Color color) { _texture = Game1.instance.Content.Load<Texture2D>("Car_body"); Scale = scale; Position = position; Color = color; _wheel1 = new Wheel(this, new Vector2(67, 62), Color.Yellow); _wheel2 = new Wheel(this, new Vector2(212, 62), Color.Yellow); _crashsound = Game1.instance.Content.Load<SoundEffect>("crash"); _brakesound = Game1.instance.Content.Load<SoundEffect>("brake"); }