public MyCar(Vector2 pos, MyRoad road) { Texture = "MyCar"; Width = 4f; Height = 4f; Center = pos; ShouldTravel = true; Speed = 0.8f; mRoad = road; }
public MySoccer(Vector2 pos, MyRoad road) { Texture = "SoccerBall"; Width = 4f; Height = 4f; Center = pos; ShouldTravel = true; Speed = 0.1f; mRoad = road; }
protected override void InitializeWorld() { World.SetWorldCoordinate(new Vector2(-5f, -5f), (1.5f * kDistanceCovered + 5f)); DrawGrid(); mRoad = new MyRoad(kInitPosition); mCar = new MyCar(kInitPosition, mRoad); mDir = new Vector2(1, 0); mCar.TopOfAutoDrawSet(); }