aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-11-06 10:06:18 +0100
committerraysan5 <raysan5@gmail.com>2016-11-06 10:06:18 +0100
commit66d22acfb38ca8f8698ae7caffaa3f31ece3024f (patch)
tree7b0fcd59e7aaf8b34e9b4c469ceaf80d7fef2bf0 /examples
parentaa945055fae4f76d428704ecbc9840b57aada35a (diff)
downloadraylib-66d22acfb38ca8f8698ae7caffaa3f31ece3024f.tar.gz
raylib-66d22acfb38ca8f8698ae7caffaa3f31ece3024f.zip
Improve text example
Diffstat (limited to 'examples')
-rw-r--r--examples/text_writing_anim.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/text_writing_anim.c b/examples/text_writing_anim.c
index 5f19b468..5563b561 100644
--- a/examples/text_writing_anim.c
+++ b/examples/text_writing_anim.c
@@ -32,7 +32,8 @@ int main()
{
// Update
//----------------------------------------------------------------------------------
- framesCounter++;
+ if (IsKeyDown(KEY_SPACE)) framesCounter += 8;
+ else framesCounter++;
if (IsKeyPressed(KEY_ENTER)) framesCounter = 0;
//----------------------------------------------------------------------------------
@@ -45,7 +46,8 @@ int main()
DrawText(SubText(message, 0, framesCounter/10), 210, 160, 20, MAROON);
- DrawText("PRESS [ENTER] to RESTART!", 240, 280, 20, LIGHTGRAY);
+ DrawText("PRESS [ENTER] to RESTART!", 240, 260, 20, LIGHTGRAY);
+ DrawText("PRESS [SPACE] to SPEED UP!", 239, 300, 20, LIGHTGRAY);
EndDrawing();
//----------------------------------------------------------------------------------