//constructor public Mummy(PyramidPanic game, Vector2 position, float speed) { this.game = game; this.position = position; this.texture = this.game.Content.Load<Texture2D>(@"PlayScene\Badguys\Mummy"); this.rectangle = new Rectangle((int)position.X + 16, (int)position.Y + 16, this.texture.Width / 4, this.texture.Height); this.collisionRec = new Rectangle((int)position.X, (int)position.Y, 32, 32); this.speed = speed; this.mummyLeft = new MummyLeft(this); this.mummyRight = new MummyRight(this); this.mummyDown = new MummyDown(this); this.mummyUp = new MummyUp(this); this.state = new MummyRight(this); }
//constructor public Player(PyramidPanic game, Vector2 position, float speed) { this.game = game; this.position = position; this.texture = this.game.Content.Load<Texture2D>(@"PlayScene\player\Explorer"); this.rectangle = new Rectangle((int)position.X + 16, (int)position.Y + 16, this.texture.Width / 4, this.texture.Height); this.collisionRec = new Rectangle((int)position.X, (int)position.Y, 32, 32); this.speed = speed; this.playerLeft = new PlayerLeft(this); this.playerRight = new PlayerRight(this); this.playerDown = new PlayerDown(this); this.playerUp = new PlayerUp(this); this.playerIdle = new PlayerIdle(this); this.state = new PlayerIdle(this,0); }