Example #1
0
 //Constructor
 public Explorer(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Explorer\Explorer");
     this.walkUp = new ExplorerWalkUp(this);
     this.walkDown = new ExplorerWalkDown(this);
     this.walkLeft = new ExplorerWalkLeft(this);
     this.walkRight = new ExplorerWalkRight(this);
     this.idle = new ExplorerIdle(this);
     this.idleWalk = new ExplorerIdleWalk(this);
     this.state = this.idle;
 }
Example #2
0
 //Constructor
 public Explorer(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Explorer\Explorer");
     this.collisionRect = new Rectangle((int)position.X - 16, (int)position.Y - 16, 32, 32);
     this.collisionText = this.game.Content.Load<Texture2D>(@"Scorpion\CollisionText");
     this.walkDown = new ExplorerWalkDown(this);
     this.walkUp = new ExplorerWalkUp(this);
     this.walkLeft = new ExplorerWalkLeft(this);
     this.walkRight = new ExplorerWalkRight(this);
     this.idle = new ExplorerIdle(this);
     this.idleWalk = new ExplorerIdleWalk(this);
     this.state = this.idle;
 }