mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 03:12:01 +00:00
fix timer square
This commit is contained in:
@@ -28,8 +28,8 @@ namespace BBM
|
||||
if (pos.position.distance(posTarget) < 4) {
|
||||
hasEnded = true;
|
||||
this->_wal.getScene()->scheduleNewEntity("white background")
|
||||
.addComponent<PositionComponent>(1920 / 2 - 2 * 30 - 20, 30, 0)
|
||||
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(Vector2f(), Vector2f(150, 60), RAY::Color(BLACK).setA(10));
|
||||
.addComponent<PositionComponent>(1920 / 2 - 2 * 30 - 20, 28, 0)
|
||||
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(Vector2f(), Vector2f(150, 60), RAY::Color(BLACK).setA(150));
|
||||
this->_wal.getScene()->scheduleNewEntity("Timer")
|
||||
.addComponent<TimerComponent>(std::chrono::minutes (3), [](WAL::Entity &, WAL::Wal &) {
|
||||
Runner::gameState.nextScene = GameState::ScoreScene;
|
||||
|
||||
Reference in New Issue
Block a user