mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 13:25:10 +00:00
adding blowable tag to bonuses but the bomb exploded the bonuses instantly
This commit is contained in:
@@ -53,6 +53,7 @@ namespace BBM
|
|||||||
return;
|
return;
|
||||||
wal.getScene()->scheduleNewEntity("Bonus")
|
wal.getScene()->scheduleNewEntity("Bonus")
|
||||||
.addComponent<PositionComponent>(position)
|
.addComponent<PositionComponent>(position)
|
||||||
|
.addComponent<TagComponent<Blowable>>()
|
||||||
.addComponent<HealthComponent>(1, [](WAL::Entity &entity, WAL::Wal &wal) {
|
.addComponent<HealthComponent>(1, [](WAL::Entity &entity, WAL::Wal &wal) {
|
||||||
entity.scheduleDeletion();
|
entity.scheduleDeletion();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user