diff --git a/build.sh b/build.sh deleted file mode 100755 index 2d25d33..0000000 --- a/build.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -xe - -mkdir -p build/ - -clang -I./include/ -o build/core_basic_window ./examples/core_basic_window.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/core_basic_screen_manager ./examples/core_basic_screen_manager.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/core_input_keys ./examples/core_input_keys.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/shapes_colors_palette ./examples/shapes_colors_palette.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/game ./game.c -L./lib/ -lraylib -lm -clang -I./include/ -o ./build/core_input_mouse_wheel ./examples/core_input_mouse_wheel.c -L./lib/ -lraylib -lm -clang -I./include/ -o ./build/text_writing_anim ./examples/text_writing_anim.c -L./lib/ -lraylib -lm -clang -I./include/ -o ./build/textures_logo_raylib ./examples/textures_logo_raylib.c -L./lib/ -lraylib -lm - -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_basic_window.wasm ./examples/core_basic_window.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_basic_screen_manager.wasm ./examples/core_basic_screen_manager.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_input_keys.wasm ./examples/core_input_keys.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/shapes_colors_palette.wasm ./examples/shapes_colors_palette.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/game.wasm game.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_input_mouse_wheel.wasm ./examples/core_input_mouse_wheel.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/text_writing_anim.wasm ./examples/text_writing_anim.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/textures_logo_raylib.wasm ./examples/textures_logo_raylib.c -DPLATFORM_WEB - diff --git a/nob.c b/nob.c index 7bcf321..15ef36d 100644 --- a/nob.c +++ b/nob.c @@ -29,9 +29,14 @@ Example examples[] = { .wasm_path = "./wasm/shapes_colors_palette.wasm", }, { - .src_path = "game.c", - .bin_path = "./build/game", - .wasm_path = "wasm/game.wasm", + .src_path = "./examples/tsoding_ball.c", + .bin_path = "./build/tsoding_ball", + .wasm_path = "./wasm/tsoding_ball.wasm", + }, + { + .src_path = "./examples/tsoding_snake/tsoding_snake.c", + .bin_path = "./build/tsoding_snake", + .wasm_path = "./wasm/tsoding_snake.wasm", }, { .src_path = "./examples/core_input_mouse_wheel.c", diff --git a/wasm/tsoding_snake.wasm b/wasm/tsoding_snake.wasm index 52b5439..aced634 100755 Binary files a/wasm/tsoding_snake.wasm and b/wasm/tsoding_snake.wasm differ