Muziek toegvoegt aan world en enemy
This commit is contained in:
@@ -219,8 +219,7 @@
|
|||||||
<Media Include="WAVE\Crystal.wav" />
|
<Media Include="WAVE\Crystal.wav" />
|
||||||
<Media Include="WAVE\ghostEnemy.wav" />
|
<Media Include="WAVE\ghostEnemy.wav" />
|
||||||
<Media Include="WAVE\portal.wav" />
|
<Media Include="WAVE\portal.wav" />
|
||||||
<Media Include="WAVE\test1.wav" />
|
<Media Include="WAVE\world1.wav" />
|
||||||
<Media Include="WAVE\test2.wav" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
|||||||
@@ -207,16 +207,13 @@
|
|||||||
<Media Include="WAVE\Crystal.wav">
|
<Media Include="WAVE\Crystal.wav">
|
||||||
<Filter>Resource Files</Filter>
|
<Filter>Resource Files</Filter>
|
||||||
</Media>
|
</Media>
|
||||||
<Media Include="WAVE\ghostEnemy.wav">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</Media>
|
|
||||||
<Media Include="WAVE\portal.wav">
|
<Media Include="WAVE\portal.wav">
|
||||||
<Filter>Resource Files</Filter>
|
<Filter>Resource Files</Filter>
|
||||||
</Media>
|
</Media>
|
||||||
<Media Include="WAVE\test1.wav">
|
<Media Include="WAVE\ghostEnemy.wav">
|
||||||
<Filter>Resource Files</Filter>
|
<Filter>Resource Files</Filter>
|
||||||
</Media>
|
</Media>
|
||||||
<Media Include="WAVE\test2.wav">
|
<Media Include="WAVE\world1.wav">
|
||||||
<Filter>Resource Files</Filter>
|
<Filter>Resource Files</Filter>
|
||||||
</Media>
|
</Media>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -27,10 +27,9 @@ Enemy::Enemy(const std::string &fileName,
|
|||||||
|
|
||||||
Enemy::~Enemy()
|
Enemy::~Enemy()
|
||||||
{
|
{
|
||||||
|
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
|
||||||
if (model)
|
if (model)
|
||||||
Model::unload(model);
|
Model::unload(model);
|
||||||
|
|
||||||
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Enemy::draw()
|
void Enemy::draw()
|
||||||
@@ -106,11 +105,6 @@ void Enemy::update(float delta)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
attack = true;
|
attack = true;
|
||||||
if (music->IsPlaying() == true)
|
|
||||||
{
|
|
||||||
// music->Pause();
|
|
||||||
music->Stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rotation.y = atan2f(dx, dz) * 180 / M_PI;
|
rotation.y = atan2f(dx, dz) * 180 / M_PI;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -314,8 +314,12 @@ void World::update(float elapsedTime)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(remove)
|
if (remove)
|
||||||
|
{
|
||||||
|
delete enemies[count];
|
||||||
enemies.erase(enemies.begin() + count);
|
enemies.erase(enemies.begin() + count);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
skybox->update(elapsedTime, maxEnemies - enemies.size(), maxEnemies);
|
skybox->update(elapsedTime, maxEnemies - enemies.size(), maxEnemies);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
"heightmap": "worlds/rockHeightmap.png",
|
"heightmap": "worlds/rockHeightmap.png",
|
||||||
"texture": "worlds/rockStone2.png",
|
"texture": "worlds/rockStone2.png",
|
||||||
"skybox": "skyboxes/water/",
|
"skybox": "skyboxes/water/",
|
||||||
"music": "WAVE/test2.wav",
|
"music": "WAVE/world1.wav",
|
||||||
"object-templates": [
|
"object-templates": [
|
||||||
{
|
{
|
||||||
"color": 50,
|
"color": 50,
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
"file": "models/squid/Blooper.obj",
|
"file": "models/squid/Blooper.obj",
|
||||||
"pos": [ 20, 5, 10 ],
|
"pos": [ 20, 5, 10 ],
|
||||||
"scale": 0.01,
|
"scale": 0.01,
|
||||||
"music": "WAVE/enemy.wav"
|
"music": "WAVE/ghostEnemy.wav"
|
||||||
}],
|
}],
|
||||||
"crystal": {
|
"crystal": {
|
||||||
"full texture": "models/crystal/Crystal.obj",
|
"full texture": "models/crystal/Crystal.obj",
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"collision": true
|
"collision": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"music": "WAVE/test1.wav"
|
"music": "WAVE/world1.wav"
|
||||||
},
|
},
|
||||||
"player": {
|
"player": {
|
||||||
"startposition": [ 20, 5, 20 ]
|
"startposition": [ 20, 5, 20 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user