mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-02 20:29:18 -05:00
Replaced font.size with font.baseSize. Uncommented linux libs. Typo or two
This commit is contained in:
@ -116,7 +116,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
||||
LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lm -pthread -ldl
|
||||
# on XWindow could require also below libraries, just uncomment
|
||||
#LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||
LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||
else
|
||||
ifeq ($(PLATFORM_OS),OSX)
|
||||
# libraries for OS X 10.9 desktop compiling
|
||||
|
||||
@ -362,11 +362,11 @@ void DrawAisle01Screen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -374,7 +374,7 @@ void DrawAisle01Screen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(lamp.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(picture.bounds, Fade(RED, 0.6f));
|
||||
@ -406,4 +406,4 @@ void UnloadAisle01Screen(void)
|
||||
int FinishAisle01Screen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -393,11 +393,11 @@ void DrawAisle02Screen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -405,7 +405,7 @@ void DrawAisle02Screen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(lamp.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(arc.bounds, Fade(RED, 0.6f));
|
||||
@ -441,4 +441,4 @@ void UnloadAisle02Screen(void)
|
||||
int FinishAisle02Screen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -355,11 +355,11 @@ void DrawArmoryScreen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -367,7 +367,7 @@ void DrawArmoryScreen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(blazon01.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(blazon02.bounds, Fade(RED, 0.6f));
|
||||
@ -401,4 +401,4 @@ void UnloadArmoryScreen(void)
|
||||
int FinishArmoryScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -285,11 +285,11 @@ void DrawAtticScreen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -297,7 +297,7 @@ void DrawAtticScreen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(lamp.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(arc.bounds, Fade(RED, 0.6f));
|
||||
@ -329,4 +329,4 @@ void UnloadAtticScreen(void)
|
||||
int FinishAtticScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -334,11 +334,11 @@ void DrawBathroomScreen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -346,7 +346,7 @@ void DrawBathroomScreen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(lamp.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(mirror.bounds, Fade(RED, 0.6f));
|
||||
@ -380,4 +380,4 @@ void UnloadBathroomScreen(void)
|
||||
int FinishBathroomScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,8 +71,8 @@ void DrawEndingScreen(void)
|
||||
{
|
||||
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), DARKGRAY);
|
||||
|
||||
DrawTextEx(font, "CONGRATULATIONS!", (Vector2){ 50, 160 }, font.size*3, 2, Fade(WHITE, alpha));
|
||||
DrawTextEx(font, "SKULLY ESCAPED!", (Vector2){ 100, 300 }, font.size*3, 2, Fade(WHITE, alpha));
|
||||
DrawTextEx(font, "CONGRATULATIONS!", (Vector2){ 50, 160 }, font.baseSize*3, 2, Fade(WHITE, alpha));
|
||||
DrawTextEx(font, "SKULLY ESCAPED!", (Vector2){ 100, 300 }, font.baseSize*3, 2, Fade(WHITE, alpha));
|
||||
|
||||
if ((framesCounter > 180) && ((framesCounter/40)%2)) DrawText("PRESS ENTER or CLICK", 380, 545, 40, BLACK);
|
||||
}
|
||||
@ -87,4 +87,4 @@ void UnloadEndingScreen(void)
|
||||
int FinishEndingScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -354,11 +354,11 @@ void DrawKitchenScreen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -366,7 +366,7 @@ void DrawKitchenScreen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(closet.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(window.bounds, Fade(RED, 0.6f));
|
||||
@ -400,4 +400,4 @@ void UnloadKitchenScreen(void)
|
||||
int FinishKitchenScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
@ -354,11 +354,11 @@ void DrawLivingroomScreen(void)
|
||||
|
||||
if (msgState == 0)
|
||||
{
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
}
|
||||
else if (msgState == 1)
|
||||
{
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.size, 2, WHITE);
|
||||
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
|
||||
|
||||
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
|
||||
}
|
||||
@ -366,7 +366,7 @@ void DrawLivingroomScreen(void)
|
||||
{
|
||||
if ((msgCounter/30)%2)
|
||||
{
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.size*2, 2, WHITE);
|
||||
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
|
||||
|
||||
DrawRectangleRec(candle.bounds, Fade(RED, 0.6f));
|
||||
DrawRectangleRec(phone.bounds, Fade(RED, 0.6f));
|
||||
@ -400,4 +400,4 @@ void UnloadLivingroomScreen(void)
|
||||
int FinishLivingroomScreen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user