コード例 #1
0
        private void LoadLevel()
        {
            string       file    = string.Format("Content/{0}.txt", LevelHordConfig.LevelPath);
            LevelCreator creator = new LevelCreator(this);

            this.Background = new Background();
            creator.GenerateLevel(file);
            this.Mario.HasBeenReached = true;
        }
コード例 #2
0
ファイル: Level.cs プロジェクト: weimingtom/MarioGame
        private void LoadLevel()
        {
            string       file    = string.Format("Content/{0}.txt", this.LevelLoadString);
            LevelCreator creator = new LevelCreator(this);

            this.Background = new Background();
            creator.GenerateLevel(file);
            if (OriginalPowerLevel == MarioPowerLevel.Fire || OriginalPowerLevel == MarioPowerLevel.Metal)
            {
                this.Mario.RespondToRequest(MarioActionRequest.GoFire);
            }
            else if (OriginalPowerLevel == MarioPowerLevel.Big)
            {
                this.Mario.RespondToRequest(MarioActionRequest.GoBig);
            }
            this.Mario.HasBeenReached = true;
        }