コード例 #1
0
        public override void LoadContent()
        {
            //Load Textures
            defaultTopPaddleTexture    = ScreenManager.Game.Content.Load <Texture2D>("Images/defaultTopPaddle");
            defaultBottomPaddleTexture = ScreenManager.Game.Content.Load <Texture2D>("Images/defaultBottomPaddle");
            backgroundTexture          = ScreenManager.Game.Content.Load <Texture2D>("Images/background");

            //Initialize managers
            ballManager = new BallManager(ScreenManager.Game.Content, this, ScreenManager.SpriteBatch);
            particles   = new ParticleSystem(ScreenManager.Game.Content, ScreenManager.SpriteBatch);
            powerups    = new PowerupManager(ScreenManager.Game.Content, this, ScreenManager.SpriteBatch);

            base.LoadContent();

            Start();
        }
コード例 #2
0
        public override void LoadContent()
        {
            //Load Textures
            defaultTopPaddleTexture = ScreenManager.Game.Content.Load<Texture2D>("Images/defaultTopPaddle");
            defaultBottomPaddleTexture = ScreenManager.Game.Content.Load<Texture2D>("Images/defaultBottomPaddle");
            backgroundTexture = ScreenManager.Game.Content.Load<Texture2D>("Images/background");

            //Initialize managers
            ballManager = new BallManager(ScreenManager.Game.Content, this, ScreenManager.SpriteBatch);
            particles = new ParticleSystem(ScreenManager.Game.Content, ScreenManager.SpriteBatch);
            powerups = new PowerupManager(ScreenManager.Game.Content, this, ScreenManager.SpriteBatch);

            base.LoadContent();

            Start();
        }