mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 10:44:42 +00:00
Merging with develop
This commit is contained in:
@@ -78,7 +78,15 @@ namespace BBM
|
||||
.addComponent<PlayerBonusComponent>()
|
||||
.addComponent<HealthComponent>(1, [](WAL::Entity &entity, WAL::Wal &) {
|
||||
auto &animation = entity.getComponent<AnimationsComponent>();
|
||||
|
||||
animation.setAnimIndex(5);
|
||||
if (entity.hasComponent<ControllableComponent>())
|
||||
entity.removeComponent<ControllableComponent>();
|
||||
if (entity.hasComponent<TimerComponent>())
|
||||
return;
|
||||
entity.addComponent<TimerComponent>(1s, [](WAL::Entity &entity, WAL::Wal &wal) {
|
||||
entity.scheduleDeletion();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user