diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-01 10:55:23 -0700 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-01 10:55:23 -0700 |
commit | a8e21e0ac702fc7bcdcaf144f384cbce8aae03d0 (patch) | |
tree | 7b6a4ab19e749b73eefa620875e6fc5321bd1dc3 | |
parent | 861bc73b34765829e5fc9e68bbb0b18ec44e0903 (diff) |
Needed to ad glfw to cmake
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/entities/caporale.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 16d2099..cb03d1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ file(GLOB SRC_FILES src/*.c src/entities/*.c src/levels/*.c) add_executable(${PROJECT_NAME} ${SRC_FILES}) target_include_directories(${PROJECT_NAME} PUBLIC include src) -target_link_libraries(${PROJECT_NAME} raylib m) +target_link_libraries(${PROJECT_NAME} raylib m glfw) file(COPY assets/assets.rres DESTINATION ${CMAKE_BINARY_DIR}) diff --git a/src/entities/caporale.c b/src/entities/caporale.c index 3b29784..c522ad8 100644 --- a/src/entities/caporale.c +++ b/src/entities/caporale.c @@ -10,6 +10,8 @@ void initCaporale(Entity * entity, Game * game) { entity->transformedCollisionModel = entityCreateCollisionModel(*entity->model); setEntityRadius(entity); + entity->health = 0.25; + // Allocate data. entity->data = KF_MALLOC(sizeof(Caporale)); |