diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index a88734a..0e75e05 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -4,6 +4,7 @@ #include <ui.hpp> #include <gametime.hpp> #include <world.hpp> +#include <particle.hpp> void PlayerSystem::create(void) { @@ -107,6 +108,9 @@ void PlayerSystem::receive(const KeyDownEvent &kde) } else if (kc == getControl(3)) { if (game::canSprint) speed = 2.0f; + + game::engine.getSystem<ParticleSystem>()->addMultiple(10, ParticleType::SmallBlast, + [&](){ return vec2(loc.x, loc.y); }, 1000); } else if (kc == getControl(4)) { speed = .5; } else if (kc == getControl(5)) { |