Esempio n. 1
0
        public MyCar(Vector2 pos, MyRoad road)
        {
            Texture = "MyCar";
            Width   = 4f;
            Height  = 4f;

            Center       = pos;
            ShouldTravel = true;
            Speed        = 0.8f;

            mRoad = road;
        }
Esempio n. 2
0
        public MySoccer(Vector2 pos, MyRoad road)
        {
            Texture = "SoccerBall";
            Width   = 4f;
            Height  = 4f;

            Center       = pos;
            ShouldTravel = true;
            Speed        = 0.1f;

            mRoad = road;
        }
Esempio n. 3
0
        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();
        }