mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
doc: go generate
This commit is contained in:
parent
ee142a751c
commit
9bd754c6d4
BIN
_docs/public/examples/_resources/audio/jab.wav
Normal file
BIN
_docs/public/examples/_resources/audio/jab.wav
Normal file
Binary file not shown.
22
_docs/public/examples/_resources/audio/license.md
Normal file
22
_docs/public/examples/_resources/audio/license.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# License
|
||||||
|
|
||||||
|
## jab.wav
|
||||||
|
|
||||||
|
```
|
||||||
|
http://soundbible.com/995-Jab.html
|
||||||
|
|
||||||
|
Recorded by Mike Koenig
|
||||||
|
Attribution 3.0: https://creativecommons.org/licenses/by/3.0/
|
||||||
|
```
|
||||||
|
|
||||||
|
## ragtime.ogg
|
||||||
|
|
||||||
|
```
|
||||||
|
https://soundcloud.com/jacaranda-trilhas-sonoras/james-scott-01-frog-legs-rag
|
||||||
|
|
||||||
|
Title: Frog Legs Rag (1906, piano roll)
|
||||||
|
Artist: James Scott
|
||||||
|
Album: Frog Legs: Ragtime Era Favorites
|
||||||
|
|
||||||
|
Attribution-NonCommercial-ShareAlike: http://creativecommons.org/licenses/by-nc-sa/3.0/
|
||||||
|
```
|
BIN
_docs/public/examples/_resources/audio/ragtime.ogg
Normal file
BIN
_docs/public/examples/_resources/audio/ragtime.ogg
Normal file
Binary file not shown.
22
_docs/public/examples/_resources/fonts/license.md
Normal file
22
_docs/public/examples/_resources/fonts/license.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# License
|
||||||
|
|
||||||
|
## mplus-1p-regular.ttf
|
||||||
|
|
||||||
|
```
|
||||||
|
M+ FONTS Copyright (C) 2002-2015 M+ FONTS PROJECT
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
LICENSE_E
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
These fonts are free software.
|
||||||
|
Unlimited permission is granted to use, copy, and distribute them, with
|
||||||
|
or without modification, either commercially or noncommercially.
|
||||||
|
THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
|
||||||
|
|
||||||
|
|
||||||
|
http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/
|
||||||
|
```
|
BIN
_docs/public/examples/_resources/fonts/mplus-1p-regular.ttf
Normal file
BIN
_docs/public/examples/_resources/fonts/mplus-1p-regular.ttf
Normal file
Binary file not shown.
BIN
_docs/public/examples/_resources/images/fiveyears.jpg
Normal file
BIN
_docs/public/examples/_resources/images/fiveyears.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
@ -28,14 +28,26 @@ Email: info@9031.com
|
|||||||
http://www.sozai-page.com/02_sozai/b/b04/b04_002/b04_002.html
|
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
|
## gophers.jpg
|
||||||
|
|
||||||
```
|
```
|
||||||
http://blog.golang.org/go-programming-language-turns-two
|
http://blog.golang.org/go-programming-language-turns-two
|
||||||
|
|
||||||
|
Photograph by Chris Nokleberg
|
||||||
|
the Creative Commons Attribution 3.0 License
|
||||||
```
|
```
|
||||||
|
|
||||||
## Other image files
|
## Other image files
|
||||||
|
|
||||||
```
|
```
|
||||||
Creative Commons Attribution 3.0 License
|
Copyright 2014 Hajime Hoshi
|
||||||
|
the Creative Commons Attribution 3.0 License
|
||||||
```
|
```
|
||||||
|
@ -56,12 +56,11 @@ var (
|
|||||||
count int
|
count int
|
||||||
tmpRenderTarget *ebiten.Image
|
tmpRenderTarget *ebiten.Image
|
||||||
ebitenImage *ebiten.Image
|
ebitenImage *ebiten.Image
|
||||||
saved bool
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func update(screen *ebiten.Image) error {
|
func update(screen *ebiten.Image) error {
|
||||||
count++
|
count++
|
||||||
count %= 600
|
count %= ebiten.FPS * 10
|
||||||
diff := float64(count) * 0.2
|
diff := float64(count) * 0.2
|
||||||
switch {
|
switch {
|
||||||
case 480 < count:
|
case 480 < count:
|
||||||
|
@ -70,8 +70,8 @@ func update(screen *ebiten.Image) error {
|
|||||||
if ebiten.IsMouseButtonPressed(ebiten.MouseButtonLeft) {
|
if ebiten.IsMouseButtonPressed(ebiten.MouseButtonLeft) {
|
||||||
op := &ebiten.DrawImageOptions{}
|
op := &ebiten.DrawImageOptions{}
|
||||||
op.GeoM.Translate(float64(mx), float64(my))
|
op.GeoM.Translate(float64(mx), float64(my))
|
||||||
op.ColorM.Scale(1.0, 0.25, 0.25, 1.0)
|
op.ColorM.Scale(1.0, 0.50, 0.125, 1.0)
|
||||||
theta := 2.0 * math.Pi * float64(count%60) / 60.0
|
theta := 2.0 * math.Pi * float64(count%60) / ebiten.FPS
|
||||||
op.ColorM.RotateHue(theta)
|
op.ColorM.RotateHue(theta)
|
||||||
if err := canvasImage.DrawImage(brushImage, op); err != nil {
|
if err := canvasImage.DrawImage(brushImage, op); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -141,6 +141,9 @@ func update(screen *ebiten.Image) error {
|
|||||||
}
|
}
|
||||||
sprites.Update()
|
sprites.Update()
|
||||||
|
|
||||||
|
if ebiten.IsRunningSlowly() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
op := &ebiten.DrawImageOptions{
|
op := &ebiten.DrawImageOptions{
|
||||||
ImageParts: sprites,
|
ImageParts: sprites,
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,8 @@ pre {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>Install on Mac OS X or Windows</h2>
|
<h2>Install on Mac OS X or Windows</h2>
|
||||||
|
<p>Compilation requires a C compiler like GCC to compile third party libaries used by Ebiten. You would need <a href="http://www.mingw.org/">MinGW</a> on Windows, and would need Xcode on Mac OS X.</p>
|
||||||
|
<p>Let's get the Ebiten source code and compile it.</p>
|
||||||
<pre><code>:; go get github.com/hajimehoshi/ebiten</code></pre>
|
<pre><code>:; go get github.com/hajimehoshi/ebiten</code></pre>
|
||||||
<p>If you want to run your game on a web browser, execute this:</p>
|
<p>If you want to run your game on a web browser, execute this:</p>
|
||||||
<pre><code>:; go get github.com/gopherjs/gopherjs
|
<pre><code>:; go get github.com/gopherjs/gopherjs
|
||||||
@ -102,11 +104,43 @@ pre {
|
|||||||
<h2>Apps created with Ebiten</h2>
|
<h2>Apps created with Ebiten</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://github.com/peterhellberg/plasma">Plasma</a> by Peter Hellberg</li>
|
<li><a href="https://github.com/peterhellberg/plasma">Plasma</a> by Peter Hellberg</li>
|
||||||
<li><a href="https://github.com/hajimehoshi/go-inovation5">go-inovation5</a> by Hajime Hoshi</li>
|
<li><a href="https://github.com/hajimehoshi/go-inovation">go-inovation</a> by Hajime Hoshi</li>
|
||||||
<li><a href="https://github.com/martinkirsche/wired-logic">Wired Logic</a> by Martin Kirsche</li>
|
<li><a href="https://github.com/martinkirsche/wired-logic">Wired Logic</a> by Martin Kirsche</li>
|
||||||
|
<li><a href="https://github.com/DrJosh9000/awakengine">AwakEngine</a> by Josh Deprez</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2>Change Log</h2>
|
<h2>Change Log</h2>
|
||||||
|
<h3>2016-04-14</h3>
|
||||||
|
<ul>
|
||||||
|
<li>v1.3.0-rc1 released.
|
||||||
|
<ul>
|
||||||
|
<li>Added new platforms
|
||||||
|
<ul>
|
||||||
|
<li>Windows</li>
|
||||||
|
<li>Linux</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Drawing
|
||||||
|
<ul>
|
||||||
|
<li>Added CompositeMode to change composite mode (e.g. masking or additive drawing)</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Audio
|
||||||
|
<ul>
|
||||||
|
<li>Changed APIs (almost fixed)</li>
|
||||||
|
<li>Added exp/audio/vorbis to decode Ogg/Vorbis stream</li>
|
||||||
|
<li>Added exp/audio/wav to decode Wav stream</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Others
|
||||||
|
<ul>
|
||||||
|
<li>Made most of functions concurrent-safe</li>
|
||||||
|
<li>Bug fix</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<h3>2016-02-28</h3>
|
<h3>2016-02-28</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>v1.2.0 released.
|
<li>v1.2.0 released.
|
||||||
|
Loading…
Reference in New Issue
Block a user