Ebitengine - A dead simple 2D game engine for Go
Go to file
2015-01-06 02:23:41 +09:00
_docs Add explanation to run developer's game on a web browser 2015-01-06 02:23:41 +09:00
ebitenutil Use ImageParts 2015-01-05 10:08:00 +09:00
example Update docs to use GopherJS (#54) 2015-01-06 00:44:39 +09:00
internal Update docs to use GopherJS (#54) 2015-01-06 00:44:39 +09:00
testdata Add test for NewImageFromImage 2014-12-23 01:51:16 +09:00
.gitignore Add ui.Run 2014-12-07 01:09:59 +09:00
.travis.yml Update .travis.yml to pass tests 2014-12-28 22:25:19 +09:00
affine.go Make the elements of matrices optional 2014-12-26 11:22:36 +09:00
colorm_test.go Rename files 2014-12-27 17:15:16 +09:00
colorm.go Refactoring: matrix initialization 2015-01-03 22:54:01 +09:00
doc.go Add favicon.png 2014-12-28 16:54:13 +09:00
gamecontext.go Hide structs in internal/ui 2015-01-02 03:25:31 +09:00
geom_test.go Rename files 2014-12-27 17:15:16 +09:00
geom.go Use new style methods of matrices 2015-01-05 10:30:33 +09:00
graphics.go Add opengl.Context.NewBuffer 2014-12-31 17:45:23 +09:00
graphicscontext.go Use new style methods of matrices 2015-01-05 10:30:33 +09:00
image_test.go Fix image_test.go to check if something is rendered 2014-12-25 18:42:55 +09:00
image.go Update comment 2015-01-05 23:55:40 +09:00
keys.go Add internal/ui module 2015-01-02 02:13:27 +09:00
license.txt Happy New Year 2015 2015-01-01 00:04:06 +09:00
readme.md Add explanation to run developer's game on a web browser 2015-01-06 02:23:41 +09:00
run.go Remove ui.ActualScale() 2015-01-02 03:28:43 +09:00
version.txt Update version (1.1.0-alpha) 2014-12-29 23:54:22 +09:00

Ebiten (海老天)

Build Status

  • A simple SNES-like 2D game library in Go
  • Works on
    • Web browsers (powered by GopherJS)
    • Mac OS X
    • Linux (maybe)
    • Windows (possibly)
  • API Docs

Features

  • 2D Graphics
  • Input (Mouse, Keyboard)

Example

  • example/blocks - Puzzle game you know
  • example/hue - Changes the hue of an image
  • example/mosaic - Mosaics an image
  • example/perspective - See an image in a perspective view
  • example/rotate - Rotates an image
  • etc.

Install on Mac OS X

:; brew install glew
:; brew install glfw3 # or homebrew/versions/glfw3
:; go get -u github.com/hajimehoshi/ebiten

If you want to use GopherJS, execute this:

:; go get -u -tag=js github.com/hajimehoshi/ebiten

Execute the example

:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/example
:; go run blocks/main.go

Execute the example on a web browser

:; go get github.com/gopherjs/gopherjs
:; go run $GOPATH/src/github.com/hajimehoshi/ebiten/example/server/main.go

Then, open localhost:8000 on your browser.

localhost:8000/?EXAMPLE_NAME shows other examples (e.g. localhost:8000/?rotate).

Run your game on a web browser

Compile your game with GopherJS:

:; go get github.com/gopherjs/gopherjs
:; gopherjs build -o yourgame.js path/to/yourgame

Then, open the below HTML on your HTTP server:

<!DOCTYPE html>
<script src="yourgame.js"></script>

Benchmark the example

:; cd $GOPATH/src/github.com/hajimehoshi/ebiten/example
:; go build -o=example blocks/main.go
:; ./example -cpuprofile=cpu.out
:; go tool pprof ./example cpu.out

Versioning

License

See license.txt.