/// <summary> /// Initialisiert den GUIManager. /// </summary> /// <param name="_gameScreen"></param> public static void Initialize(Game _game) { Events = new EventHandlerList(); BitmapFontManager.LoadFonts(); defaultFont = BitmapFontManager.GetFontFromName("Calibri"); isInit = true; game = _game; screen = new Screen(); }
/// <summary> /// Erstellt ein neues Spiel. /// </summary> /// <param name="form"></param> public Game(Form form) { this.form = form; MouseInput.Initialize(); KeyBoardInput.Initialize(); BitmapFontManager.LoadFonts(); screen = new PictureBox(); screen.BackColor = Color.CornflowerBlue; screen.Dock = DockStyle.Fill; gameTime = new GameTime(); form.Controls.Add(screen); drawArea = new Bitmap(1280, 800); resultion = new Point(1280, 800); graphics = Graphics.FromImage(drawArea); GUIManager.Initialize(this); ContentLoader.Initialize(); }