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:
parent
c5fc771622
commit
f10255bcfa
|
|
@ -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 };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user