sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
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.gzSet min y pos for success banner
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,