[Added] Start of State Management

This commit is contained in:
Ninjaws
2024-12-06 23:51:56 +01:00
parent 0c1f12d534
commit 5d2251c0f4
10 changed files with 250 additions and 110 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#!/bin/bash
clear
g++ src/main.cpp -o dist/jelly_rescue -L$LD_LIBRARY_PATH -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
# g++ src/main.cpp -o dist/jelly_rescue -L$LD_LIBRARY_PATH -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
g++ $(find src/ -name "*.cpp") -o dist/jelly_rescue -I./include -L$LD_LIBRARY_PATH -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
# g++ src/main.cpp -o dist/jelly_rescue -L$LD_LIBRARY_PATH -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
./dist/jelly_rescue
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
emcc -o dist/game.js src/main.cpp -Os -Wall /app/raylib/src/libraylib.a -I. -I/app/raylib/build/raylib/include -L. -L$LD_LIBRARY_PATH -s USE_GLFW=3 -s --preload-file assets@/assets -DPLATFORM_WEB
# --shell-file /app/raylib/src/shell.html
cd dist
python3 -m http.server 8080;
+2 -1
View File
@@ -1,2 +1,3 @@
#!/bin/bash
find ./src/ -name "*.cpp" -o -name "*.h" | entr -r ./scripts/build_and_run_project.sh
find src/ -name "*.cpp" -o -wholename "./include/**/*.h" | entr -r ./scripts/build_and_run_project.sh
# find ./include/ -name "*.h" | entr -r ./scripts/build_and_run_project.sh