소스 검색

Update FPS_ShootatBoxTarget.c

Rudy Boudewijn van Etten 5 년 전
부모
커밋
ff093cdb44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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