/// <summary> /// /// </summary> public Program() { Screen = Video.SetVideoMode(ScreenWidth, ScreenHeight); map = new MapDrawer(Screen); console = new BBConsole(Screen); gui = new BBUI(Screen, console); TextDrawer.Initialize(Screen); // Data loading // Sounds initialization SoundHandler soundHandler = new SoundHandler(); soundBox = soundHandler.initializeSounds(); Console.WriteLine("Sounds Loading "); musicBox = soundHandler.initializeMusics(); Console.WriteLine("Musics Loading"); //MusicBox["dtowne"].Play(); map.loadMap(MapPlayed); // Loading of the map Console.WriteLine("Map Loading"); Video.WindowIcon(); Video.WindowCaption = "BloodBox ! It roxes so much !"; this.AddHandlers(); Events.Run(); }
public BBUI(Surface screen, BBConsole console) { UIscreen = screen; UIconsole = console; }