mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
doc: Generate
This commit is contained in:
parent
62243f97b5
commit
bd1e81ec4a
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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 = <-musicCh:
|
||||
@ -266,6 +263,9 @@ Press Z or X to change volume of the music
|
||||
msg += "\nNow Loading..."
|
||||
}
|
||||
ebitenutil.DebugPrint(screen, msg)
|
||||
if err := audioContext.Update(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -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("FPS: %0.2f", ebiten.CurrentFPS()))
|
||||
|
||||
if err := audioContext.Update(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user