doc: go generate

This commit is contained in:
Hajime Hoshi 2016-05-14 21:15:27 +09:00
parent 97c9cf2259
commit e30a12ab6a
38 changed files with 79 additions and 122 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,53 +0,0 @@
# License
## arcadefont.png
```
9031 Font ReadMe
Terms of Use and Disclaimer
All 9031 fonts are free of charge to use for personal or commercial purposes, e.g. printed papers, t-shirts, logos, images for website, merchandise or anything featuring these fonts.
OpenType font files are licensed for your personal desktop use only. No part of these files may be re-distributed, sold, renamed, converted, or made available for download on any web site without permission of author.
Author give no warranty in relation to these fonts, and you use them at your own risk. By using or installing these fonts, you agree to be bound by the terms of this agreement. Author will not be liable for any damage to your system, any loss or corruption of any data or font, or any other loss or damage that you may suffer as a result of downloading or using these fonts, whether it results from Author's negligence or in any other way.
Author
Yuji Adachi, 9031
Website: http://9031.com/
Email: info@9031.com
©1997-2011 9031
```
## ebiten.png
```
http://www.sozai-page.com/02_sozai/b/b04/b04_002/b04_002.html
```
## fiveyears.jpg
```
The Go gopher was designed by Renee French. (http://reneefrench.blogspot.com/)
The design is licensed under the Creative Commons 3.0 Attributions license.
Read this article for more details: https://blog.golang.org/gopher
```
## gophers.jpg
```
http://blog.golang.org/go-programming-language-turns-two
Photograph by Chris Nokleberg
the Creative Commons Attribution 3.0 License
```
## Other image files
```
Copyright 2014 Hajime Hoshi
the Creative Commons Attribution 3.0 License
```

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -44,7 +44,7 @@ import (
&#34;log&#34;
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -102,7 +102,7 @@ func update(screen *ebiten.Image) error {
func main() {
var err error
ebitenImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/ebiten.png&#34;, ebiten.FilterNearest)
ebitenImage, _, err = common.AssetImage(&#34;ebiten.png&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -113,4 +113,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -324,4 +324,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -40,4 +40,4 @@ pre {
// NOTE: If Gamepad API is available in your browswer, you can use gamepads. Try it out!</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -131,4 +131,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -90,4 +90,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -46,6 +46,7 @@ import (
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -118,7 +119,7 @@ Value: %0.2f [Z][X]`, hue, saturation, value)
func main() {
var err error
gophersImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/gophers.jpg&#34;, ebiten.FilterNearest)
gophersImage, _, err = common.AssetImage(&#34;gophers.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -129,4 +130,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -44,7 +44,7 @@ import (
&#34;math&#34;
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -71,7 +71,7 @@ func update(screen *ebiten.Image) error {
func main() {
var err error
gophersImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/gophers.jpg&#34;, ebiten.FilterNearest)
gophersImage, _, err = common.AssetImage(&#34;gophers.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -82,4 +82,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -149,4 +149,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -46,7 +46,7 @@ import (
&#34;math&#34;
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -132,11 +132,11 @@ func min(a, b int) int {
func main() {
var err error
gophersImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/gophers.jpg&#34;, ebiten.FilterNearest)
gophersImage, _, err = common.AssetImage(&#34;gophers.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
fiveyearsImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/fiveyears.jpg&#34;, ebiten.FilterNearest)
fiveyearsImage, _, err = common.AssetImage(&#34;fiveyears.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -166,4 +166,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -43,7 +43,7 @@ import (
&#34;log&#34;
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -70,7 +70,7 @@ func update(screen *ebiten.Image) error {
func main() {
var err error
gophersImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/gophers.jpg&#34;, ebiten.FilterNearest)
gophersImage, _, err = common.AssetImage(&#34;gophers.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -86,4 +86,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -94,4 +94,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -119,4 +119,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -43,7 +43,7 @@ import (
&#34;log&#34;
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -90,7 +90,7 @@ func update(screen *ebiten.Image) error {
func main() {
var err error
gophersImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/gophers.jpg&#34;, ebiten.FilterNearest)
gophersImage, _, err = common.AssetImage(&#34;gophers.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -101,4 +101,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -95,7 +95,7 @@ func toBytes(l, r []int16) []byte {
panic(&#34;len(l) must equal to len(r)&#34;)
}
b := make([]byte, len(l)*4)
for i, _ := range l {
for i := range l {
b[4*i] = byte(l[i])
b[4*i&#43;1] = byte(l[i] &gt;&gt; 8)
b[4*i&#43;2] = byte(r[i])
@ -262,4 +262,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -44,7 +44,7 @@ import (
&#34;math&#34;
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -72,7 +72,7 @@ func update(screen *ebiten.Image) error {
func main() {
var err error
gophersImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/gophers.jpg&#34;, ebiten.FilterNearest)
gophersImage, _, err = common.AssetImage(&#34;gophers.jpg&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
@ -83,4 +83,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -46,6 +46,7 @@ import (
&#34;github.com/hajimehoshi/ebiten&#34;
&#34;github.com/hajimehoshi/ebiten/ebitenutil&#34;
&#34;github.com/hajimehoshi/ebiten/examples/common&#34;
)
const (
@ -160,12 +161,12 @@ Press &lt;- or -&gt; to change the number of sprites`, ebiten.CurrentFPS(), spri
func main() {
var err error
ebitenImage, _, err = ebitenutil.NewImageFromFile(&#34;_resources/images/ebiten.png&#34;, ebiten.FilterNearest)
ebitenImage, _, err = common.AssetImage(&#34;ebiten.png&#34;, ebiten.FilterNearest)
if err != nil {
log.Fatal(err)
}
ebitenImageWidth, ebitenImageHeight = ebitenImage.Size()
for i, _ := range sprites.sprites {
for i := range sprites.sprites {
w, h := ebitenImage.Size()
x, y := rand.Intn(screenWidth-w), rand.Intn(screenHeight-h)
vx, vy := 2*rand.Intn(2)-1, 2*rand.Intn(2)-1
@ -184,4 +185,4 @@ func main() {
</code></pre>
<footer>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright 2014 Hajime Hoshi
Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -37,7 +37,7 @@ pre {
</style>
<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.3.0-alpha / Development version: v1.3.0-alpha</p>
<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
@ -111,6 +111,14 @@ pre {
</ul>
<h2>Change Log</h2>
<h3>2016-05-14</h3>
<ul>
<li>v1.3.0 released.
<ul>
<li>Fixed some bugs</li>
</ul>
</li>
</ul>
<h3>2016-04-23</h3>
<ul>
<li>v1.3.0-rc1 released.
@ -225,7 +233,7 @@ pre {
<h2>License</h2>
<h3>Ebiten</h3>
<pre>Copyright 2014 Hajime Hoshi
<pre>Copyright 2013 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the &#34;License&#34;);
you may not use this file except in compliance with the License.
@ -241,4 +249,4 @@ 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>© 2014 Hajime Hoshi</footer>
<footer>© 2013 Hajime Hoshi</footer>