mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
Ebitengine - A dead simple 2D game engine for Go
ebitenebitenginegamegame-2dgame-developmentgame-enginegame-engine-2dgame-librarygamedevgogolanggolang-library
ebitenutil | ||
example | ||
internal | ||
testdata | ||
.gitignore | ||
affine.go | ||
colormatrix_test.go | ||
colormatrix.go | ||
gamecontext.go | ||
geometrymatrix_test.go | ||
geometrymatrix.go | ||
graphics.go | ||
graphicscontext.go | ||
image_test.go | ||
image.go | ||
input.go | ||
keys.go | ||
readme.md | ||
run.go | ||
ui.go |
Ebiten (海老天)
A simple 2D game library in Go.
How to use
Please read Go files in the example directory.
Be careful that this library is now being developed actively and API can be changed easily.
How to install Ebiten on Mac OS X
:; brew install glew
:; brew install glfw3 # or homebrew/versions/glfw3
:; go get -u github.com/hajimehoshi/ebiten
How to execute the example
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
:; go run blocks/main.go
How to 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
License
Copyright 2014 Hajime Hoshi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.