Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }