Fixed the build system
This commit is contained in:
parent
c22e97dbdf
commit
35f48fd7c0
2 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
2
main.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue