Merge branch 'master' into master
This commit is contained in:
commit
8d6254b352
3 changed files with 22175 additions and 5774 deletions
|
|
@ -52,7 +52,7 @@ int main(void)
|
|||
// Set bilinear scale filter for better font scaling
|
||||
SetTextureFilter(font.texture, TEXTURE_FILTER_BILINEAR);
|
||||
|
||||
SetTextLineSpacing(54); // Set line spacing for multiline text (when line breaks are included '\n')
|
||||
SetTextLineSpacing(20); // Set line spacing for multiline text (when line breaks are included '\n')
|
||||
|
||||
// Free codepoints, atlas has already been generated
|
||||
free(codepointsNoDups);
|
||||
|
|
@ -60,7 +60,6 @@ int main(void)
|
|||
bool showFontAtlas = false;
|
||||
|
||||
int codepointSize = 0;
|
||||
int codepoint = 0;
|
||||
char *ptr = text;
|
||||
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
|
|
@ -77,13 +76,13 @@ int main(void)
|
|||
if (IsKeyPressed(KEY_RIGHT))
|
||||
{
|
||||
// Get next codepoint in string and move pointer
|
||||
codepoint = GetCodepointNext(ptr, &codepointSize);
|
||||
GetCodepointNext(ptr, &codepointSize);
|
||||
ptr += codepointSize;
|
||||
}
|
||||
else if (IsKeyPressed(KEY_LEFT))
|
||||
{
|
||||
// Get previous codepoint in string and move pointer
|
||||
codepoint = GetCodepointPrevious(ptr, &codepointSize);
|
||||
GetCodepointPrevious(ptr, &codepointSize);
|
||||
ptr -= codepointSize;
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ int main(void)
|
|||
// Handle clicking the cube
|
||||
if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT))
|
||||
{
|
||||
Ray ray = GetMouseRay(GetMousePosition(), camera);
|
||||
Ray ray = GetScreenToWorldRay(GetMousePosition(), camera);
|
||||
|
||||
// Check collision between ray and box
|
||||
RayCollision collision = GetRayCollisionBox(ray,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ int main(void)
|
|||
// NOTE: We define a font base size of 32 pixels tall and up-to 250 characters
|
||||
RLFont fontTtf = LoadFontEx("resources/pixantiqua.ttf", 32, 0, 250);
|
||||
|
||||
SetTextLineSpacing(48); // Set line spacing for multiline text (when line breaks are included '\n')
|
||||
SetTextLineSpacing(16); // Set line spacing for multiline text (when line breaks are included '\n')
|
||||
|
||||
bool useTtf = false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue