Ejemplo n.º 1
0
 public void loadBall(ContentManager pContent)
 {
     Texture2D ballTex = pContent.Load<Texture2D>("FPO/ball");
     for (int i = 0; i < MAX_BALLS; i++)
     {
         mCannonBalls[i] = new CannonShot();
         mCannonBalls[i].init(ballTex);
     }
 }
Ejemplo n.º 2
0
        public void init(List<Player> players, ref CannonShot[] balls, ref ParticleManager pPManager)
        {
            ref_Balls = balls;
            ref_Players = players;
            ref_ParticleManager = pPManager;

            //Walls
            mLeftWall = new Rectangle(0, 177, 25, 474);
            mRightWall = new Rectangle(1255, 177, 25, 474);

            //Floors
            mRightFloor = new Rectangle(749, 643, 531, 87);
            mLeftFloor = new Rectangle(0, 643, 531, 87);

            //Net
            mNet = new Rectangle(614, 476, 52, 244);
        }