示例#1
0
 //Constructor
 public Scorpion(PyramidPanic game, string pathName, Vector2 position, float speed)
 {
     this.game      = game;
     this.texture   = game.Content.Load <Texture2D>(@"PlaySceneAssets\Scorpion\Scorpion");
     this.position  = position;
     this.speed     = speed;
     this.rectangle = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width / 4, this.texture.Height);
     this.state     = new WalkLeft(this);
 }
示例#2
0
 //De constructor
 public Scorpion(PyramidPanic game, Vector2 position, float speed)
 {
     this.game = game;
     this.texture = game.Content.Load<Texture2D>(@"PlaySceneAssets\Scorpion\Scorpion");
     this.position = position;
     this.speed = speed;
     this.rectangle = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width/4, this.texture.Height);
     this.state = new WalkRight(this);
 }
示例#3
0
 //constructor
 public Scorpion(PyramidPanic game, Vector2 position, float speed)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"PlayScene\Badguys\Scorpion");
     this.rectangle = new Rectangle((int)this.position.X + 16, (int)this.position.Y + 16, this.texture.Width / 4, this.texture.Height);
     this.collisionrec = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width / 4, this.texture.Height);
     this.speed = speed;
     this.walkLeft = new WalkLeft(this);
     this.walkRight = new WalkRight(this);
     this.state = this.walkRight;
 }
示例#4
0
 //De constructor
 public Scorpion(PyramidPanic game, Vector2 position, float speed)
 {
     this.game = game;
     this.texture = game.Content.Load<Texture2D>(@"PlaySceneAssets\Enemy's\Scorpion");
     this.collisionText = this.game.Content.Load<Texture2D>(@"PlaySceneAssets\Player\blokje");
     this.position = position;
     this.speed = speed;
     this.rectangle = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width / 4, this.texture.Height);
     this.colRect = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width / 4, this.texture.Height);
     this.walkLeft = new WalkLeft(this);
     this.walkRight = new WalkRight(this);
     this.state = this.walkRight;
 }