public void ResetPosition() { ScrollX = 0; Rectangle rectangle = new Rectangle(100, Height - run.Height / 4 - 400, run.Height / 5, run.Height / 5); hero = new AnimateSprite(rectangle, ide, run, jump, this); }
protected override void LoadContent() { LoadHelper.Load(Content); spriteBatch = new SpriteBatch(GraphicsDevice); ide = Content.Load <Texture2D>("Player/ide"); run = Content.Load <Texture2D>("Player/run"); jump = Content.Load <Texture2D>("Player/jump"); blockTexture = Content.Load <Texture2D>("Texture/block"); bricksTexture = Content.Load <Texture2D>("Texture/bricks"); questioTexture = Content.Load <Texture2D>("Texture/q"); coinTexuture = Content.Load <Texture2D>("Texture/coin"); Rectangle rectangle = new Rectangle(100, Height - run.Height / 4 - 400, run.Height / 5, run.Height / 5); CreateLevel(); hero = new AnimateSprite(rectangle, ide, run, jump, this); }
protected override void LoadContent() { LoadHelper.Load(Content); spriteBatch = new SpriteBatch(GraphicsDevice); ide = Content.Load<Texture2D>("Player/ide"); run = Content.Load<Texture2D>("Player/run"); jump = Content.Load<Texture2D>("Player/jump"); blockTexture = Content.Load<Texture2D>("Texture/block"); bricksTexture = Content.Load<Texture2D>("Texture/bricks"); questioTexture = Content.Load<Texture2D>("Texture/q"); coinTexuture = Content.Load<Texture2D>("Texture/coin"); Rectangle rectangle = new Rectangle(100, Height - run.Height / 4 - 400, run.Height / 5, run.Height / 5); CreateLevel(); hero = new AnimateSprite(rectangle, ide, run, jump, this); }