示例#1
0
 public Pickable(ZombieGame game, string spriteName, int spriteFrames, int spriteLines, Vector2 spawningLocation, float depth, float updateTime)
     : base(game)
 {
     ZombieGame = game;
     IsPickedUp = false;
     SpawningLocation = spawningLocation;
     Sprite = new AnimatedSprite(ZombieGame, spriteName, spriteFrames, spriteLines, spawningLocation, depth, updateTime);
     HoveringSprite = new AnimatedSprite(ZombieGame, "Pickme", 1, 1, new Vector2(spawningLocation.X - 24.0f, spawningLocation.Y - 20.0f), depth, updateTime);
     //Ajout le pickupsound
 }
示例#2
0
 public Character(ZombieGame game, string spriteName, int spriteFrames, int spriteLines, Vector2 initPos, float depth, float updateTime, int maxHealth, float maxSpeed)
     : base(game)
 {
     ZombieGame = game;
     Sprite = new AnimatedSprite(ZombieGame, spriteName, spriteFrames, spriteLines, initPos, depth, updateTime);
     MaxHealth = maxHealth;
     Health = MaxHealth;
     IsAlive = true;
     MaxSpeed = maxSpeed;
     DamageSound = ZombieGame.SfxMgr.Find("DefaultDamage");
 }
示例#3
0
 public Character(ZombieGame game, string spriteName, int spriteFrames, int spriteLines, Vector2 initPos, float depth)
     : base(game)
 {
     ZombieGame = game;
     Sprite = new AnimatedSprite(ZombieGame, spriteName, spriteFrames, spriteLines, initPos, depth);
 }