From cbe1f2837d1ae8c619fbd778801442d464843b11 Mon Sep 17 00:00:00 2001 From: "arthur.jamet" Date: Fri, 18 Jun 2021 12:20:53 +0200 Subject: [PATCH] fix timer square --- sources/System/Renderer/CameraSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/System/Renderer/CameraSystem.cpp b/sources/System/Renderer/CameraSystem.cpp index fdddc5c4..1684c2fe 100644 --- a/sources/System/Renderer/CameraSystem.cpp +++ b/sources/System/Renderer/CameraSystem.cpp @@ -28,8 +28,8 @@ namespace BBM if (pos.position.distance(posTarget) < 4) { hasEnded = true; this->_wal.getScene()->scheduleNewEntity("white background") - .addComponent(1920 / 2 - 2 * 30 - 20, 30, 0) - .addComponent(Vector2f(), Vector2f(150, 60), RAY::Color(BLACK).setA(10)); + .addComponent(1920 / 2 - 2 * 30 - 20, 28, 0) + .addComponent(Vector2f(), Vector2f(150, 60), RAY::Color(BLACK).setA(150)); this->_wal.getScene()->scheduleNewEntity("Timer") .addComponent(std::chrono::minutes (3), [](WAL::Entity &, WAL::Wal &) { Runner::gameState.nextScene = GameState::ScoreScene;