コード例 #1
0
ファイル: Game.cs プロジェクト: Jupotter/Lights-Out
        public Game()
        {
            _turnInDark = 0;
            TCODConsole msgCons = new TCODConsole(80, 10);
            _messages = new Messages(msgCons);

            _mapConsole = new TCODConsole(80, 50);

            _dungeon = new Dungeon(this);

            _dungeon.GenNewLevel();
            _dungeon.CurrentDepth = 1;

            _player = new Player(_dungeon.CurrentLevel);
            Map.Player = _player;
            _player.PlaceAt(Map.StartPosX, Map.StartPosY, Map);

            for (int i = 0; i < 10; i++)
            {
                AddMonster(Map);
            }
        }