Resetting the velocity on death

This commit is contained in:
Zoe Roux
2021-06-20 19:19:35 +02:00
parent e2386e885b
commit 5293222f88
4 changed files with 12 additions and 5 deletions
+1 -4
View File
@@ -63,10 +63,7 @@ namespace BBM
entity.scheduleDeletion();
for (auto &[entity, controller, _] : gameScene->view<ControllableComponent, HealthComponent>()) {
controller.disabled = true;
controller.pause = false;
controller.bomb = false;
controller.move = Vector2f();
controller.disable();
}
for (auto &[_, timer] : gameScene->view<TimerComponent>())
timer.disabled = true;