mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
Ebitengine - A dead simple 2D game engine for Go
ebitenebitenginegamegame-2dgame-developmentgame-enginegame-engine-2dgame-librarygamedevgogolanggolang-library
7ee8d1aa5f
Because golang executes the init function after establishing the variables in the var block, the random number seed wasn't initializing until after the initial world state had gotten established (leading to an identical game of Life on every run). To fix this, we establish an empty world in the var block, and then populate it in the init function after the random number generator has been seeded. |
||
---|---|---|
.github | ||
audio | ||
cmd/ebitenmobile | ||
docs | ||
ebitenutil | ||
event | ||
examples | ||
inpututil | ||
internal | ||
mobile | ||
text | ||
vector | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
colorm_test.go | ||
colorm.go | ||
CONTRIBUTING.md | ||
copy_test.go | ||
copy.go | ||
cursormode.go | ||
debug_ebitendebug.go | ||
debug_notebitendebug.go | ||
doc.go | ||
export_test.go | ||
gamepad.go | ||
generate.go | ||
genevents.go | ||
genkeys.go | ||
geom_test.go | ||
geom.go | ||
go.mod | ||
go.sum | ||
goversion.go | ||
graphics.go | ||
image_test.go | ||
image.go | ||
imagedumper_desktop.go | ||
imagedumper_notdesktop.go | ||
imageparts.go | ||
input.go | ||
keys.go | ||
LICENSE | ||
mipmap_test.go | ||
mipmap.go | ||
mousebuttons.go | ||
README.md | ||
run.go | ||
uicontext.go | ||
uidriver_glfw.go | ||
uidriver_js.go | ||
uidriver_mobile.go | ||
vertex.go | ||
window.go |
Ebiten
A dead simple 2D game library in Go
Ebiten is an open-source game library, with which you can develop 2D games with simple API for multi platforms in the Go programming language.
Platforms
- Windows (No Cgo!)
- macOS
- Linux
- FreeBSD
- Android
- iOS
- Web browsers (Chrome, Firefox, Safari and Edge)
- GopherJS
- WebAssembly (Experimental)
Note: Gamepad and keyboard are not available on Android/iOS.
For installation on desktops, see the installation instruction.
Features
- 2D Graphics (Geometry/Color matrix transformation, Various composition modes, Offscreen rendering, Fullscreen, Text rendering, Automatic batches, Automatic texture atlas)
- Input (Mouse, Keyboard, Gamepads, Touches)
- Audio (Ogg/Vorbis, MP3, WAV, PCM)
Packages
Community
Slack
#ebiten
channel in Gophers Slack
License
Ebiten is licensed under Apache license version 2.0. See LICENSE file.