|
@@ -30,7 +30,7 @@ int main(void)
|
|
|
|
|
|
int framesCounter = 0;
|
|
|
|
|
|
- SetTargetFPS(10); // Set our game to run at 60 frames-per-second
|
|
|
+ SetTargetFPS(10); // Set our game to run at 10 frames-per-second
|
|
|
//--------------------------------------------------------------------------------------
|
|
|
|
|
|
// Main game loop
|
|
@@ -65,9 +65,8 @@ int main(void)
|
|
|
if (IsKeyPressed(KEY_BACKSPACE))
|
|
|
{
|
|
|
letterCount--;
|
|
|
- name[letterCount] = '\0';
|
|
|
-
|
|
|
if (letterCount < 0) letterCount = 0;
|
|
|
+ name[letterCount] = '\0';
|
|
|
}
|
|
|
}
|
|
|
else if (GetMouseCursor() != MOUSE_CURSOR_DEFAULT) SetMouseCursor(MOUSE_CURSOR_DEFAULT);
|
|
@@ -124,4 +123,4 @@ bool IsAnyKeyPressed()
|
|
|
if ((key >= 32) && (key <= 126)) keyPressed = true;
|
|
|
|
|
|
return keyPressed;
|
|
|
-}
|
|
|
+}
|