/// <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) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); sprite.Draw(spriteBatch); // CPI311.GameEngine's Sprite spriteBatch.End(); base.Draw(gameTime); }
/// <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) { GraphicsDevice.Clear(Color.CornflowerBlue); // TODO: Add your drawing code here spriteBatch.Begin(); // *** Pre Lab2 //sprite.Draw(spriteBatch); //spriteBatch.DrawString(font, "Pos: " + sprite.Position, new Vector2(50,50), Color.White); // *** Lab2 spiralMover.Draw(spriteBatch); spriteBatch.DrawString(font, "R (Up/Down):" + spiralMover.Radius + " A (Right/Left):" + spiralMover.Amplitude + " F (Shift + R/L):" + spiralMover.Frequency, Vector2.Zero, Color.White); spriteBatch.End(); base.Draw(gameTime); }