Enemy stops geluid als gedood
This commit is contained in:
@@ -27,6 +27,7 @@ Enemy::Enemy(const std::string &fileName,
|
|||||||
|
|
||||||
Enemy::~Enemy()
|
Enemy::~Enemy()
|
||||||
{
|
{
|
||||||
|
music->Stop();
|
||||||
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
|
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
|
||||||
if (model)
|
if (model)
|
||||||
Model::unload(model);
|
Model::unload(model);
|
||||||
@@ -106,8 +107,6 @@ void Enemy::update(float delta)
|
|||||||
{
|
{
|
||||||
attack = true;
|
attack = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
rotation.y = atan2f(dx, dz) * 180 / M_PI;
|
rotation.y = atan2f(dx, dz) * 180 / M_PI;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+4
-4
@@ -92,10 +92,10 @@
|
|||||||
},
|
},
|
||||||
"enemies": [
|
"enemies": [
|
||||||
{
|
{
|
||||||
"file": "models/squid/Blooper.obj",
|
"file": "models/squid/Blooper.obj",
|
||||||
"pos": [ 20, 5, 10 ],
|
"pos": [ 30, 10, 10 ],
|
||||||
"scale": 0.01,
|
"scale": 0.01,
|
||||||
"music": "WAVE/ghostEnemy.wav"
|
"music": "WAVE/ghostEnemy.wav"
|
||||||
}],
|
}],
|
||||||
"crystal": {
|
"crystal": {
|
||||||
"full texture": "models/crystal/Crystal.obj",
|
"full texture": "models/crystal/Crystal.obj",
|
||||||
|
|||||||
Reference in New Issue
Block a user