public ActivePower(PowerUp power) { mActivePower = power.Power; timeLeft = 100; timeAccumulated = 0; TriggerReady = false; readyToDie = false; }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here mBackground = new Sprite(); mBall = new Ball(); mWallTop = new Wall(); mWallBottom = new Wall(); player1 = new GameSpace(GameSpace.Player.One); player2 = new GameSpace(GameSpace.Player.Two); powerUp = new PowerUp("powerUpTest"); base.Initialize(); }