public Game(UI.Main screen) { int seed = (int)DateTime.UtcNow.Ticks; Random = new DotNetRandom(seed); CommandSystem = new CommandSystem(this); Logger = new Systems.Logger(this); SchedulingSystem = new SchedulingSystem(this); TargetingSystem = new TargetingSystem(this); this.screen = screen; screen.UpdateRender += OnUpdate; }
private void MoveMapLevelDown() { screen.ClearMap(); MapGenerator generator = new MapGenerator(this, mapWidth, mapHeight, 20, 13, 7, "cave", ++mapLevel); MapManager = generator.Generate(); screen.GenerateMap(MapManager.Map); screen.SetPlayer(Player); MapManager.UpdatePlayerFOV(Player); Draw(); Logger = new Systems.Logger(this); CommandSystem = new CommandSystem(this); }