From 7cb810089144d42d202e0b267235174d7869c5aa Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 10 Oct 2025 11:29:09 +0200 Subject: checkpoint --- code/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'code/build.sh') diff --git a/code/build.sh b/code/build.sh index dd02a94..f892d39 100755 --- a/code/build.sh +++ b/code/build.sh @@ -26,6 +26,7 @@ WarningFlags=" -Wno-unused-parameter -Wno-unused-function -Wno-null-dereference +-Wno-missing-braces " WasmCompilerFlags=" @@ -60,13 +61,13 @@ then " fi -printf 'game.c\n' +printf 'game.cpp\n' clang \ $CompilerFlags \ $WasmCompilerFlags $WasmLinkerFlags \ $WarningFlags \ -o ../build/game.wasm \ - game.c + game.cpp printf 'index.html platform.js favicon.ico\n' ln -f index.html platform.js ../build cp ../data/favicon.ico ../build @@ -83,4 +84,10 @@ then ws.c fi +if [ -s "../build/font.c" ] +then + printf 'font.ttf\n' + xxd -i -n "data_font_ttf" ../data/font.ttf > ../build/font.c +fi + printf '%s\n' "update" | websocat 'ws://localhost:1234/' -- cgit v1.2.3-70-g09d2