mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
89 lines
2.7 KiB
HTML
89 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
{{comment .License}}
|
|
<link rel="shortcut icon" href="./favicon.png" type="image/png" >
|
|
<link rel="icon" href="./favicon.png" type="image/png" >
|
|
<title>Ebiten - A simple SNES-like 2D game library in Go</title>
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
}
|
|
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;
|
|
}
|
|
table.examples iframe {
|
|
border-color: #999;
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
<h1>Ebiten (海老天)</h1>
|
|
<p>v{{.StableVersion}}</p>
|
|
<ul>
|
|
<li>A simple SNES-like 2D game library in Go</li>
|
|
<li>Works on
|
|
<ul>
|
|
<li>HTML5 (powered by <a href="http://gopherjs.org/">GopherJS</a>)
|
|
<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>
|
|
<li><a href="http://github.com/hajimehoshi/ebiten">Source Code</a> (Development version: v{{.DevVersion}})</li>
|
|
</ul>
|
|
|
|
<h2>Features</h2>
|
|
<ul>
|
|
<li>2D Graphics</li>
|
|
<li>Input (Mouse, Keyboard)</li>
|
|
</ul>
|
|
|
|
<h2>Example</h2>
|
|
<table class="examples">
|
|
{{range .Examples}}
|
|
<tr>
|
|
<td class="code"><pre><code>// <b>{{.Name}}</b>
|
|
|
|
{{.Source}}</code></pre></td>
|
|
{{if eq .Name "blocks"}}
|
|
<td>Click to play!<br><a href="example/blocks.html"><img src="blocks.png" width="{{.Width}}" height="{{.Height}}"></a></td>
|
|
{{else}}
|
|
<td><iframe src="example/{{.Name}}.html" width="{{.Width}}" height="{{.Height}}"></iframe></td>
|
|
{{end}}
|
|
</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>
|
|
<p>If you want to use GopherJS, execute this:</p>
|
|
<pre><code>:; go get -u -tag=js github.com/hajimehoshi/ebiten</code></pre>
|
|
|
|
<h2>Execute the example</h2>
|
|
<pre><code>:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
|
|
:; go run rotate/main.go</code></pre>
|
|
|
|
<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>
|
|
|
|
<h2>License</h2>
|
|
<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>
|