Example #1
0
 public Bullet(Vector2 aDirection, Vector2 aPosition, float aDamage, float aSpeed, GameObject aShooter) :
     base(TextureLibrary.GetTexture("Bullet"), new Rectangle(aPosition.ToPoint(), new Point(25, 25)))
 {
     myDirection = aDirection;
     myDamage    = aDamage;
     myShooter   = aShooter;
     mySpeed     = aSpeed;
     mySound     = SoundLibrary.GetSound("Shoot");
 }
 public EnemyBossMinion(Point aPosition) :
     base(TextureLibrary.GetTexture("EnemyMinion"), new Rectangle(aPosition.X, aPosition.Y, 40, 30), 20, 10)
 {
     AccessSpeed = 400;
     mySound     = SoundLibrary.GetSound("Bee");
 }