clear stuff

This commit is contained in:
speckitor
2026-07-04 12:06:19 +07:00
parent 55a1f6917e
commit 700ccaeff0
+8 -9
View File
@@ -1,6 +1,6 @@
#include "raylib.h"
static void DrawLevel()
static void DrawLevel()
{
const Vector3 towerSize = (Vector3){ 16.0f, 32.0f, 16.0f };
@@ -18,7 +18,7 @@ static void DrawLevel()
towerPos.x *= -1;
DrawCubeV(towerPos, towerSize, RED);
DrawCubeWiresV(towerPos, towerSize, BLACK);
DrawCubeWiresV(towerPos, towerSize, BLACK);
}
int main()
@@ -27,16 +27,15 @@ int main()
SetTargetFPS(60);
Camera3D camera = { 0 };
camera.position = (Vector3){ 10.0f, 10.0f, 10.0f };
camera.target = (Vector3){ 0.0f, 12.0f, 0.0f };
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f };
camera.fovy = 60.0f;
camera.projection = CAMERA_PERSPECTIVE;
camera.position = (Vector3){ 10.0f, 10.0f, 10.0f };
camera.target = (Vector3){ 0.0f, 12.0f, 0.0f };
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f };
camera.fovy = 60.0f;
camera.projection = CAMERA_PERSPECTIVE;
while (!WindowShouldClose()) {
UpdateCamera(&camera, CAMERA_FREE);
DisableCursor();
if(IsKeyPressed(KEY_Z)) camera.target = (Vector3){0.0f, 0.0f, 0.0f};
DisableCursor();
BeginDrawing();
ClearBackground(RAYWHITE);