Exemple #1
0
 public ExplorerIdleLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
     this.effect = SpriteEffects.FlipHorizontally;
 }
Exemple #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;
        }
Exemple #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;
        }
Exemple #4
0
 //Properties
 //Constructor
 public ExplorerWalkRight(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
 }
Exemple #5
0
 public ExplorerIdleRight(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
 }
Exemple #6
0
 //Constructor
 public AnimatedSprite(Explorer explorer)
 {
     this.explorer = explorer;
 }
Exemple #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", '.');

            }
        }