diff options
| author | raysan5 <[email protected]> | 2021-10-17 21:00:20 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-17 21:00:20 +0200 |
| commit | cf12992b6a3bdf1f5332111708aa0200525cc60a (patch) | |
| tree | 70d3e92415c077e626607ee321e7326f123cbe95 /examples/core/core_basic_screen_manager.c | |
| parent | 67a1e84859f903adb0b1d1ab0605c472d31dab8a (diff) | |
| download | raylib-cf12992b6a3bdf1f5332111708aa0200525cc60a.tar.gz raylib-cf12992b6a3bdf1f5332111708aa0200525cc60a.zip | |
Remove trailing spaces
Diffstat (limited to 'examples/core/core_basic_screen_manager.c')
| -rw-r--r-- | examples/core/core_basic_screen_manager.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/examples/core/core_basic_screen_manager.c b/examples/core/core_basic_screen_manager.c index 9c19d862..6051f175 100644 --- a/examples/core/core_basic_screen_manager.c +++ b/examples/core/core_basic_screen_manager.c @@ -38,15 +38,15 @@ int main(void) SetTargetFPS(60); // Set desired framerate (frames-per-second) //-------------------------------------------------------------------------------------- - + // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { // Update //---------------------------------------------------------------------------------- - switch(currentScreen) + switch(currentScreen) { - case LOGO: + case LOGO: { // TODO: Update LOGO screen variables here! @@ -58,7 +58,7 @@ int main(void) currentScreen = TITLE; } } break; - case TITLE: + case TITLE: { // TODO: Update TITLE screen variables here! @@ -69,16 +69,16 @@ int main(void) } } break; case GAMEPLAY: - { + { // TODO: Update GAMEPLAY screen variables here! // Press enter to change to ENDING screen if (IsKeyPressed(KEY_ENTER) || IsGestureDetected(GESTURE_TAP)) { currentScreen = ENDING; - } + } } break; - case ENDING: + case ENDING: { // TODO: Update ENDING screen variables here! @@ -86,63 +86,63 @@ int main(void) if (IsKeyPressed(KEY_ENTER) || IsGestureDetected(GESTURE_TAP)) { currentScreen = TITLE; - } + } } break; default: break; } //---------------------------------------------------------------------------------- - + // Draw //---------------------------------------------------------------------------------- BeginDrawing(); - + ClearBackground(RAYWHITE); - - switch(currentScreen) + + switch(currentScreen) { - case LOGO: + case LOGO: { // TODO: Draw LOGO screen here! DrawText("LOGO SCREEN", 20, 20, 40, LIGHTGRAY); DrawText("WAIT for 2 SECONDS...", 290, 220, 20, GRAY); - + } break; - case TITLE: + case TITLE: { // TODO: Draw TITLE screen here! DrawRectangle(0, 0, screenWidth, screenHeight, GREEN); DrawText("TITLE SCREEN", 20, 20, 40, DARKGREEN); DrawText("PRESS ENTER or TAP to JUMP to GAMEPLAY SCREEN", 120, 220, 20, DARKGREEN); - + } break; case GAMEPLAY: - { + { // TODO: Draw GAMEPLAY screen here! DrawRectangle(0, 0, screenWidth, screenHeight, PURPLE); DrawText("GAMEPLAY SCREEN", 20, 20, 40, MAROON); DrawText("PRESS ENTER or TAP to JUMP to ENDING SCREEN", 130, 220, 20, MAROON); } break; - case ENDING: + case ENDING: { // TODO: Draw ENDING screen here! DrawRectangle(0, 0, screenWidth, screenHeight, BLUE); DrawText("ENDING SCREEN", 20, 20, 40, DARKBLUE); DrawText("PRESS ENTER or TAP to RETURN to TITLE SCREEN", 120, 220, 20, DARKBLUE); - + } break; default: break; } - + EndDrawing(); //---------------------------------------------------------------------------------- } // De-Initialization //-------------------------------------------------------------------------------------- - + // TODO: Unload all loaded data (textures, fonts, audio) here! - + CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- |
