Exemple #1
0
        public override void Update(GameTime gameTime)
        {
            var direction = inputReader.ReadInput();

            motion.Perform(gameTime, direction);

            CollisionRectangle = new Rectangle((int)Position.X, (int)Position.Y, 38, 64);

            animationManager.Update(direction);
            texture   = animationManager.texture;
            animation = animationManager.animation;

            animation.Update(gameTime);

            if (Position.Y > 450)
            {
                dead = true;
            }
            if (Position.X > 6500)
            {
                finishedLevel = true;
            }
        }