A component that handles animation. Inherits from Scene.
Inheritance: Scene
 // INTEGRER LA HURTBOX DANS LE CONSTRUCTEUR;
 public Character(LuxGame game, World world, int life, int takenDamageCollision, int givenDamageCollision, Sprite skin)
     : base(game)
 {
     this.life = life;
     this.takenDamageCollision = takenDamageCollision;
     this.givenDamageCollision = givenDamageCollision;
     this.skin = skin;
     this.world = world;
 }
Example #2
0
 public Shot(LuxGame game, double invincibleTimeSec, int hitbox, int damage, World world, Sprite skin = null)
     : base(game)
 {
     this.invincibleTimeSec = invincibleTimeSec;
     this.skin = skin;
     this.isABadShot = true;
     this.hitbox = hitbox;
     this.world = world;
     this.damage = damage;
 }
 public RotatingShot(LuxGame game, World world, int invincibleTimeMillisec, bool isAGoodShot, float rotation, int hitbox, Sprite skin = null)
     : base(game, invincibleTimeMillisec, isAGoodShot, world, hitbox, 2, null)
 {
     this.rotation = rotation;
 }
 public HomingMissile(LuxGame game, int invincibleTimeMillisec, bool isAGoodShot, float rotation, int hitbox, int damage, World world, Sprite skin = null)
     : base(game, invincibleTimeMillisec, isAGoodShot, world, hitbox, damage, null)
 {
     this.rotation = rotation;
 }