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