diff options
-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)); |