//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); }
//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); }
//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; }
//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; }