mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Ebitengine - A dead simple 2D game engine for Go
ebitenebitenginegamegame-2dgame-developmentgame-enginegame-engine-2dgame-librarygamedevgogolanggolang-library
574925cf7a
By removing redundant work done in canAlloc and just calling alloc right away, this removes 35% contribution to AAAAXY loading CPU time on the profile on https://user-images.githubusercontent.com/251568/230496805-c5e32c19-9258-49c8-800b-a3f0bc3b072d.svg, or - as measured via stopwatch - brings loading time on Moto G7 Play from 17.22s to 14.94s after already applying #2627. This should be safe as there is no case in which alloc succeeds and the allocated region isn't used; also, there is no case in which alloc mutates the tree when it doesn't actually succeed (comment added in one place to justify this). Closes #2628 |
||
---|---|---|
.builds | ||
.github | ||
audio | ||
cmd/ebitenmobile | ||
colorm | ||
ebitenutil | ||
examples | ||
inpututil | ||
internal | ||
misc | ||
mobile | ||
text | ||
vector | ||
.gitignore | ||
blend.go | ||
CODE_OF_CONDUCT.md | ||
colorm.go | ||
colorscale.go | ||
compositemode.go | ||
CONTRIBUTING.md | ||
cursor.go | ||
doc.go | ||
export_test.go | ||
gameforui.go | ||
gamepad.go | ||
generate.go | ||
genevents.go | ||
genkeys.go | ||
geom_test.go | ||
geom.go | ||
go.mod | ||
go.sum | ||
graphics.go | ||
image_test.go | ||
image.go | ||
imagedumper.go | ||
imagetobytes_test.go | ||
imagetobytes.go | ||
input.go | ||
keys.go | ||
LICENSE | ||
mousebuttons.go | ||
README.md | ||
run_mobile.go | ||
run.go | ||
shader_test.go | ||
shader.go | ||
vibrate.go | ||
window.go |
Ebitengine (v2)
A dead simple 2D game engine for Go
Ebitengine (formerly known as Ebiten) is an open source game engine for the Go programming language. Ebitengine's simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms.
Platforms
Note: External (bluetooth) keyboards are not available on iOS yet.
For installation on desktops, see the installation instruction.
Features
- 2D Graphics (Geometry and color transformation by matrices, Various composition modes, Offscreen rendering, Text rendering, Automatic batches, Automatic texture atlas, Custom shaders)
- Input (Mouse, Keyboard, Gamepads, Touches)
- Audio (Ogg/Vorbis, MP3, WAV, PCM)
Packages
Community
- Discord
#ebitengine
channel in Gophers Slack- GitHub Discussion
r/ebitengine
in Reddit
License
Ebitengine is licensed under Apache license version 2.0. See LICENSE file.
The Ebitengine logo by Hajime Hoshi is licensed under the Creative Commons Attribution-NoDerivatives 4.0.