示例#1
0
        protected override void LoadContent()
        {
            sprite_batch = new SpriteBatch(GraphicsDevice);

            start_screen   = new Start_screen(this);
            current_screen = Screen.Start_screen;

            base.LoadContent();
        }
示例#2
0
        public void Play_game()
        {
            play_screen    = new Play_screen(this);
            current_screen = Screen.Play_screen;

            start_screen     = null;
            tutorial_screen  = null;
            game_over_screen = null;
        }
示例#3
0
        public void Start_game()
        {
            tutorial_screen = new Tutorial_screen(this);
            current_screen  = Screen.Tutorial_screen;

            start_screen     = null;
            play_screen      = null;
            game_over_screen = null;
        }
示例#4
0
        public void Lost_game()
        {
            game_over_screen = new Game_over_screen(this);
            current_screen   = Screen.Game_over_screen;

            start_screen    = null;
            tutorial_screen = null;
            play_screen     = null;

            Content_Manager.walls.Clear();
            Content_Manager.candies.Clear();
            Content_Manager.monsters.Clear();
            Content_Manager.power.Clear();
            Content_Manager.teleports.Clear();
        }