Пример #1
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));
        }
Пример #2
0
        public MySoccer(MyBlock b)
        {
            Texture = "SoccerBall";
            Radius  = 4f;

            ShouldTravel = false;
            mTargetBlock = b;

            mShowVecs   = new List <VectorComponents>();
            mReflection = new List <XNACS1Primitive>();
        }
Пример #3
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();
        }