public void OnCollected(Enemy collectedBy) { // killMonsterSound.Play(screenManager.Settings.SoundVolumeAmount); killMonsterSound.Play(); }
/// <summary> /// Instantiates an enemy and puts him in the level. /// </summary> private LevelTile LoadEnemyTile(int x, int y, string spriteSet, int health, int attack, int exp) { Vector2 position = RectangleExtensions.GetBottomCenter(GetBounds(x, y)); Enemy e = new Enemy(position, spriteSet, health, attack, exp); Level.enemies.Add(e); return new LevelTile(null, TileCollision.Passable); }