コード例 #1
0
ファイル: Controller.cs プロジェクト: ilezhnin/Roguelike-2
        public Controller(GraphicsDeviceManager graphics)
        {
            this.graphics = graphics;
            map = new Map(this, STARTMAPSIZE + level * 2);
            player = new Player(this);
            camera = new Camera(this, player.position, 32);
            player.health = player.maxHealth;
            map.CreateRandomLevel(3 + (int)level / 2, 2 + (int)level / 10, 2 + (int)level / 10, 3 + (int)level / 10, 3 + (int)level / 10);

            inv = new Inventory(this);
            inventory = inv.inventory;
        }