mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 09:45:42 +00:00
Fixing more than two players scores
This commit is contained in:
@@ -121,7 +121,9 @@ namespace BBM
|
||||
return;
|
||||
entity.getComponent<ControllableComponent>().disabled = true;
|
||||
entity.addComponent<TimerComponent>(1s, [](WAL::Entity &ent, WAL::Wal &) {
|
||||
ent.scheduleDeletion();
|
||||
ent.removeComponent<SoundComponent>();
|
||||
ent.removeComponent<CollisionComponent>();
|
||||
ent.removeComponent<PositionComponent>();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -92,6 +92,5 @@ namespace BBM
|
||||
newCameraPos.y = maxDist;
|
||||
newCameraPos.z -= newCameraPos.z > 1 ? 1 : 0;
|
||||
pos.position += (newCameraPos.abs() - pos.position.abs()) / 10;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user