コード例 #1
0
ファイル: GamePaused.cs プロジェクト: mottosen/GalagaGame
 public GamePaused(GameRunning aCurrentGame)
 {
     if (Score.GetInstance().TrueVictory())
     {
         GalagaBus.GetBus().RegisterEvent(
             GameEventFactory <object> .CreateGameEventForAllProcessors(
                 GameEventType.GameStateEvent,
                 this,
                 "CHANGE_STATE",
                 "GAME_OVER", ""));;
     }
     currentGame    = aCurrentGame;
     maxMenuButtons = menuButtons.Length;
     buttonSelectImage.Shape.Rotate(0.5f * (float)Math.PI);
 }
コード例 #2
0
 public GameOver(GameRunning aCurrentGame)
 {
     maxMenuButtons = menuButtons.Length;
     score          = Score.GetInstance().GetScore();
 }