예제 #1
0
 public ActivePower(PowerUp power)
 {
     mActivePower = power.Power;
     timeLeft = 100;
     timeAccumulated = 0;
     TriggerReady = false;
     readyToDie = false;
 }
예제 #2
0
파일: Game1.cs 프로젝트: louisMyu/lamePong
        /// <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();
        }