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