Exemplo n.º 1
0
 public void Update(Player player)
 {
 }
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            player = new Player(Content.Load<Texture2D>("Fae"), Vector2.Zero);
            Ground = Content.Load<Texture2D>("Ground");
            Shadow = Content.Load<Texture2D>("Shadow");
            DustSprite = Content.Load<Texture2D>("DashSmoke");

            ShadowSourceRect = new Rectangle(0, 0, Shadow.Width, Shadow.Height);
            ShadowDestinationRect = new Rectangle((int)player.Position.X, (int)player.Position.Y, Shadow.Width, Shadow.Height);

            TestFont = Content.Load<SpriteFont>("TestFont");
        }