Doing some code reshuffling
This commit is contained in:
@@ -39,6 +39,21 @@ add_subdirectory(tools)
|
||||
if(TARGET_TYPE STREQUAL test)
|
||||
add_subdirectory(test)
|
||||
elseif(TARGET_TYPE STREQUAL game)
|
||||
# Set up shared assets
|
||||
|
||||
# Shaders
|
||||
tool_copy(shader_textured
|
||||
shared/shaders/textured.vert shaders/textured.vert
|
||||
shared/shaders/textured.frag shaders/textured.frag
|
||||
)
|
||||
|
||||
# Fonts
|
||||
tool_copy(font_opensans
|
||||
shared/fonts/opensans/OpenSans-Regular.ttf fonts/opensans/OpenSans-Regular.ttf
|
||||
shared/fonts/opensans/OpenSans-Bold.ttf fonts/opensans/OpenSans-Bold.ttf
|
||||
)
|
||||
|
||||
# Poker Game
|
||||
if(TARGET_GAME STREQUAL poker)
|
||||
add_compile_definitions(
|
||||
GAME_NAME="Penny's Poker"
|
||||
@@ -51,24 +66,26 @@ elseif(TARGET_TYPE STREQUAL game)
|
||||
)
|
||||
|
||||
set(DIR_CHARS poker/characters)
|
||||
tool_vn_character(penny
|
||||
tool_vn_character(vn_penny
|
||||
${DIR_CHARS}/penny/character.xml ${DIR_CHARS}/penny.png
|
||||
)
|
||||
tool_vn_character(lucy
|
||||
tool_vn_character(vn_lucy
|
||||
${DIR_CHARS}/lucy/character.xml ${DIR_CHARS}/lucy.png
|
||||
)
|
||||
tool_vn_character(jenny
|
||||
${DIR_CHARS}/jenny/character.xml ${DIR_CHARS}/jenny.png
|
||||
tool_vn_character(vn_julie
|
||||
${DIR_CHARS}/julie/character.xml ${DIR_CHARS}/julie.png
|
||||
)
|
||||
tool_vn_character(sammy
|
||||
tool_vn_character(vn_sammy
|
||||
${DIR_CHARS}/sammy/character.xml ${DIR_CHARS}/sammy.png
|
||||
)
|
||||
|
||||
tool_assets(
|
||||
penny
|
||||
lucy
|
||||
jenny
|
||||
sammy
|
||||
shader_textured
|
||||
font_opensans
|
||||
vn_penny
|
||||
vn_lucy
|
||||
vn_julie
|
||||
vn_sammy
|
||||
)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user