From 471d78075fee9db7465f239cac65db71cd67614a Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 30 Sep 2021 12:22:25 -0400 Subject: [PATCH] Loading screen is ready --- game/src/scenes/loading_screen.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/game/src/scenes/loading_screen.rs b/game/src/scenes/loading_screen.rs index 7860a0e..0b07a32 100644 --- a/game/src/scenes/loading_screen.rs +++ b/game/src/scenes/loading_screen.rs @@ -124,5 +124,18 @@ impl ScreenSpaceRender for LoadingScreen { 1.0, Color::WHITE.fade(fade_percentage), ); + + // Only in debug mode, render a debug message + #[cfg(debug_assertions)] + { + raylib.draw_rectangle_v(Vector2::zero(), Vector2::new(screen_size.x, 40.0), Color::RED); + raylib.draw_text( + "Game in DEBUG MODE. Do not redistribute!", + 10, + 10, + 20, + Color::WHITE, + ); + } } }