Fixing all other macros by adding RL_ prefix.
This commit is contained in:
parent
8579d1386d
commit
b6cb51e3e8
5 changed files with 1821 additions and 1821 deletions
|
|
@ -206,7 +206,7 @@ static void UpdateTransition(void)
|
|||
// Draw transition effect (full-screen rectangle)
|
||||
static void DrawTransition(void)
|
||||
{
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), Fade(BLACK, transAlpha));
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), Fade(RL_BLACK, transAlpha));
|
||||
}
|
||||
|
||||
// Update and draw game frame
|
||||
|
|
@ -267,7 +267,7 @@ static void UpdateDrawFrame(void)
|
|||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
ClearBackground(RL_RAYWHITE);
|
||||
|
||||
switch(currentScreen)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -63,9 +63,9 @@ void UpdateEndingScreen(void)
|
|||
void DrawEndingScreen(void)
|
||||
{
|
||||
// TODO: Draw ENDING screen here!
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), BLUE);
|
||||
DrawTextEx(font, "ENDING SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, DARKBLUE);
|
||||
DrawText("PRESS ENTER or TAP to RETURN to TITLE SCREEN", 120, 220, 20, DARKBLUE);
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), RL_BLUE);
|
||||
DrawTextEx(font, "ENDING SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, RL_DARKBLUE);
|
||||
DrawText("PRESS ENTER or TAP to RETURN to TITLE SCREEN", 120, 220, 20, RL_DARKBLUE);
|
||||
}
|
||||
|
||||
// Ending Screen Unload logic
|
||||
|
|
|
|||
|
|
@ -63,9 +63,9 @@ void UpdateGameplayScreen(void)
|
|||
void DrawGameplayScreen(void)
|
||||
{
|
||||
// TODO: Draw GAMEPLAY screen here!
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), PURPLE);
|
||||
DrawTextEx(font, "GAMEPLAY SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, MAROON);
|
||||
DrawText("PRESS ENTER or TAP to JUMP to ENDING SCREEN", 130, 220, 20, MAROON);
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), RL_PURPLE);
|
||||
DrawTextEx(font, "GAMEPLAY SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, RL_MAROON);
|
||||
DrawText("PRESS ENTER or TAP to JUMP to ENDING SCREEN", 130, 220, 20, RL_MAROON);
|
||||
}
|
||||
|
||||
// Gameplay Screen Unload logic
|
||||
|
|
|
|||
|
|
@ -68,10 +68,10 @@ void UpdateLogoScreen(void)
|
|||
void DrawLogoScreen(void)
|
||||
{
|
||||
// TODO: Draw LOGO screen here!
|
||||
DrawTextEx(font, "LOGO SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, GRAY);
|
||||
DrawText("WAIT for 2 SECONDS...", 290, 400, 20, GRAY);
|
||||
DrawTextEx(font, "LOGO SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, RL_GRAY);
|
||||
DrawText("WAIT for 2 SECONDS...", 290, 400, 20, RL_GRAY);
|
||||
|
||||
DrawTexture(logo, GetScreenWidth()/2 - logo.width/2, 100, WHITE);
|
||||
DrawTexture(logo, GetScreenWidth()/2 - logo.width/2, 100, RL_WHITE);
|
||||
}
|
||||
|
||||
// Logo Screen Unload logic
|
||||
|
|
|
|||
|
|
@ -64,9 +64,9 @@ void UpdateTitleScreen(void)
|
|||
void DrawTitleScreen(void)
|
||||
{
|
||||
// TODO: Draw TITLE screen here!
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), GREEN);
|
||||
DrawTextEx(font, "TITLE SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, DARKGREEN);
|
||||
DrawText("PRESS ENTER or TAP to JUMP to GAMEPLAY SCREEN", 120, 220, 20, DARKGREEN);
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), RL_GREEN);
|
||||
DrawTextEx(font, "TITLE SCREEN", (Vector2){ 20, 10 }, font.baseSize*3, 4, RL_DARKGREEN);
|
||||
DrawText("PRESS ENTER or TAP to JUMP to GAMEPLAY SCREEN", 120, 220, 20, RL_DARKGREEN);
|
||||
}
|
||||
|
||||
// Title Screen Unload logic
|
||||
|
|
|
|||
Loading…
Reference in a new issue