2014-12-27 16:26:33 +01:00
<!DOCTYPE html>
2014-12-27 22:18:23 +01:00
{{comment .License}}
2014-12-28 08:59:04 +01:00
< link rel = "shortcut icon" href = "./favicon.png" type = "image/png" >
< link rel = "icon" href = "./favicon.png" type = "image/png" >
2014-12-28 09:14:56 +01:00
< title > Ebiten - A simple SNES-like 2D game library in Go< / title >
2014-12-28 07:37:51 +01:00
< style >
2014-12-28 08:54:13 +01:00
body {
font-family: sans-serif;
}
2014-12-28 07:37:51 +01:00
table.examples td {
vertical-align: top;
}
table.examples td.code {
border-color: #999;
border-style: solid;
border-width: 1px;
}
table.examples td.code pre {
height: 240px;
overflow: auto;
}
2015-01-05 16:44:39 +01:00
table.examples iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
2014-12-28 07:37:51 +01:00
< / style >
2014-12-29 15:16:02 +01:00
< h1 > Ebiten (海老天)< / h1 >
2014-12-29 15:52:37 +01:00
< p > v{{.StableVersion}}< / p >
2014-12-27 22:18:23 +01:00
< ul >
2014-12-28 09:09:50 +01:00
< li > A simple SNES-like 2D game library in Go< / li >
2014-12-27 22:18:23 +01:00
< li > Works on
< ul >
2015-01-02 17:24:32 +01:00
< li > HTML5 (powered by < a href = "http://gopherjs.org/" > GopherJS< / a > )
2014-12-27 22:18:23 +01:00
< li > Mac OS X< / li >
< li > Linux (maybe)< / li >
< li > Windows (possibly)< / li >
< / ul >
< / li >
< li > < a href = "http://godoc.org/github.com/hajimehoshi/ebiten" > API Docs< / a > < / li >
2014-12-29 15:52:37 +01:00
< li > < a href = "http://github.com/hajimehoshi/ebiten" > Source Code< / a > (Development version: v{{.DevVersion}})< / li >
2014-12-27 22:18:23 +01:00
< / ul >
< h2 > Features< / h2 >
< ul >
< li > 2D Graphics< / li >
< li > Input (Mouse, Keyboard)< / li >
< / ul >
< h2 > Example< / h2 >
2014-12-28 07:37:51 +01:00
< table class = "examples" >
2014-12-27 22:18:23 +01:00
{{range .Examples}}
< tr >
2014-12-28 07:37:51 +01:00
< td class = "code" > < pre > < code > // < b > {{.Name}}< / b >
{{.Source}}< / code > < / pre > < / td >
2015-01-05 16:44:39 +01:00
{{if ne .Name "blocks"}}
< td > < iframe src = "example/{{.Name}}.html" width = "{{.Width}}" height = "{{.Height}}" > < / iframe > < / td >
{{else}}
< td > (TODO: Implement link)< / td >
{{end}}
2014-12-27 22:18:23 +01:00
< / tr >
{{end}}
< / table >
< h2 > Install on Mac OS X< / h2 >
< pre > < code > :; brew install glew
:; brew install glfw3 # or homebrew/versions/glfw3
:; go get -u github.com/hajimehoshi/ebiten< / code > < / pre >
2015-01-02 17:24:32 +01:00
< p > If you want to use GopherJS, execute this:< / p >
< pre > < code > :; go get -u -tag=js github.com/hajimehoshi/ebiten< / code > < / pre >
2014-12-27 22:18:23 +01:00
< h2 > Execute the example< / h2 >
< pre > < code > :; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
:; go run rotate/main.go< / code > < / pre >
2015-01-05 15:55:25 +01:00
< h2 > Execute the example on your browser< / h2 >
< pre > < code > :; go get github.com/gopherjs/gopherjs
:; go run $GOPATH/src/github.com/hajimehoshi/ebiten/example/server/main.go< / code > < / pre >
< p > Then, open < code > localhost:8000< / code > on your browser.< / p >
< p > < code > localhost:8000/?EXAMPLE_NAME< / code > shows other examples (e.g. < code > localhost:8000/?rotate< / code > ).< / p >
2014-12-27 22:18:23 +01:00
< h2 > License< / h2 >
2014-12-31 19:02:53 +01:00
< h3 > Ebiten< / h3 >
< pre > {{.License}}< / pre >
< h3 > Go Gopher photograph< / h3 >
< p > < a href = "http://blog.golang.org/go-programming-language-turns-two" > The original photograph of Go gophers by Chris Nokleberg< / a > is licensed under the Creative Commons 3.0 Attributions license.< / p >