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:
parent
c5fc771622
commit
5a8a8b0d20
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user