//Constructor
 public ExplorerJumpRight(Explorer explorer, int h, int k)
     : base(explorer)
 {
     this.explorer = explorer;
     this.startK = k;
     this.startH = h;
     this.i = 0;
 }
 //Constructor
 public ExplorerJumpLeft(Explorer explorer, int h, int k)
     : base(explorer)
 {
     this.explorer = explorer;
     this.startK = k;
     this.startH = h;
     this.i = 0;
     this.effect = SpriteEffects.FlipHorizontally;
 }
 //Properties
 //Constructor
 public ExplorerWalkLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.effect = SpriteEffects.FlipHorizontally;
 }
 //Constructor
 public ExplorerIdleLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
 }
示例#5
0
 //LOADCONTENT METHOD
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     this.explorer = new Explorer(this, new Vector2(100f, 300f));
 }
 //Properties
 //Constructor
 public ExplorerWalkRight(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
 }
示例#7
0
 //Constructor
 public AnimatedSprite(Explorer explorer)
 {
     this.explorer = explorer;
 }