How can I draw a sprite in it's own class?
问题 I'm trying to program a game with a friend, and I'm very confused as to how to draw sprites. I can draw code in my Game1 class, below. namespace SweetGeorgiaBrown { /// <summary> /// This is the main type for your game /// </summary> public class Game1 : Microsoft.Xna.Framework.Game { enum GameStates { TitleScreen, Overworld, Menu, Battle, GameOver }; GameStates gameState = GameStates.Battle; GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Texture2D dinoTex; Texture2D alienTex;