mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-31 17:33:20 +00:00
deleted bad texture
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB |
@@ -33,13 +33,6 @@ namespace BBM
|
||||
return;
|
||||
if (pos->position.distance(bombPosition.position) > BombHolderSystem::explosionRadius)
|
||||
return;
|
||||
wal.scene->scheduleNewEntity("explosion")
|
||||
.addComponent<PositionComponent>(pos->position)
|
||||
.addComponent<TimerComponent>(1s, [](WAL::Entity &explosion, WAL::Wal &wal) {
|
||||
explosion.scheduleDeletion();
|
||||
})
|
||||
.addComponent<Drawable3DComponent, RAY3D::Model>("assets/bombs/explosion/explosion.glb",
|
||||
std::make_pair(MAP_DIFFUSE, "assets/bombs/explosion/explosion.png"));
|
||||
// TODO do a raycast here to only remove health to entities that are not behind others.
|
||||
health->takeDmg(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user