1
0
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:
Johan Brandhorst
2019-06-23 12:09:44 +01:00
parent 7d59825716
commit 53ba73a804
7 changed files with 475 additions and 0 deletions

View File

@@ -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/