瀏覽代碼

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.y + 0.5f,
                                      targetboxposition.z + 0.5f }})){
                                      targetboxposition.z + 0.5f }})){
             // Put the target box at a new position.
             // 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
         // Draw