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
* Web browsers (powered by [GopherJS](http://gopherjs.org/))
* Supported browsers: Chrome and Firefox on desktops
* Windows
* Mac OS X
* Linux
* Windows
## Features

View File

@ -32,12 +32,12 @@ pre {
<li>Supported browsers: Chrome and Firefox on desktops</li>
</ul>
</li>
<li>Windows</li>
<li>Mac OS X</li>
<li>Linux</li>
<li>Windows</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"></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>
</ul>
@ -45,6 +45,7 @@ pre {
<ul>
<li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul>
<h2>Example</h2>

View File

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

View File

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

View File

@ -46,12 +46,12 @@ pre {
<li>Supported browsers: Chrome and Firefox on desktops</li>
</ul>
</li>
<li>Windows</li>
<li>Mac OS X</li>
<li>Linux</li>
<li>Windows</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"></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>
</ul>
@ -59,6 +59,7 @@ pre {
<ul>
<li>2D Graphics</li>
<li>Input (Mouse, Keyboard, Gamepad)</li>
<li>Audio (Ogg/Vorbis, WAV, and PCM)</li>
</ul>
<h2>Example</h2>