Hp, Lvl en Xp gameplay toegevoegt

This commit is contained in:
Aaldert
2016-06-21 12:25:38 +02:00
parent 7c4805d899
commit 35c21260e4
7 changed files with 76 additions and 10 deletions
+2
View File
@@ -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);
}