Exemplo n.º 1
0
 public World()
 {
     _car 		= new Car(new Vector2(0, 164));
     _rock       = new Rock(new Vector2(610, 160));
     _background = Game1.instance.Content.Load<Texture2D>("cliff");
     _spVerdana  = Game1.instance.Content.Load<SpriteFont>("Verdana");
 }
Exemplo n.º 2
0
 public World()
 {
     _car        = new Car(new Vector2(0, 172), 0.3f, Color.PaleGreen);
     _counter    = new Counter();
     _rock       = new Rock(new Vector2(626, 178));
     _background = Game1.instance.Content.Load<Texture2D>("cliff");
     _spVerdana  = Game1.instance.Content.Load<SpriteFont>("Verdana");
 }
Exemplo n.º 3
0
 public Wheel(Car car, Vector2 offset, Color color)
 {
     Texture  = Game1.instance.Content.Load<Texture2D>("Car_wheel");
     _car     = car;
     Offset   = offset * _car.Scale;
     Position = new Vector2(_car.Position.X + Offset.X, _car.Position.Y + Offset.Y);
     Color    = color;
 }