Upercase function naming
This commit is contained in:
+3
-3
@@ -14,7 +14,7 @@ typedef struct {
|
|||||||
float alpha;
|
float alpha;
|
||||||
} LogoState;
|
} LogoState;
|
||||||
|
|
||||||
void initLogo(LogoState *l) {
|
void InitLogo(LogoState *l) {
|
||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
|
|
||||||
l->frameCounter = 0;
|
l->frameCounter = 0;
|
||||||
@@ -29,7 +29,7 @@ void initLogo(LogoState *l) {
|
|||||||
l->alpha = 1.0f;
|
l->alpha = 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateLogo(LogoState *l, Screen *currentScreen) {
|
void UpdateLogo(LogoState *l, Screen *currentScreen) {
|
||||||
l->frameCounter++; // Increment the frame counter each frame
|
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)
|
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();
|
BeginDrawing();
|
||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -7,17 +7,17 @@ typedef struct {
|
|||||||
Button startButton;
|
Button startButton;
|
||||||
} MenuState;
|
} MenuState;
|
||||||
|
|
||||||
void initMenu(MenuState *t){
|
void InitMenu(MenuState *t){
|
||||||
initButton(&t->startButton, "Start Game", GetScreenWidth() / 10, GetScreenHeight() / 20, GetScreenWidth() / 2, GetScreenHeight() / 2);
|
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)) {
|
if (isButtonClicked(&t->startButton)) {
|
||||||
*currentScreen = GAMEPLAY;
|
*currentScreen = GAMEPLAY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void renderMenu(MenuState *t){
|
void RenderMenu(MenuState *t){
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
ClearBackground(WHITE);
|
ClearBackground(WHITE);
|
||||||
renderButton(&t->startButton);
|
renderButton(&t->startButton);
|
||||||
|
|||||||
Reference in New Issue
Block a user