From 388dcab85a9aeacf4b22043dc5204dd353ce1870 Mon Sep 17 00:00:00 2001 From: huaqo-games Date: Tue, 18 Mar 2025 10:30:02 +0100 Subject: [PATCH] Upercase function naming --- src/game/logo.h | 6 +++--- src/game/menu.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game/logo.h b/src/game/logo.h index 4b508d6..e82c054 100644 --- a/src/game/logo.h +++ b/src/game/logo.h @@ -14,7 +14,7 @@ typedef struct { float alpha; } LogoState; -void initLogo(LogoState *l) { +void InitLogo(LogoState *l) { SetTargetFPS(60); l->frameCounter = 0; @@ -29,7 +29,7 @@ void initLogo(LogoState *l) { l->alpha = 1.0f; } -void updateLogo(LogoState *l, Screen *currentScreen) { +void UpdateLogo(LogoState *l, Screen *currentScreen) { l->frameCounter++; // Increment the frame counter each frame if (l->state == 0) { // State 0: Small box blinking for 120 frames (2 seconds at 60 FPS) @@ -75,7 +75,7 @@ void updateLogo(LogoState *l, Screen *currentScreen) { } } -void renderLogo(const LogoState *l) { +void RenderLogo(const LogoState *l) { BeginDrawing(); ClearBackground(RAYWHITE); diff --git a/src/game/menu.h b/src/game/menu.h index e568fac..62580c9 100644 --- a/src/game/menu.h +++ b/src/game/menu.h @@ -7,17 +7,17 @@ typedef struct { Button startButton; } MenuState; -void initMenu(MenuState *t){ +void InitMenu(MenuState *t){ initButton(&t->startButton, "Start Game", GetScreenWidth() / 10, GetScreenHeight() / 20, GetScreenWidth() / 2, GetScreenHeight() / 2); } -void updateMenu(MenuState *t, Screen *currentScreen){ +void UpdateMenu(MenuState *t, Screen *currentScreen){ if (isButtonClicked(&t->startButton)) { *currentScreen = GAMEPLAY; } } -void renderMenu(MenuState *t){ +void RenderMenu(MenuState *t){ BeginDrawing(); ClearBackground(WHITE); renderButton(&t->startButton);