public void Draw(ref SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.Draw(flowers[0], new Vector2(180, 650), Color.White); spriteBatch.Draw(flowers[2], new Vector2(900, 650), Color.White); spriteBatch.Draw(grass, new Vector2(0, 480), color: Color.White, scale: new Vector2(2f, 2f)); foreach (var item in workers) { spriteBatch.Draw(item.GetTexture(), item.GetPosition(), color: Color.White, effects: SpriteEffects.FlipHorizontally); } spriteBatch.Draw(player.GetTexture(), player.GetPosition(), Color.White); spriteBatch.Draw(flowers[1], new Vector2(400, 700), Color.White); spriteBatch.Draw(flowers[3], new Vector2(-50, 600), Color.White); spriteBatch.Draw(flowers[4], new Vector2(1200, 600), Color.White); spriteBatch.Draw(clouds[0], new Vector2(100, 150), Color.White); spriteBatch.Draw(clouds[1], new Vector2(1000, 230), Color.White); spriteBatch.Draw(clouds[2], new Vector2(600, 100), Color.White); spriteBatch.DrawString(font, player.GetKey1(), new Vector2(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / 2 - 200, 100), player.GetCount() % 2 == 0 ? Color.Black : Color.Yellow); spriteBatch.DrawString(font, player.GetKey2(), new Vector2(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / 2 + 140, 100), player.GetCount() % 2 != 0 ? Color.Black : Color.Yellow); spriteBatch.DrawString(font, player.GetHealth() > 0 ? player.GetHealth().ToString() : "YOU DIED", new Vector2(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / 2 - 20, 20), Color.Red); spriteBatch.End(); }