Nimbin[12]?SDL & Graphics / sdl_runtime_compiler / commits / 7dae072

sdl_runtime_compiler git · main

SDL3 game for running and compiling code at runtime

sdl3 c++ compiler dlopen cmake · first commit 2026-04-19 · last commit 2026-07-03 (3 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-runtime-compiler

C++ 72.3% C 26.2%
git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gz

Set min y pos for success banner

Christian Immanuel · 2026-05-30 16:00 · 7dae072dbd275319f966475b88f0ac03f0db7dc9

 src/states/game_state.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/states/game_state.cpp b/src/states/game_state.cpp
index e12ca35..63b7343 100644
--- a/src/states/game_state.cpp
+++ b/src/states/game_state.cpp
@@ -1015,6 +1015,9 @@ GameState::celebration_Start()
         ctx.camera->pos.z + ctx.camera->fwd.z * 10.0,
     };
 
+    if (banner_pos.y < static_cast<double>(-WORLD_BOX_SCALE+1.0f) )
+        banner_pos.y = -WORLD_BOX_SCALE+1.0f;
+
     celebration.banner = make_Text3d("Success",
                                      Text3d::depth_floor * 2.0f,
                                      0.012f, banner_pos,