the player now see the bomb explosion before dying of it

This commit is contained in:
HENRY Benjamin
2021-06-17 14:34:29 +02:00
parent 933a96c449
commit 4e306581de
13 changed files with 27 additions and 16 deletions
@@ -5,14 +5,19 @@
#include "Component/Score/ScoreComponent.hpp"
#include "Component/Health/HealthComponent.hpp"
#include "Wal.hpp"
#include <chrono>
using namespace std::chrono_literals;
namespace BBM
{
class EndConditionSystem : public WAL::System<ScoreComponent, HealthComponent>
{
public:
std::chrono::nanoseconds endConditionRate = 500ms;
//! @inherit
void onSelfUpdate() override;
void onSelfUpdate(std::chrono::nanoseconds dtime) override;
//! @brief ctor
EndConditionSystem(WAL::Wal &wal);