Add comment for player rectangle initialization

Hadn't come across Rectangle struct till now thought this would help other people too.
This commit is contained in:
Bleawu 2026-04-08 09:36:34 +05:30 committed by GitHub
parent c5fc771622
commit f10255bcfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,7 @@ int main(void)
InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera"); InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera");
//Rectangle rect = { x, y, width, height}
Rectangle player = { 400, 280, 40, 40 }; Rectangle player = { 400, 280, 40, 40 };
Rectangle buildings[MAX_BUILDINGS] = { 0 }; Rectangle buildings[MAX_BUILDINGS] = { 0 };
Color buildColors[MAX_BUILDINGS] = { 0 }; Color buildColors[MAX_BUILDINGS] = { 0 };