mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
Add ebiten example
This commit is contained in:
6
Makefile
6
Makefile
@@ -50,6 +50,12 @@ tinygo-canvas: clean
|
||||
cp ./canvas/index.html ./html/index.html
|
||||
cp ./canvas/main.go ./html/main.go
|
||||
|
||||
.PHONY: ebiten
|
||||
ebiten: clean
|
||||
GO111MODULE=on GOOS=js GOARCH=wasm go build -o ./html/ebiten.wasm ./ebiten/main.go
|
||||
cp ./ebiten/index.html ./html/index.html
|
||||
cp $$(go env GOROOT)/misc/wasm/wasm_exec.js ./html/wasm_exec.js
|
||||
|
||||
test: clean
|
||||
GOOS=js GOARCH=wasm go test -c -o ./html/test.wasm ./test/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user