static void Main() { Doors.CreateDoors(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new View.TheRooms(new Game())); }
public Game(Area[] areas, int currentArea = 0, Player player = null) { Doors.CreateDoors(); if (player == null) { player = new Player("Unknown", new Inventory(10)); } AreaBlock = new AreaBlock(areas, currentArea); InventoryBlock = new InventoryBlock(player.Inventory); DialogBlock = new DialogBlock(); MenuBlock = new MenuBlock(); PlayerStateBlock = new PlayerStateBlock(player); TickHandler = new TickHandler(this, 41); }