From 35f48fd7c0d996fbe71823593342fb1713276885 Mon Sep 17 00:00:00 2001 From: VegOwOtenks Date: Sat, 1 Mar 2025 23:20:20 +0100 Subject: [PATCH] Fixed the build system --- CMakeLists.txt | 4 ++-- main.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bff39c4..52ce37d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ add_subdirectory(submodules/SDL_ttf EXCLUDE_FROM_ALL) add_subdirectory(submodules/utilitiec EXCLUDE_FROM_ALL) # Create your game executable target as usual -add_executable(hello WIN32 hello.c SDL_FPSCounter.c) +add_executable(partikle WIN32 main.c SDL_FPSCounter.c) # Link to the actual SDL3 library. -target_link_libraries(hello PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3 QuadTree allocator-interface rand m) +target_link_libraries(partikle PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3 QuadTree allocator-interface rand m) diff --git a/main.c b/main.c index de92292..9df4683 100644 --- a/main.c +++ b/main.c @@ -118,7 +118,6 @@ void Particle_Move(Particle* self) if (frame_rate == 0) { frame_rate = 60; } - printf("%lu\n", SDL_FPSCounterFPS(&fps_counter)); Particle copy = *self; @@ -143,7 +142,6 @@ void Particle_Move(Particle* self) } /* - self->position.x = self->position.x > 600 ? self->position.x - 600 : self->position.x; self->position.x = self->position.x < 0 ? self->position.x + 600 : self->position.x; self->position.y = self->position.y > 600 ? self->position.y - 600 : self->position.y;