public SimpleEnemy(Texture2D tex, Vector2 position)
 {
     Sprite = new AnimatedSprite(tex, 1, 1);
     location = position;
     bounds = new Rectangle((int)location.X, (int)location.Y, Sprite.Width, Sprite.Height);
     direction = 0;
 }
Exemplo n.º 2
0
 public Player(Texture2D tex, Vector2 position)
 {
     Speed = 3;
     Sprite = new AnimatedSprite(tex, 2, 3);
     canJump = true;
     jumpTime = 0;
     jumping = false;
     Location = position;
     texture = tex;
     bounds = new Rectangle((int)location.X, (int)location.Y, Sprite.Width, Sprite.Height);
     Invulnerable = true;
 }
Exemplo n.º 3
0
 public Wall(Texture2D tex, Vector2 position)
 {
     location = position;
     Sprite = new AnimatedSprite(tex, 1, 1);
     bounds = new Rectangle((int)location.X, (int)location.Y, Sprite.Width, Sprite.Height);
 }