Ejemplo n.º 1
0
        /// <summary>
        /// Initialize the internal state of your game
        /// </summary>
        protected override void InitializeWorld()
        {
            mTarget       = new XNACS1Circle(new Vector2(50, 30), 1f);
            mTarget.Color = Color.Red;

            mSocccer = new MySoccer();
        }
Ejemplo n.º 2
0
        protected override void InitializeWorld()
        {
            World.SetWorldCoordinate(Vector2.Zero, kWorldSize);
            DefineGrid();

            mBlock  = new MyBlock();
            mBall   = new MySoccer(mBlock);
            mVBlock = new VelocityBlock(kInitPosition, new Vector2(1, 1));
        }
Ejemplo n.º 3
0
        protected override void InitializeWorld()
        {
            World.SetWorldCoordinate(new Vector2(-5f, -5f), (1.5f * kDistanceCovered + 5f));
            DrawGrid();

            mRoad = new MyRoad(kInitPosition);
            mBall = new MySoccer(kInitPosition, mRoad);

            mDir = new Vector2(1, 0);

            mBall.TopOfAutoDrawSet();
        }
Ejemplo n.º 4
0
        protected override void InitializeWorld()
        {
            World.SetWorldCoordinate(Vector2.Zero, kWorldSize);
            DefineGrid();

            mBlock = new MyBlock();
            mBall  = new MySoccer();

            mShowVecA = new VectorComponents();
            mShowVecA.HideVectorComponents();

            mShowVecB = new VectorComponents();
            mShowVecB.HideVectorComponents();
        }