diff --git a/main.cpp b/main.cpp index 3fdbfaf..cb67369 100644 --- a/main.cpp +++ b/main.cpp @@ -102,7 +102,7 @@ void generate_tree() tree[i].numOfBranches = GetRandomValue(1, 3); - tree[i].lenghthRatio = ((float)GetRandomValue(600,700)) / 1000.0f; + tree[i].lenghthRatio = ((float)GetRandomValue(600, 700)) / 1000.0f; } tree[0].color = tree[1].color; @@ -136,7 +136,7 @@ int main(void) while (!WindowShouldClose()) { - if (IsKeyPressed(KEY_R)) + if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { new_tree(); }