Upercase function naming

This commit is contained in:
huaqo-games
2025-03-18 10:30:02 +01:00
parent 044172a7e0
commit 388dcab85a
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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);
+3 -3
View File
@@ -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);