there is now a player character and the world renders using a cammera

This commit is contained in:
2026-04-09 13:11:55 -07:00
parent 09c310cb4a
commit af639e62c3
47 changed files with 1737 additions and 83 deletions

View File

@@ -9,5 +9,45 @@ set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_COLOR_DIAGNOSTICS ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(external)
add_subdirectory(source)
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "Building for docker")
if(DOCKER)
target_compile_definitions(sshGameServer PUBLIC
DOCKER
)
find_program(podman_exe podman)
if(NOT podman_exe)
message(FATIAL_ERROR "Cant find podman")
endif()
add_custom_target( # This will build the docker container
docker
COMMAND bash ${CMAKE_SOURCE_DIR}/dockerCompile.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
add_custom_target( # This will deploy that docker image on the server
deploy
COMMAND bash ${CMAKE_SOURCE_DIR}/dockerCompile.sh --exp --dep
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
USES_TERMINAL
)
add_custom_target( # This will export the docker image to the server
export
COMMAND bash ${CMAKE_SOURCE_DIR}/dockerCompile.sh --exp
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
USES_TERMINAL
)
add_custom_target( # This will build the root image
root
COMMAND bash ${CMAKE_SOURCE_DIR}/dockerCompile.sh --env
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
USES_TERMINAL
)
add_custom_target(
run
COMMAND bash ${CMAKE_SOURCE_DIR}/dockerCompile.sh --run
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
USES_TERMINAL
)
endif()