Example #1
0
 //Constructor
 public ExplorerIdleLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
     this.effect = SpriteEffects.FlipHorizontally;
 }
 //Constructor
 public ExplorerIdleJumpRight(Explorer explorer, int h, int k)
     : base(explorer)
 {
     this.explorer = explorer;
     this.startK = k;
     this.startH = h;
     this.i = 0;
 }
Example #3
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;
 }
Example #4
0
 //Properties
 //Constructor
 public ExplorerWalkLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
 }
 //Constructor
 public AnimatedSprite(Explorer explorer)
 {
     this.explorer = explorer;
 }
Example #6
0
 //Properties
 //Constructor
 public ExplorerWalkRight(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
 }
Example #7
0
 //Constructor
 public ExplorerIdleLeft(Explorer explorer)
     : base(explorer)
 {
     this.explorer = explorer;
     this.i = 7;
 }
Example #8
0
 //LoadContent method
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     this.explorer = new Explorer(this, new Vector2(100f, 300f));
 }