Esempio n. 1
0
        public BallManager(ContentManager content, PongGameScreen screen, SpriteBatch spriteBatch)
        {
            defaultBallTexture = content.Load <Texture2D>("Images/defaultBall35px");
            //fastBallTexture = content.Load<Texture2D>("Images/fastBall");

            balls = new List <Ball>();

            this.screen      = screen;
            this.spriteBatch = spriteBatch;
        }
Esempio n. 2
0
        public BallManager(ContentManager content, PongGameScreen screen, SpriteBatch spriteBatch)
        {
            defaultBallTexture = content.Load<Texture2D>("Images/defaultBall35px");
            //fastBallTexture = content.Load<Texture2D>("Images/fastBall");

            balls = new List<Ball>();

            this.screen = screen;
            this.spriteBatch = spriteBatch;
        }
Esempio n. 3
0
        public PowerupManager(ContentManager content, PongGameScreen screen, SpriteBatch spriteBatch)
        {
            multiPupTexture    = content.Load <Texture2D>("Images/Powerups/Multiball");
            fastPupTexture     = content.Load <Texture2D>("Images/Powerups/Fastball");
            blueBubbleTexture  = content.Load <Texture2D>("Images/Powerups/BlueBubble");
            greenBubbleTexture = content.Load <Texture2D>("Images/Powerups/GreenBubble");

            random         = new Random();
            bubbles        = new List <PowerupBubble>();
            activePowerups = new List <Powerup>();

            this.screen      = screen;
            this.spriteBatch = spriteBatch;
        }
Esempio n. 4
0
        public PowerupManager(ContentManager content, PongGameScreen screen, SpriteBatch spriteBatch)
        {
            multiPupTexture = content.Load<Texture2D>("Images/Powerups/Multiball");
            fastPupTexture = content.Load<Texture2D>("Images/Powerups/Fastball");
            blueBubbleTexture = content.Load<Texture2D>("Images/Powerups/BlueBubble");
            greenBubbleTexture = content.Load<Texture2D>("Images/Powerups/GreenBubble");

            random = new Random();
            bubbles = new List<PowerupBubble>();
            activePowerups = new List<Powerup>();

            this.screen = screen;
            this.spriteBatch = spriteBatch;
        }