private void WindowSizeChange(object sender = null, EventArgs e = null) { WindowBounds = Window.ClientBounds; WindowBounds.Width /= 2; WindowBounds.Height /= 2; Starjizz.UpdateWindowSize(GraphicsDevice, WindowBounds.Width, WindowBounds.Height); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Mask = Content.Load <Texture2D>("Mask"); Starachnid = Content.Load <Texture2D>("Starachnid"); Starjizz.LoadContent(Content); }
/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { Starjizz.DrawToTarget(spriteBatch, GraphicsDevice); GraphicsDevice.SetRenderTarget(null); GraphicsDevice.Clear(Color.Black); Starjizz.Draw(spriteBatch); base.Draw(gameTime); }