Motor de sprites/animacions/surfaces i jugador centrat (v0.2.0)

This commit is contained in:
JailDesigner committed 2026-04-18 21:02:55 +02:00
1 parent 7bb1edd08a
commit de5a670fdb
34 files changed
+16137 -81

No files matched your search

+21 -2
View File
@@ -34,7 +34,16 @@ set(APP_SOURCES
source/main.cpp
source/core/system/director.cpp
source/core/rendering/screen.cpp
source/game/scenes/black_scene.cpp
source/core/rendering/gif.cpp
source/core/rendering/surface.cpp
source/core/rendering/sprite/sprite.cpp
source/core/rendering/sprite/moving_sprite.cpp
source/core/rendering/sprite/animated_sprite.cpp
source/core/resources/resource_helper.cpp
source/core/resources/resource_cache.cpp
source/utils/utils.cpp
source/game/scenes/game_scene.cpp
source/game/entities/player.cpp
)
find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3)
@@ -48,6 +57,15 @@ target_include_directories(${PROJECT_NAME} PRIVATE
target_link_libraries(${PROJECT_NAME} PRIVATE SDL3::SDL3)
# Copia recursius de la carpeta data/ al costat del binari per que les rutes
# relatives ("data/player/player.gif") funcionen sense desplegament.
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_SOURCE_DIR}/data"
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/data"
COMMENT "Copying data/ next to the binary"
)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic)
target_compile_definitions(${PROJECT_NAME} PRIVATE
$<$<CONFIG:Debug>:_DEBUG>
@@ -120,7 +138,8 @@ if(CPPCHECK_EXE)
--inline-suppr
--suppress=missingIncludeSystem
--suppress=toomanyconfigs
--suppress=*:*/source/external/*
--suppress=*:*source/external/*
--suppress=normalCheckLevelMaxBranches
-D_DEBUG
-DLINUX_BUILD
--quiet