add input support and fps limit

This commit is contained in:
2023-04-01 21:04:36 +02:00
parent 3c6c9a3745
commit 28cd62c026
2 changed files with 126 additions and 73 deletions

View File

@@ -1,15 +1,15 @@
WASM3_C := $(wildcard wasm3/source/*.c)
WASM3_O := $(WASM3_C:.c=.o)
run: wasm3-test .PHONY
./wasm3-test
uw8-wasm3: main.o $(WASM3_O)
gcc -g -lm -lSDL2 -o uw8-wasm3 $^
run: uw8-wasm3 .PHONY
./uw8-wasm3
run-ts:
deno run --allow-read main.ts
wasm3-test: main.o $(WASM3_O)
gcc -g -lm -lSDL2 -o wasm3-test $^
wasm3/source/%.o: wasm3/source/%.c
gcc -g -O2 -c -o $@ $^
@@ -17,6 +17,6 @@ main.o: main.c
gcc -g -O2 -c -o main.o main.c
clean:
rm wasm3-test main.o $(WASM3_O)
rm uw8-wasm3 main.o $(WASM3_O)
.PHONY: