/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { // Update FRB FlatRedBallServices.Update(gameTime); // Update Editor Data EditorData.Update(); base.Update(gameTime); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { IsMouseVisible = true; GuiManager.IsUIEnabled = true; //Renderer.UseRenderTargets = false; // Initialize FRB FlatRedBallServices.InitializeFlatRedBall(this, graphics); SpriteManager.Camera.FarClipPlane = 12000; // Add window resize event //this.Window.ClientSizeChanged += new EventHandler(Window_ClientSizeChanged); // Initialize Editor Data EditorData.Initialize(); base.Initialize(); }