コード例 #1
0
        public GamePlayScreen(Game1 game)
        {
            this.game = game;

            hud = new HUD();
            hud.Font = game.Content.Load<SpriteFont>("Arial");

            LoadContent();
        }
コード例 #2
0
 public StartScreen(Game1 game)
 {
     this.game = game;
     texture = game.Content.Load<Texture2D>(@"bg/StartScreenBg");
     button_texture[START_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/startButton");
     button_texture[EXIT_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/exitButton");
     lastState = Keyboard.GetState();
     initialize();
 }
コード例 #3
0
 public ModeScreen(Game1 game)
 {
     this.game = game;
     texture = game.Content.Load<Texture2D>(@"bg/modeBg");
     button_texture[EASY_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/easyButton");
     button_texture[NORMAL_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/normalButton");
     button_texture[HARD_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/hardButton");
     button_texture[ENDLESS_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/endlessButton");
     button_texture[BACK_BUTTON_INDEX] =
         game.Content.Load<Texture2D>(@"buttons/backButton");
     lastState = Keyboard.GetState();
     initialize();
 }