{{comment .License}}
v{{.StableVersion}}
|
{{if eq .Name "blocks"}}
Click to play! |
{{else}}
{{end}} |
:; brew install glew
:; brew install glfw3 # or homebrew/versions/glfw3
:; go get -u github.com/hajimehoshi/ebiten
If you want to use GopherJS, execute this:
:; go get -u -tag=js github.com/hajimehoshi/ebiten
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
:; go run rotate/main.go
If you can the example screens above, Ebiten is working on your browser! Each example above works as an independent html in an iframe. If you want to execute the examples apart from this site, execute this:
:; go get github.com/gopherjs/gopherjs
:; go run $GOPATH/src/github.com/hajimehoshi/ebiten/example/server/main.go
Then, open localhost:8000
on your browser.
localhost:8000/?EXAMPLE_NAME
shows other examples (e.g. localhost:8000/?rotate
).
Of cource, you can execute gopherjs yourself. Please see GopherJS site for more detail.
{{.License}}
The original photograph of Go gophers by Chris Nokleberg is licensed under the Creative Commons 3.0 Attributions license.