Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Initialize(int selectedStage)
- {
- // Start the score off at 0
- lastScored = false;
- menu = new Menu(); // Draws text on the screen after the game to say who won
- resetTimerInUse = true;
- resetTimer = 0;
- SetUpSingle(); // Sets up a single player game
- ball = new Ball(contentManager,
- new Vector2(ScreenManager.Game.GraphicsDevice.Viewport.TitleSafeArea.Width,
- ScreenManager.Game.GraphicsDevice.Viewport.TitleSafeArea.Height),
- leftBat, rightBat);
- ParticleEmitter.AddEmitter(EmitterType.BlueParticle, ball.Position, ball);
- input = new Input();
- hud = new HUD(this);
- BPE = new BlueParticleEmitter(game);
- debuggingTools = new DebuggingTools(this, BPE);
- gamestate = GameStates.Running;
- // Initializes the previously chosen stage
- this._selectedStage = selectedStage;
- // JEP 5/17 - draw code uses screenwidth/height
- screenWidth = ScreenManager.Game.GraphicsDevice.Viewport.TitleSafeArea.Width;
- screenHeight = ScreenManager.Game.GraphicsDevice.Viewport.TitleSafeArea.Height;
- // Sets the default percent scale for the black and white SlowMo effect
- percentscale = 0.01f;
- gScaleActivated = false;
- }
RAW Paste Data