ebiten/readme.md

60 lines
1.4 KiB
Markdown
Raw Normal View History

2014-10-12 06:09:19 +02:00
# Ebiten (海老天)
2014-12-24 02:00:09 +01:00
* A simple 2D game library in Go
* Works only on Mac OS X so far
2014-12-22 20:46:58 +01:00
* [API Docs](http://godoc.org/github.com/hajimehoshi/ebiten)
2014-10-12 06:09:19 +02:00
2014-12-24 02:00:09 +01:00
## Features
2014-10-12 06:09:19 +02:00
2014-12-24 02:00:09 +01:00
* 2D Graphics
* Input (Mouse, Keyboard)
## Example
* example/mosaic - Mosaics an image
* example/perspective - See an image in a perspective view
* example/rotate - Rotates an image
* etc.
2014-10-12 06:09:19 +02:00
2014-12-22 20:46:58 +01:00
## Install on Mac OS X
2014-12-05 19:14:03 +01:00
```
:; brew install glew
2014-12-11 12:03:08 +01:00
:; brew install glfw3 # or homebrew/versions/glfw3
2014-12-05 19:14:03 +01:00
:; go get -u github.com/hajimehoshi/ebiten
```
2014-12-22 20:46:58 +01:00
## Execute the example
2014-10-12 07:07:44 +02:00
2014-12-05 11:50:04 +01:00
```
2014-12-14 15:15:18 +01:00
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
:; go run blocks/main.go
2014-12-05 11:50:04 +01:00
```
2014-10-12 07:07:44 +02:00
2014-12-22 20:46:58 +01:00
### Benchmark the example
2014-12-06 22:03:13 +01:00
```
2014-12-14 15:15:18 +01:00
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
:; go build -o=example blocks/main.go
2014-12-06 22:03:13 +01:00
:; ./example -cpuprofile=cpu.out
:; go tool pprof ./example cpu.out
```
2014-10-12 06:09:19 +02:00
## License
2014-12-08 02:26:38 +01:00
```
2014-10-12 06:09:19 +02:00
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.
2014-12-08 02:26:38 +01:00
```