示例#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.walkRight = new ExplorerWalkRight(this);
     this.walkLeft = new ExplorerWalkLeft(this);
     this.idle = new ExplorerIdle(this);
     this.state = this.idle;
 }
示例#2
0
文件: Explorer.cs 项目: rutger438/PP
 // Maak de constructor
 public Explorer(PyramidPanic game, Vector2 position, int speed)
 {
     this.position = position;
     this.game = game;
     this.speed = speed;
     this.texture = this.game.Content.Load<Texture2D>(@"PlayScene\Explorer");
     this.idle = new ExplorerIdle(this);
     this.walkRight = new ExplorerWalkRight(this);
     this.walkLeft = new ExplorerWalkLeft(this);
     this.walkDown = new ExplorerWalkDown(this);
     this.walkUp = new ExplorerWalkUp(this);
     this.idleWalk = new ExplorerIdleWalk(this);
     this.state = this.idle;
 }
示例#3
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;
 }
示例#4
0
 //Constructor
 public Explorer(PyramidePanic game, Vector2 position)
 {
     //game
     this.game = game;
     // position
     this.position = position;
     //load explorer
     this.texture = game.Content.Load<Texture2D>(@"Explorer\Explorer");
     //this.walkUp = new ExplorerWalkUp(this);
     this.walkDown = new ExplorerWalkDown(this);
     //this.walkUp = new ExplorerWalkUp(this);
     this.walkUp = new ExplorerWalkUp(this);
     //this.walkUp = new ExplorerWalkUp(this);
     this.walkRight = new ExplorerWalkRight(this);
     //this.walkUp = new ExplorerWalkUp(this);
     this.walkLeft = new ExplorerWalkLeft(this);
     //this.walkUp = new ExplorerWalkUp(this);
     this.idle = new ExplorerIdle(this);
     //this.walkUp = new ExplorerWalkUp(this);
     this.idlewalk = new ExplorerIdleWalk(this);
     //this.walkUp = new ExplorerWalkUp(this);
     this.state = this.idle;
 }