mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-07 06:39:17 -05:00
Replaced font.size with font.baseSize. Uncommented linux libs. Typo or two
This commit is contained in:
@ -687,7 +687,7 @@ void DrawGameplayScreen(void)
|
||||
}
|
||||
|
||||
// Draw time left for ritual
|
||||
DrawTextEx(font, FormatText("%02.2f", (99.0f - ritualTime)), (Vector2){ 560, 20 }, font.size, 0, WHITE);
|
||||
DrawTextEx(font, FormatText("%02.2f", (99.0f - ritualTime)), (Vector2){ 560, 20 }, font.baseSize, 0, WHITE);
|
||||
|
||||
// Draw light energy bar
|
||||
DrawRectangle(20, 30, 400, 20, GRAY);
|
||||
@ -703,7 +703,7 @@ void DrawGameplayScreen(void)
|
||||
// Show message: "You run out of light!!!" if player.lightEnergy <= 0
|
||||
if (player.lightEnergy < 2)
|
||||
{
|
||||
if ((framesCounter/20)%2) DrawTextEx(font, "YOU'RE RUNNING OUT OF LIGHT!", (Vector2){ 20, 60 }, font.size/2, 0, WHITE);
|
||||
if ((framesCounter/20)%2) DrawTextEx(font, "YOU'RE RUNNING OUT OF LIGHT!", (Vector2){ 20, 60 }, 24/2, 0, WHITE);
|
||||
}
|
||||
}
|
||||
else if (!timeOver) // LEVEL_FINISHED
|
||||
@ -846,4 +846,4 @@ static void EnemyReset(Enemy *enemy)
|
||||
enemy->speed = (float)GetRandomValue(8, 18)/10.0f;
|
||||
enemy->awakeFramesDelay = GetRandomValue(180, 1200);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ void DrawTitleScreen(void)
|
||||
|
||||
DrawText("(c) Developed by Ramon Santamaria (@raysan5)", 20, GetScreenHeight() - 40, 20, LIGHTGRAY);
|
||||
|
||||
if ((framesCounter > 180) && ((framesCounter/40)%2)) DrawTextEx(font, "PRESS ENTER to START LIGHTING", (Vector2){ 230, 450 }, font.size, -2, WHITE);
|
||||
if ((framesCounter > 180) && ((framesCounter/40)%2)) DrawTextEx(font, "PRESS ENTER to START LIGHTING", (Vector2){ 230, 450 }, 24, -2, WHITE);
|
||||
}
|
||||
|
||||
// Title Screen Unload logic
|
||||
@ -102,4 +102,4 @@ void UnloadTitleScreen(void)
|
||||
int FinishTitleScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user