Add color assignment for buildings in 2D camera

Haven't come across Color initialization in C or Raylib till now.
This commit is contained in:
Bleawu 2026-04-08 09:52:00 +05:30 committed by GitHub
parent c5fc771622
commit 5a8a8b0d20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@ int main(void)
spacing += (int)buildings[i].width;
//(Color){ Red, Blue, Green, Alpha }
buildColors[i] = (Color){
(unsigned char)GetRandomValue(200, 240),
(unsigned char)GetRandomValue(200, 240),