fix timer square

This commit is contained in:
arthur.jamet
2021-06-18 12:20:53 +02:00
parent 1bcbdcdd01
commit cbe1f2837d
+2 -2
View File
@@ -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;