doc: Generate

This commit is contained in:
Hajime Hoshi 2016-04-22 01:16:58 +09:00
parent 62243f97b5
commit bd1e81ec4a
5 changed files with 14 additions and 11 deletions

View File

@ -8,9 +8,9 @@
* Works on * Works on
* Web browsers (powered by [GopherJS](http://gopherjs.org/)) * Web browsers (powered by [GopherJS](http://gopherjs.org/))
* Supported browsers: Chrome and Firefox on desktops * Supported browsers: Chrome and Firefox on desktops
* Windows
* Mac OS X * Mac OS X
* Linux * Linux
* Windows
## Features ## Features

View File

@ -32,12 +32,12 @@ pre {
<li>Supported browsers: Chrome and Firefox on desktops</li> <li>Supported browsers: Chrome and Firefox on desktops</li>
</ul> </ul>
</li> </li>
<li>Windows</li>
<li>Mac OS X</li> <li>Mac OS X</li>
<li>Linux</li> <li>Linux</li>
<li>Windows</li>
</ul> </ul>
</li> </li>
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten"><img src="https://godoc.org/github.com/hajimehoshi/ebiten?status.svg" alt="GoDoc"></a></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="http://github.com/hajimehoshi/ebiten">GitHub project page</a> (Development version: v{{.DevVersion}})</li> <li><a href="http://github.com/hajimehoshi/ebiten">GitHub project page</a> (Development version: v{{.DevVersion}})</li>
</ul> </ul>
@ -45,6 +45,7 @@ pre {
<ul> <ul>
<li>2D Graphics</li> <li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li> <li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul> </ul>
<h2>Example</h2> <h2>Example</h2>

View File

@ -205,9 +205,6 @@ func (p *Player) close() error {
} }
func update(screen *ebiten.Image) error { func update(screen *ebiten.Image) error {
if err := audioContext.Update(); err != nil {
return err
}
if musicPlayer == nil { if musicPlayer == nil {
select { select {
case musicPlayer = &lt;-musicCh: case musicPlayer = &lt;-musicCh:
@ -266,6 +263,9 @@ Press Z or X to change volume of the music
msg &#43;= &#34;\nNow Loading...&#34; msg &#43;= &#34;\nNow Loading...&#34;
} }
ebitenutil.DebugPrint(screen, msg) ebitenutil.DebugPrint(screen, msg)
if err := audioContext.Update(); err != nil {
return err
}
return nil return nil
} }

View File

@ -230,9 +230,6 @@ func init() {
} }
func update(screen *ebiten.Image) error { func update(screen *ebiten.Image) error {
if err := audioContext.Update(); err != nil {
return err
}
updateInput() updateInput()
for i, key := range keys { for i, key := range keys {
if keyStates[key] != 1 { if keyStates[key] != 1 {
@ -247,6 +244,10 @@ func update(screen *ebiten.Image) error {
screen.DrawImage(imagePiano, nil) screen.DrawImage(imagePiano, nil)
ebitenutil.DebugPrint(screen, fmt.Sprintf(&#34;FPS: %0.2f&#34;, ebiten.CurrentFPS())) ebitenutil.DebugPrint(screen, fmt.Sprintf(&#34;FPS: %0.2f&#34;, ebiten.CurrentFPS()))
if err := audioContext.Update(); err != nil {
return err
}
return nil return nil
} }

View File

@ -46,12 +46,12 @@ pre {
<li>Supported browsers: Chrome and Firefox on desktops</li> <li>Supported browsers: Chrome and Firefox on desktops</li>
</ul> </ul>
</li> </li>
<li>Windows</li>
<li>Mac OS X</li> <li>Mac OS X</li>
<li>Linux</li> <li>Linux</li>
<li>Windows</li>
</ul> </ul>
</li> </li>
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten"><img src="https://godoc.org/github.com/hajimehoshi/ebiten?status.svg" alt="GoDoc"></a></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="http://github.com/hajimehoshi/ebiten">GitHub project page</a> (Development version: v1.3.0-alpha)</li> <li><a href="http://github.com/hajimehoshi/ebiten">GitHub project page</a> (Development version: v1.3.0-alpha)</li>
</ul> </ul>
@ -59,6 +59,7 @@ pre {
<ul> <ul>
<li>2D Graphics</li> <li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li> <li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul> </ul>
<h2>Example</h2> <h2>Example</h2>