Control-universe Vampire Survivors-like horde survivor (C++23 + CMake + raylib 6.2 via FetchContent). - sim/render split: raylib-free core/game, deterministic 60 Hz tick, PCG32 seeds - RoR2-style corruption scaling + credit spawn director (too-cheap rule) - 4 Objects of Power weapons with levels 1-4 and Altered Form evolutions - VS-style Board Directive drafts, damage numbers, brutalist diorama presenter - docs: game design, art direction, technical design, roadmap Milestones M0-M2 complete and validated (250 enemies @ 60 fps stress capture).
35 lines
935 B
CMake
35 lines
935 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(cntrl LANGUAGES C CXX)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "" FORCE)
|
|
endif()
|
|
|
|
# --- raylib 6.2, fetched and built from source ---
|
|
include(FetchContent)
|
|
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
set(BUILD_GAMES OFF CACHE BOOL "" FORCE)
|
|
FetchContent_Declare(raylib
|
|
GIT_REPOSITORY https://github.com/raysan5/raylib.git
|
|
GIT_TAG 6.2)
|
|
FetchContent_MakeAvailable(raylib)
|
|
|
|
add_executable(cntrl
|
|
src/main.cpp
|
|
src/game/corruption.cpp
|
|
src/game/director.cpp
|
|
src/game/player.cpp
|
|
src/game/enemies.cpp
|
|
src/game/weapons.cpp
|
|
src/game/pickups.cpp
|
|
src/game/game.cpp
|
|
src/render/presenter.cpp
|
|
src/render/ui.cpp)
|
|
|
|
target_include_directories(cntrl PRIVATE src)
|
|
target_link_libraries(cntrl PRIVATE raylib)
|