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)); }
public MySoccer(MyBlock b) { Texture = "SoccerBall"; Radius = 4f; ShouldTravel = false; mTargetBlock = b; mShowVecs = new List <VectorComponents>(); mReflection = new List <XNACS1Primitive>(); }
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(); }