public Player(Vector2 position, ScreenManager screenManager, ContentManager content) { this.screenManager = screenManager; this.content = content; IsIdle = true; LoadContent(); spriteColor = Color.White; sprite = new AnimationPlayer(); Reset(position); }
public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferHeight = 600; graphics.PreferredBackBufferWidth = 800; this.IsMouseVisible = true; Content.RootDirectory = "Content"; screenManager = new ScreenManager(this); Components.Add(screenManager); }