Updated example

This commit is contained in:
raysan5 2014-12-31 19:17:50 +01:00
parent d51d6a4650
commit 5e913c31a4

View file

@ -84,7 +84,7 @@ int main()
btnNextInColor = PURPLE; btnNextInColor = PURPLE;
} }
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
{ {
framesCounter = 20; // Frames button is 'active' framesCounter = 20; // Frames button is 'active'
btnNextOutColor = MAROON; btnNextOutColor = MAROON;
@ -97,8 +97,8 @@ int main()
btnNextOutColor = DARKBLUE; btnNextOutColor = DARKBLUE;
btnNextInColor = SKYBLUE; btnNextInColor = SKYBLUE;
} }
if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON) && (framesCounter > 0)) framesCounter--; if (framesCounter > 0) framesCounter--;
if (framesCounter == 1) // We change font on frame 1 if (framesCounter == 1) // We change font on frame 1
{ {