doc: Apply bootstrap

This commit is contained in:
Hajime Hoshi 2016-08-27 02:28:57 +09:00
parent de1bb1b392
commit af8c9dd12b
22 changed files with 530 additions and 726 deletions

View File

@ -1,28 +1,27 @@
<!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 example - {{.Example.Name}}</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
{{with .Example}}
<h1>Ebiten example - {{.Name}}</h1>
<iframe src="{{.Name}}.content.html" width="{{.Width}}" height="{{.Height}}"></iframe>
<pre><code>{{.Source}}</code></pre>
{{end}}
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
{{with .Example}}
<h1>Ebiten example - {{.Name}}</h1>
<iframe src="{{.Name}}.content.html" width="{{.Width}}" height="{{.Height}}"></iframe>
<pre><code>{{.Source}}</code></pre>
{{end}}
</div></main>
<footer><div class="container">
<p>{{.Copyright}}</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>{{.Copyright}}</footer>

View File

@ -1,62 +1,80 @@
<!DOCTYPE html>
{{comment .License}}
<meta name="description" content="Ebiten - A simple SNES-like 2D game library in Go">
<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>
<link rel="stylesheet" href="./style.css">
<a href="https://github.com/hajimehoshi/ebiten"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<h1>Ebiten (海老天)</h1>
<p>Stable version: v{{.StableVersion}} / Development version: v{{.DevVersion}}</p>
<ul>
<li>A simple SNES-like 2D game library in Go</li>
<li>Works on
<ul>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Web-Browsers">Web browsers</a> (powered by <a href="http://gopherjs.org/">GopherJS</a>)
<ul>
<li>Supported browsers: Chrome and Firefox on desktops</li>
</ul>
</li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Windows">Windows</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Mac-OS-X">Mac OS X</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Linux">Linux</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Android">Android</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/iOS">iOS</a></li>
</ul>
</li>
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten"><img src="https://godoc.org/github.com/hajimehoshi/ebiten?status.svg" alt="GoDoc Reference"></a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
</ul>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h2>Features</h2>
<ul>
<li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul>
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
<nav class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="#features">Features</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="#getting-started">Getting Started</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
</ul>
</nav>
</div></header>
<h2>Example</h2>
<p>
<main><div class="container">
<h1>Ebiten <small>(海老天)</small></h1>
<p class="lead">A simple SNES-like 2D game library in Go</p>
<p>Stable version: v{{.StableVersion}} / Development version: v{{.DevVersion}}</p>
<ul>
<li>Works on
<ul>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Web-Browsers">Web browsers</a> (powered by <a href="http://gopherjs.org/">GopherJS</a>)
<ul>
<li>Supported browsers: Chrome and Firefox on desktops</li>
</ul>
</li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Windows">Windows</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Mac-OS-X">Mac OS X</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Linux">Linux</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Android">Android</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/iOS">iOS</a></li>
</ul>
</li>
</ul>
<h2 id="features">Features</h2>
<ul>
<li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul>
<h2 id="examples">Examples</h2>
<div class="row">
{{range .Examples -}}
<a href="examples/{{.Name}}.html"><img src="images/examples/{{.Name}}.png" width="{{.ThumbWidth}}" height="{{.ThumbHeight}}" alt="Ebiten example: {{.Name}}" class="example"></a>
<div class="col-md-4">
<a class="thumbnail" href="examples/{{.Name}}.html"><img src="images/examples/{{.Name}}.png" width="{{.ThumbWidth}}" height="{{.ThumbHeight}}" alt="Ebiten example: {{.Name}}" class="example"></a>
</div>
{{- end}}
</p>
</div>
<h2>Execute the examples</h2>
<pre><code>:; go get github.com/hajimehoshi/ebiten
<h3>Execute the examples</h2>
<pre><code>:; go get github.com/hajimehoshi/ebiten
:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/examples
:; go run -tags example rotate/main.go</code></pre>
<p>Note that you need to specify <code>example</code> tag.</p>
<p>Note that you need to specify <code>example</code> tag.</p>
<h2 id="getting-started">Getting Started</h2>
<h2>Getting Started</h2>
<p>Let's build a simple "Hello world!" game to get started with Ebiten.
<p>Let's build a simple "Hello world!" game to get started with Ebiten.
First create a new directory (<code>mkdir hello_world</code>), and change
into it (<code>cd hello_world</code>). Type the following code into
the <code>main.go</code> file:</p>
<pre><code>package main
<pre><code>package main
import (
"github.com/hajimehoshi/ebiten"
@ -73,16 +91,14 @@ func main() {
}
</code></pre>
<p>Run the <code>go run</code> command to start the
<p>Run the <code>go run</code> command to start the
game. There you have it, your first Ebiten game!</p>
<h2>Change Log</h2>
<p>See <a href="https://github.com/hajimehoshi/ebiten/releases">GitHub releases page</a>.</p>
</div></main>
<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>
<footer>{{.Copyright}}</footer>
<footer><div class="container">
<p>{{.Copyright}}</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p><a href="http://blog.golang.org/go-programming-language-turns-two">The Gopher photographs by Chris Nokleberg</a> are licensed under <a href="https://creativecommons.org/licenses/by/3.0/">the Creative Commons 3.0 Attributions License</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - alphablending</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - alphablending</h1>
<iframe src="alphablending.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - alphablending</h1>
<iframe src="alphablending.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -116,5 +95,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - audio</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - audio</h1>
<iframe src="audio.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - audio</h1>
<iframe src="audio.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -325,5 +304,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,43 +1,28 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - blocks</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - blocks</h1>
<iframe src="blocks.content.html" width="512" height="480"></iframe>
<pre><code>// Please read examples/blocks/main.go and examples/blocks/blocks/*.go
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - blocks</h1>
<iframe src="blocks.content.html" width="512" height="480"></iframe>
<pre><code>// Please read examples/blocks/main.go and examples/blocks/blocks/*.go
// NOTE: If Gamepad API is available in your browswer, you can use gamepads. Try it out!</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - font</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - font</h1>
<iframe src="font.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - font</h1>
<iframe src="font.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -133,5 +112,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - gamepad</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - gamepad</h1>
<iframe src="gamepad.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - gamepad</h1>
<iframe src="gamepad.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -93,5 +72,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - hsv</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - hsv</h1>
<iframe src="hsv.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - hsv</h1>
<iframe src="hsv.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -130,5 +109,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - hue</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - hue</h1>
<iframe src="hue.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - hue</h1>
<iframe src="hue.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -83,5 +62,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - keyboard</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - keyboard</h1>
<iframe src="keyboard.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - keyboard</h1>
<iframe src="keyboard.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -154,5 +133,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - masking</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - masking</h1>
<iframe src="masking.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - masking</h1>
<iframe src="masking.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -167,5 +146,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - mosaic</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - mosaic</h1>
<iframe src="mosaic.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - mosaic</h1>
<iframe src="mosaic.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -91,5 +70,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - noise</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - noise</h1>
<iframe src="noise.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - noise</h1>
<iframe src="noise.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -99,5 +78,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - paint</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - paint</h1>
<iframe src="paint.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - paint</h1>
<iframe src="paint.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -141,5 +120,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - perspective</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - perspective</h1>
<iframe src="perspective.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - perspective</h1>
<iframe src="perspective.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -104,5 +83,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - piano</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - piano</h1>
<iframe src="piano.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - piano</h1>
<iframe src="piano.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -273,5 +252,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - rotate</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - rotate</h1>
<iframe src="rotate.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - rotate</h1>
<iframe src="rotate.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -84,5 +63,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,42 +1,21 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - sprites</title>
<style>
body {
font-family: sans-serif;
}
iframe {
border-color: #999;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
pre {
background: #eee;
padding: 1em;
}
</style>
<nav><a href="..">Ebiten</a></nav>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h1>Ebiten example - sprites</h1>
<iframe src="sprites.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
</header>
<main><div class="container">
<h1>Ebiten example - sprites</h1>
<iframe src="sprites.content.html" width="640" height="480"></iframe>
<pre><code>// &#43;build example
package main
@ -187,5 +166,11 @@ func main() {
}
</code></pre>
</div></main>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,74 +1,108 @@
<!DOCTYPE html>
<!--
Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<meta name="description" content="Ebiten - A simple SNES-like 2D game library in Go">
<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>
<link rel="stylesheet" href="./style.css">
<a href="https://github.com/hajimehoshi/ebiten"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<h1>Ebiten (海老天)</h1>
<p>Stable version: v1.4.0-alpha / Development version: v1.4.0-alpha</p>
<ul>
<li>A simple SNES-like 2D game library in Go</li>
<li>Works on
<ul>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Web-Browsers">Web browsers</a> (powered by <a href="http://gopherjs.org/">GopherJS</a>)
<ul>
<li>Supported browsers: Chrome and Firefox on desktops</li>
</ul>
</li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Windows">Windows</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Mac-OS-X">Mac OS X</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Linux">Linux</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Android">Android</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/iOS">iOS</a></li>
</ul>
</li>
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten"><img src="https://godoc.org/github.com/hajimehoshi/ebiten?status.svg" alt="GoDoc Reference"></a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
</ul>
<link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/ebiten.css">
<h2>Features</h2>
<ul>
<li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul>
<header class="navbar"><div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Ebiten</a>
</div>
<nav class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="#features">Features</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="#getting-started">Getting Started</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
</ul>
</nav>
</div></header>
<h2>Example</h2>
<p>
<a href="examples/alphablending.html"><img src="images/examples/alphablending.png" width="320" height="240" alt="Ebiten example: alphablending" class="example"></a><a href="examples/audio.html"><img src="images/examples/audio.png" width="320" height="240" alt="Ebiten example: audio" class="example"></a><a href="examples/font.html"><img src="images/examples/font.png" width="320" height="240" alt="Ebiten example: font" class="example"></a><a href="examples/hsv.html"><img src="images/examples/hsv.png" width="320" height="240" alt="Ebiten example: hsv" class="example"></a><a href="examples/hue.html"><img src="images/examples/hue.png" width="320" height="240" alt="Ebiten example: hue" class="example"></a><a href="examples/gamepad.html"><img src="images/examples/gamepad.png" width="320" height="240" alt="Ebiten example: gamepad" class="example"></a><a href="examples/keyboard.html"><img src="images/examples/keyboard.png" width="320" height="240" alt="Ebiten example: keyboard" class="example"></a><a href="examples/masking.html"><img src="images/examples/masking.png" width="320" height="240" alt="Ebiten example: masking" class="example"></a><a href="examples/mosaic.html"><img src="images/examples/mosaic.png" width="320" height="240" alt="Ebiten example: mosaic" class="example"></a><a href="examples/noise.html"><img src="images/examples/noise.png" width="320" height="240" alt="Ebiten example: noise" class="example"></a><a href="examples/paint.html"><img src="images/examples/paint.png" width="320" height="240" alt="Ebiten example: paint" class="example"></a><a href="examples/perspective.html"><img src="images/examples/perspective.png" width="320" height="240" alt="Ebiten example: perspective" class="example"></a><a href="examples/piano.html"><img src="images/examples/piano.png" width="320" height="240" alt="Ebiten example: piano" class="example"></a><a href="examples/rotate.html"><img src="images/examples/rotate.png" width="320" height="240" alt="Ebiten example: rotate" class="example"></a><a href="examples/sprites.html"><img src="images/examples/sprites.png" width="320" height="240" alt="Ebiten example: sprites" class="example"></a><a href="examples/blocks.html"><img src="images/examples/blocks.png" width="256" height="240" alt="Ebiten example: blocks" class="example"></a>
</p>
<main><div class="container">
<h1>Ebiten <small>(海老天)</small></h1>
<p class="lead">A simple SNES-like 2D game library in Go</p>
<p>Stable version: v1.4.0-alpha / Development version: v1.4.0-alpha</p>
<ul>
<li>Works on
<ul>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Web-Browsers">Web browsers</a> (powered by <a href="http://gopherjs.org/">GopherJS</a>)
<ul>
<li>Supported browsers: Chrome and Firefox on desktops</li>
</ul>
</li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Windows">Windows</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Mac-OS-X">Mac OS X</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Linux">Linux</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/Android">Android</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten/wiki/iOS">iOS</a></li>
</ul>
</li>
</ul>
<h2>Execute the examples</h2>
<pre><code>:; go get github.com/hajimehoshi/ebiten
<h2 id="features">Features</h2>
<ul>
<li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul>
<h2 id="examples">Examples</h2>
<div class="row">
<div class="col-md-4">
<a class="thumbnail" href="examples/alphablending.html"><img src="images/examples/alphablending.png" width="320" height="240" alt="Ebiten example: alphablending" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/audio.html"><img src="images/examples/audio.png" width="320" height="240" alt="Ebiten example: audio" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/font.html"><img src="images/examples/font.png" width="320" height="240" alt="Ebiten example: font" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/hsv.html"><img src="images/examples/hsv.png" width="320" height="240" alt="Ebiten example: hsv" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/hue.html"><img src="images/examples/hue.png" width="320" height="240" alt="Ebiten example: hue" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/gamepad.html"><img src="images/examples/gamepad.png" width="320" height="240" alt="Ebiten example: gamepad" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/keyboard.html"><img src="images/examples/keyboard.png" width="320" height="240" alt="Ebiten example: keyboard" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/masking.html"><img src="images/examples/masking.png" width="320" height="240" alt="Ebiten example: masking" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/mosaic.html"><img src="images/examples/mosaic.png" width="320" height="240" alt="Ebiten example: mosaic" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/noise.html"><img src="images/examples/noise.png" width="320" height="240" alt="Ebiten example: noise" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/paint.html"><img src="images/examples/paint.png" width="320" height="240" alt="Ebiten example: paint" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/perspective.html"><img src="images/examples/perspective.png" width="320" height="240" alt="Ebiten example: perspective" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/piano.html"><img src="images/examples/piano.png" width="320" height="240" alt="Ebiten example: piano" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/rotate.html"><img src="images/examples/rotate.png" width="320" height="240" alt="Ebiten example: rotate" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/sprites.html"><img src="images/examples/sprites.png" width="320" height="240" alt="Ebiten example: sprites" class="example"></a>
</div><div class="col-md-4">
<a class="thumbnail" href="examples/blocks.html"><img src="images/examples/blocks.png" width="256" height="240" alt="Ebiten example: blocks" class="example"></a>
</div>
</div>
<h3>Execute the examples</h2>
<pre><code>:; go get github.com/hajimehoshi/ebiten
:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/examples
:; go run -tags example rotate/main.go</code></pre>
<p>Note that you need to specify <code>example</code> tag.</p>
<p>Note that you need to specify <code>example</code> tag.</p>
<h2 id="getting-started">Getting Started</h2>
<h2>Getting Started</h2>
<p>Let's build a simple "Hello world!" game to get started with Ebiten.
<p>Let's build a simple "Hello world!" game to get started with Ebiten.
First create a new directory (<code>mkdir hello_world</code>), and change
into it (<code>cd hello_world</code>). Type the following code into
the <code>main.go</code> file:</p>
<pre><code>package main
<pre><code>package main
import (
"github.com/hajimehoshi/ebiten"
@ -85,28 +119,14 @@ func main() {
}
</code></pre>
<p>Run the <code>go run</code> command to start the
<p>Run the <code>go run</code> command to start the
game. There you have it, your first Ebiten game!</p>
<h2>Change Log</h2>
<p>See <a href="https://github.com/hajimehoshi/ebiten/releases">GitHub releases page</a>.</p>
</div></main>
<h2>License</h2>
<h3>Ebiten</h3>
<pre>Copyright 2013 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the &#34;License&#34;);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an &#34;AS IS&#34; BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the 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>
<footer>© 2013 Hajime Hoshi</footer>
<footer><div class="container">
<p>© 2013 Hajime Hoshi</p>
<p>Code is licensed under <a href="https://github.com/hajimehoshi/ebiten/blob/master/LICENSE">Apache License 2.0</a>.</p>
<p><a href="http://blog.golang.org/go-programming-language-turns-two">The Gopher photographs by Chris Nokleberg</a> are licensed under <a href="https://creativecommons.org/licenses/by/3.0/">the Creative Commons 3.0 Attributions License</a>.</p>
<p>The content of this page is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">the Creative Commons Attribution 4.0 License</a>.</p>
</div></footer>

View File

@ -1,15 +0,0 @@
body {
font-family: sans-serif;
}
img.example {
background-color: #000;
border-color: #999;
border-style: solid;
border-width: 1px;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
pre {
background: #eee;
padding: 1em;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,18 @@
img.example {
background-color: #000;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
header {
background-color: #eeeeee;
}
footer {
background-color: #666666;
color: #fff;
}
footer a {
color: #fff !important;
}