コード例 #1
0
 public void Unload()
 {
     highscoreHead = null;
     mainMenuButton = null;
     quitButton = null;
     scoreList = null;
 }
コード例 #2
0
ファイル: EndGameScreen.cs プロジェクト: Oriannanas/Breakout
 public void Unload()
 {
     menuButton = null;
     playAgainButton = null;
     submitScoreButton = null;
     quitButton = null;
 }
コード例 #3
0
ファイル: EndGameScreen.cs プロジェクト: Oriannanas/Breakout
 public void Initialize()
 {
     menuButton = game.menuButton;
     viewportHeight = game.GraphicsDevice.Viewport.Height;
     viewportWidth = game.GraphicsDevice.Viewport.Width;
     submitScoreButton = new MenuButton(menuButton, game.TextToTexture("Submit", 30), viewportWidth / 2 - menuButton.Width / 2, 200);
     playAgainButton = new MenuButton(menuButton, game.TextToTexture("Play Again", 30), viewportWidth / 2 - menuButton.Width / 2, submitScoreButton.Rect.Bottom + 25);
     quitButton = new MenuButton(menuButton, game.TextToTexture("Quit", 30), viewportWidth / 2 - menuButton.Width / 2, playAgainButton.Rect.Bottom + 25);
 }
コード例 #4
0
ファイル: MainMenuScreen.cs プロジェクト: Oriannanas/Breakout
 public void Initialize()
 {
     menuButton = game.menuButton;
     viewportHeight = game.GraphicsDevice.Viewport.Height;
     viewportWidth = game.GraphicsDevice.Viewport.Width;
     startButton = new MenuButton(menuButton, game.TextToTexture("Start", 30), viewportWidth / 2 - menuButton.Width / 2, 200);
     highScoreButton = new MenuButton(menuButton, game.TextToTexture("Highscore", 30), viewportWidth / 2 - menuButton.Width / 2, startButton.Rect.Bottom + 25);
     quitButton = new MenuButton(menuButton, game.TextToTexture("Quit", 30), viewportWidth / 2 - menuButton.Width / 2, highScoreButton.Rect.Bottom + 25);
 }
コード例 #5
0
 public void Initialize()
 {
     menuButton = game.menuButton;
     highscoreHead = game.TextToTexture("Highscore", 48);
     viewportHeight = game.GraphicsDevice.Viewport.Height;
     viewportWidth = game.GraphicsDevice.Viewport.Width;
     mainMenuButton = new MenuButton(menuButton, game.TextToTexture("Back", 30), (viewportWidth / 2) - (int)(menuButton.Width*1.10f), viewportHeight - 100);
     quitButton = new MenuButton(menuButton, game.TextToTexture("Quit", 30), (viewportWidth / 2)+ (int)(menuButton.Width * 0.10f), viewportHeight - 100);
     scoreList = game.highscore.scoreList;
 }
コード例 #6
0
ファイル: MainMenuScreen.cs プロジェクト: Oriannanas/Breakout
 public void Unload()
 {
     startButton = null;
     quitButton = null;
 }