Sfoglia il codice sorgente

Update FPS_ShootatBoxTarget.c

Rudy Boudewijn van Etten 5 anni fa
parent
commit
ff093cdb44
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      3D/FPS_ShootatBoxTarget.c

+ 1 - 1
3D/FPS_ShootatBoxTarget.c

@@ -114,7 +114,7 @@ int main(void)
                                      targetboxposition.y + 0.5f,
                                      targetboxposition.z + 0.5f }})){
             // Put the target box at a new position.
-            targetboxposition = (Vector3){(float)GetRandomValue(5,40),10.0f,(float)GetRandomValue(5,40)};
+            targetboxposition = (Vector3){(float)GetRandomValue(5,40),(float)GetRandomValue(2,10),(float)GetRandomValue(5,40)};
         }
         //----------------------------------------------------------------------------------
         // Draw