add coolmath build config file with edited title

This commit is contained in:
ohsqueezy 2023-12-26 23:22:10 -05:00
parent 690601808c
commit 63336a3126
4 changed files with 14 additions and 3 deletions

View File

@ -223,10 +223,12 @@ cakefoot_debug.html : $(addprefix $(WASM_DEBUG_BUILD_DIR)/, SDL2_rotozoom.o SDL2
cakefoot_coolmath.js : CC = $(EMSCRIPTENHOME)/emcc
cakefoot_coolmath.js : CXX = $(EMSCRIPTENHOME)/em++
cakefoot_coolmath.js : CFLAGS = $(EMSCRIPTEN_CFLAGS)
cakefoot_coolmath.js : CFLAGS = $(EMSCRIPTEN_CFLAGS) -D__COOLMATH__
cakefoot_coolmath.js : CXXFLAGS = $(CFLAGS) --std=c++17
cakefoot_coolmath.js : EMSCRIPTEN_GAME_CONFIGS += src/config_coolmath.json
cakefoot_coolmath.js : $(addprefix $(WASM_COOLMATH_BUILD_DIR)/, SDL2_rotozoom.o SDL2_gfxPrimitives.o $(SB_O_FILES) $(SRC_O_FILES)) $(EMSCRIPTEN_GAME_CONFIGS)
$(CXX) $(filter-out $(EMSCRIPTEN_GAME_CONFIGS), $^) $(CXXFLAGS) $(EMSCRIPTEN_LFLAGS) -D__COOLMATH__ $(EMSCRIPTEN_PRELOADS) -o $(WASM_COOLMATH_BUILD_DIR)/$@
$(CXX) $(filter-out $(EMSCRIPTEN_GAME_CONFIGS), $^) $(CXXFLAGS) $(EMSCRIPTEN_LFLAGS) -D__COOLMATH__ $(EMSCRIPTEN_PRELOADS) \
--preload-file "src/config_coolmath.json" -o $(WASM_COOLMATH_BUILD_DIR)/$@
cp src/index_coolmath.html $(WASM_COOLMATH_BUILD_DIR)/index.html
#################

View File

@ -2,7 +2,7 @@
"display":
{
"dimensions": [864, 486],
"title": "c a k e f o o t",
"title": "cakefoot🍰👣",
"debug": false,
"render driver": "opengl",
"default font path": "resource/BPmono.ttf",

View File

@ -2807,6 +2807,9 @@ int main()
#if defined(__ARCADE_ONLY__)
/* Merge the arcade-only configuration */
Cakefoot game = Cakefoot({"src/config_arcade.json"});
#elif defined(__COOLMATH__)
/* Merge config specific to the coolmath WASM build */
Cakefoot game = Cakefoot({"src/config_coolmath.json"});
#else
Cakefoot game = Cakefoot();
#endif

6
src/config_coolmath.json Normal file
View File

@ -0,0 +1,6 @@
{
"display":
{
"title": "cakefoot🍰👣 Play it now at CoolmathGames.com"
}
}