Hp, Lvl en Xp gameplay toegevoegt
This commit is contained in:
@@ -17,6 +17,7 @@ Enemy::Enemy(const std::string &fileName,
|
||||
target = position;
|
||||
speed = 1;
|
||||
radius = 10;
|
||||
xp = 10;
|
||||
hasTarget = false;
|
||||
hit_sound_id = CrystalPoint::GetSoundSystem().LoadSound("WAVE/enemy.wav", false);
|
||||
music = CrystalPoint::GetSoundSystem().GetSound(hit_sound_id);
|
||||
@@ -26,6 +27,7 @@ Enemy::Enemy(const std::string &fileName,
|
||||
|
||||
Enemy::~Enemy()
|
||||
{
|
||||
|
||||
if (model)
|
||||
Model::unload(model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user