ebiten

hajimehoshiApache-2.0活跃维护

用 Go 写 2D 游戏的极简引擎,API 简单易上手,省去图形渲染和输入处理的繁琐,适合快速做小游戏原型。

A dead simple 2D game engine for Go

v2.10.6发布于 2026-11-07 04:03 UTC13,621star +10 / 7 天802fork同步于 2026-11-10 17:27 UTC

怎么上手

由 README 提炼,执行前请确认
go get github.com/hajimehoshi/ebiten/v2
硬件要求按 README 说明

README 未说明具体显存或 GPU 型号要求;桌面平台支持 Windows、macOS、Linux、FreeBSD,移动端 Android/iOS 需 Cgo,另支持 WebAssembly。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Go 语言写的极简 2D 游戏引擎,用简单 API 快速开发跨平台 2D 游戏

用 Go 写 2D 游戏的极简引擎,API 简单易上手,省去图形渲染和输入处理的繁琐,适合快速做小游戏原型。

核心能力

  • 用矩阵做几何与颜色变换的 2D 图形渲染
  • 支持多种合成模式与离屏渲染
  • 自动批处理与自动纹理图集减少绘制开销
  • 支持自定义着色器扩展渲染效果
  • 统一处理鼠标键盘手柄与触摸输入

容易踩的坑

Android、iOS 及主机平台需要启用 Cgo;PlayStation 5 与 Xbox 支持受限,并非对所有人开放;桌面安装细节需另看官方安装文档。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.10.6
  1. v2.10.6最新正式版2026-11-07 · 2026-11-07 04:03 UTC
  2. v2.10.52026-10-09 · 2026-10-09 19:24 UTC
    查看更新说明
  3. v2.10.42026-09-25 · 2026-09-25 18:13 UTC
    查看更新说明
  4. v2.10.32026-09-22 · 2026-09-22 16:06 UTC
    查看更新说明
  5. v2.10.22026-09-13 · 2026-09-13 15:13 UTC
    查看更新说明

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Ebitengine (v2)

    Go Reference Build Status

    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.

    Overview

    Platforms

    • Windows
    • macOS
    • Linux
    • FreeBSD
    • Android (Cgo required)
    • iOS (Cgo required)
    • WebAssembly
    • Nintendo Switch (Cgo required)
    • PlayStation 5 (Cgo required) (PlayStation 5 support is limited and not available to everyone.)
    • Xbox (Cgo required) (Xbox support is limited and not available to everyone. Negotiations are currently underway to make it accessible to all.)

    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

    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 4.0.

    Ebitengine bundles third-party libraries. See THIRD_PARTY_LICENSES.md for their licenses.