Game code start

This commit is contained in:
2026-07-19 11:49:13 -05:00
parent acd14f46a8
commit 725338cd5a
35 changed files with 1066 additions and 265 deletions
+24
View File
@@ -0,0 +1,24 @@
# Copyright (c) 2026 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# Sources
# itemgive.c/h are not built yet -- they depend on the RPG textbox UI
# (ui/rpg/textbox/uitextboxmain.h), which hasn't been restored. Add
# itemgive.c back here once that's back.
target_sources(${DUSK_LIBRARY_TARGET_NAME}
PUBLIC
item.c
inventory.c
backpack.c
)
# Item Definitions
dusk_run_python(
dusk_item_json_defs
tools.item
--json ${CMAKE_CURRENT_SOURCE_DIR}/item.json
--output ${DUSK_GENERATED_HEADERS_DIR}/item/itemdef.h
)
add_dependencies(${DUSK_LIBRARY_TARGET_NAME} dusk_item_json_defs)