Ejemplo n.º 1
0
 public ExplorerIdleLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
     this.effect = SpriteEffects.FlipHorizontally;
 }
Ejemplo n.º 2
0
        //Constructor
        public ExplorerJumpRight(Explorer explorer, int h, int k)
            : base(explorer)
        {
            this.explorer = explorer;

            this.h = h;
            this.k = k;
            this.startH = h;
            this.startK = k;

            this.i = 0;
        }
Ejemplo n.º 3
0
        //Constructor
        public ExplorerJumpLeft(Explorer explorer, int h, int k)
            : base(explorer)
        {
            this.explorer = explorer;

            this.h = h;
            this.k = k;
            this.startH = h;
            this.startK = k;

            this.i = 0;
            this.effect = SpriteEffects.FlipHorizontally;
        }
Ejemplo n.º 4
0
 //Properties
 //Constructor
 public ExplorerWalkRight(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
 }
Ejemplo n.º 5
0
 public ExplorerIdleRight(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
 }
Ejemplo n.º 6
0
 //Constructor
 public AnimatedSprite(Explorer explorer)
 {
     this.explorer = explorer;
 }
Ejemplo n.º 7
0
        private IBuildingBlock LoadObject(char brickElement, int x, int y)
        {
            switch (brickElement)
            {
                case '.':
                    return new Brick(this.game, new Vector2(x, y), @"Brick_transparant", '.');
                case '1':
                    return new Brick(this.game, new Vector2(x, y), @"Brick", '.');
                case '2':
                    return new Brick(this.game, new Vector2(x, y), @"fundament", '.');
                case '+':
                    this.explorer = new Explorer(this.game, new Vector2(x,y));
                    return new Brick(this.game, new Vector2(x, y), @"Brick_transparant", '+');
                case 's':
                    return new StepRight(this.game, new Vector2(x, y), @"trapTopRight01", 's');

                default:
                    return new Brick(this.game, new Vector2(x, y), @"Brick_transparent", '.');

            }
        }