Пример #1
0
        public CreditScene(Game game, SpriteBatch spriteBatch) : base(game)
        {
            this.spriteBatch = spriteBatch;
            Vector2 position = new Vector2(250, 400);

            tex = game.Content.Load <Texture2D>("Images/helpImage");

            helpString = new NormalString(game, spriteBatch, game.Content.Load <SpriteFont>("Fonts/Regular"),
                                          position, Color.Black, "This is game is made by Taekmin Jeong \n2020-12-06");
            this.Components.Add(helpString);
        }
Пример #2
0
        public HelpScene(Game game, SpriteBatch spriteBatch) : base(game)
        {
            this.spriteBatch = spriteBatch;
            Vector2 position = new Vector2(250, 400);

            tex = game.Content.Load <Texture2D>("Images/helpImage");

            helpString = new NormalString(game, spriteBatch, game.Content.Load <SpriteFont>("Fonts/Regular"),
                                          position, Color.Black, "Help link to hide from bombardment!!\nSpace key: mute/unmute background music\nUp arrow key: move up\nDown arrow key: move down\n" +
                                          "Left arrow key: move left\nRight arrow key: move right");
            this.Components.Add(helpString);
        }