暫無描述

Hajime Hoshi 40b35fdec3 Update version (1.0.0) 10 年之前
_docs 40b35fdec3 Update version (1.0.0) 10 年之前
ebitenutil f0277727d1 Refactoring 10 年之前
example 2d667a399c Bug fix: blocks/main.go 10 年之前
internal 22035e79fe Reduce panics (#16) 10 年之前
testdata 30adcdba94 Add test for NewImageFromImage 10 年之前
.gitignore f0f77c1a2f Add ui.Run 10 年之前
.travis.yml 1ea7bbc83a Update .travis.yml to pass tests 10 年之前
affine.go d764afcb8f Make the elements of matrices optional 10 年之前
colorm.go b77181e37a Remove returning values of Add/Concat 10 年之前
colorm_test.go bf46451933 Rename files 10 年之前
doc.go fff7d9f21c Add favicon.png 10 年之前
gamecontext.go 373371d1b2 Change license comments style to use magic comments (magic comments like +build should be placed before a general comment) 10 年之前
geom.go b77181e37a Remove returning values of Add/Concat 10 年之前
geom_test.go bf46451933 Rename files 10 年之前
graphics.go 373371d1b2 Change license comments style to use magic comments (magic comments like +build should be placed before a general comment) 10 年之前
graphicscontext.go ffab448d40 Rename ColorGeometry -> ColorM, GeometryMatrix -> GeoM (#27) 10 年之前
image.go 22035e79fe Reduce panics (#16) 10 年之前
image_test.go f603859b01 Fix image_test.go to check if something is rendered 10 年之前
input.go 373371d1b2 Change license comments style to use magic comments (magic comments like +build should be placed before a general comment) 10 年之前
keys.go 373371d1b2 Change license comments style to use magic comments (magic comments like +build should be placed before a general comment) 10 年之前
license.txt 075c67a84c Separate license and version from docs 10 年之前
readme.md 075c67a84c Separate license and version from docs 10 年之前
run.go 1f19cc3506 Fix doc 10 年之前
ui.go bf027fef33 Bug fix: SetFramebufferSizeCallback can be called immediately 10 年之前
version.txt 40b35fdec3 Update version (1.0.0) 10 年之前

readme.md

Ebiten (海老天)

Build Status

  • A simple SNES-like 2D game library in Go
  • Works on
    • 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

Execute the example

:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
:; go run rotate/main.go

Benchmark the example

:; cd $GOHOME/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.