diff --git a/_docs/public/examples/_resources/audio/jab.wav b/_docs/public/examples/_resources/audio/jab.wav new file mode 100644 index 000000000..3f1206396 Binary files /dev/null and b/_docs/public/examples/_resources/audio/jab.wav differ diff --git a/_docs/public/examples/_resources/audio/license.md b/_docs/public/examples/_resources/audio/license.md new file mode 100644 index 000000000..4a006f531 --- /dev/null +++ b/_docs/public/examples/_resources/audio/license.md @@ -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/ +``` diff --git a/_docs/public/examples/_resources/audio/ragtime.ogg b/_docs/public/examples/_resources/audio/ragtime.ogg new file mode 100644 index 000000000..eaae77ac9 Binary files /dev/null and b/_docs/public/examples/_resources/audio/ragtime.ogg differ diff --git a/_docs/public/examples/_resources/fonts/license.md b/_docs/public/examples/_resources/fonts/license.md new file mode 100644 index 000000000..e88766ada --- /dev/null +++ b/_docs/public/examples/_resources/fonts/license.md @@ -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/ +``` diff --git a/_docs/public/examples/_resources/fonts/mplus-1p-regular.ttf b/_docs/public/examples/_resources/fonts/mplus-1p-regular.ttf new file mode 100644 index 000000000..016c4017e Binary files /dev/null and b/_docs/public/examples/_resources/fonts/mplus-1p-regular.ttf differ diff --git a/_docs/public/examples/_resources/images/fiveyears.jpg b/_docs/public/examples/_resources/images/fiveyears.jpg new file mode 100644 index 000000000..1c7f8f587 Binary files /dev/null and b/_docs/public/examples/_resources/images/fiveyears.jpg differ diff --git a/_docs/public/examples/_resources/images/license.md b/_docs/public/examples/_resources/images/license.md index 6c7ad47f8..a5366241e 100644 --- a/_docs/public/examples/_resources/images/license.md +++ b/_docs/public/examples/_resources/images/license.md @@ -28,14 +28,26 @@ Email: info@9031.com 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 ``` http://blog.golang.org/go-programming-language-turns-two + +Photograph by Chris Nokleberg +the Creative Commons Attribution 3.0 License ``` ## Other image files ``` -Creative Commons Attribution 3.0 License +Copyright 2014 Hajime Hoshi +the Creative Commons Attribution 3.0 License ``` diff --git a/_docs/public/examples/alphablending.html b/_docs/public/examples/alphablending.html index 5837d089e..c8e8de1d8 100644 --- a/_docs/public/examples/alphablending.html +++ b/_docs/public/examples/alphablending.html @@ -56,12 +56,11 @@ var ( count int tmpRenderTarget *ebiten.Image ebitenImage *ebiten.Image - saved bool ) func update(screen *ebiten.Image) error { count++ - count %= 600 + count %= ebiten.FPS * 10 diff := float64(count) * 0.2 switch { case 480 < count: diff --git a/_docs/public/examples/paint.html b/_docs/public/examples/paint.html index 73b0d1d2d..d936d484c 100644 --- a/_docs/public/examples/paint.html +++ b/_docs/public/examples/paint.html @@ -70,8 +70,8 @@ func update(screen *ebiten.Image) error { if ebiten.IsMouseButtonPressed(ebiten.MouseButtonLeft) { op := &ebiten.DrawImageOptions{} op.GeoM.Translate(float64(mx), float64(my)) - op.ColorM.Scale(1.0, 0.25, 0.25, 1.0) - theta := 2.0 * math.Pi * float64(count%60) / 60.0 + op.ColorM.Scale(1.0, 0.50, 0.125, 1.0) + theta := 2.0 * math.Pi * float64(count%60) / ebiten.FPS op.ColorM.RotateHue(theta) if err := canvasImage.DrawImage(brushImage, op); err != nil { return err diff --git a/_docs/public/examples/sprites.html b/_docs/public/examples/sprites.html index 10d929fd8..d24e9a26e 100644 --- a/_docs/public/examples/sprites.html +++ b/_docs/public/examples/sprites.html @@ -141,6 +141,9 @@ func update(screen *ebiten.Image) error { } sprites.Update() + if ebiten.IsRunningSlowly() { + return nil + } op := &ebiten.DrawImageOptions{ ImageParts: sprites, } diff --git a/_docs/public/index.html b/_docs/public/index.html index f5549c8ee..b7d95fefd 100644 --- a/_docs/public/index.html +++ b/_docs/public/index.html @@ -67,6 +67,8 @@ pre {

Install on Mac OS X or Windows

+

Compilation requires a C compiler like GCC to compile third party libaries used by Ebiten. You would need MinGW on Windows, and would need Xcode on Mac OS X.

+

Let's get the Ebiten source code and compile it.

:; go get github.com/hajimehoshi/ebiten

If you want to run your game on a web browser, execute this:

:; go get github.com/gopherjs/gopherjs
@@ -102,11 +104,43 @@ pre {
 

Apps created with Ebiten

Change Log

+

2016-04-14

+

2016-02-28