CreateExplosion event published on shell collision now.

This commit is contained in:
Stiffly
2014-05-31 22:15:44 +02:00
parent a31e3faa1f
commit d407502432
4 changed files with 24 additions and 14 deletions
-13
View File
@@ -85,19 +85,6 @@ void InputManager::Update(double dt)
EventBroker->Publish(e);
}
if(m_CurrentKeyState[GLFW_KEY_Z])
{
Events::CreateExplosion e;
e.LifeTime = 1;
e.ParticleScale = 6;
e.ParticlesToSpawn = 1;
e.Position = glm::vec3(0, -15, 0);
e.RelativeUpOrientation = glm::angleAxis(glm::pi<float>() / 2, glm::vec3(1,0,0));
e.Speed = 3;
e.SpreadAngle = glm::pi<float>();
e.spritePath = "Textures/Sprites/SeriousParticle.png";
EventBroker->Publish(e);
}
// // Lock mouse while holding LMB
// if (m_CurrentMouseState[GLFW_MOUSE_BUTTON_LEFT])