A full 2D game studio that lives on your Android phone. Visual blocks, a real code editor, an AI assistant and GitHub sync, powered by LibGDX + Box2D.
The APK is in Releases. Open the latest release, scroll to Assets and download the
.apkfile. You do not need to build anything to try the engine.The source code in this page is for developers who want to read, build or contribute.
| I want to... | Go to |
|---|---|
| Install and use the engine | Releases → latest |
| Build it myself | Build from source |
| Fix a bug or add a feature | Contributing |
Star2D is an open-source 2D game engine and editor that runs entirely on a phone. You design scenes, wire up gameplay with blocks or Java, run the game, and export an APK, all without a computer.
Under the hood it is LibGDX for rendering and Box2D for physics, with a native Android editor on top.
Interactive lessons guide every tap, step by step.
Drag-and-drop blocks (nested, searchable) or a code editor with auto-complete, live error help and a Copy all errors button.
Chase, patrol, shoot, camera follow, camera shake and more. Add one in a tap, then tune its variables.
Menus, HUDs, sliders, switches, themes. Button styles: jelly, neon, candy, flat, with a pressed look.
Gemini / OpenRouter inside the editor, a Remote connector for external assistants, and Git (clone, commit, push) from the project screen.
- Editor: scenes, elements, Bodies list, files manager, undo/redo, safe-area aware layouts for portrait and landscape.
- Visual scripting: event-driven blocks (touch, step, collisions...), nested blocks, search, custom blocks.
- Code editor: Java with syntax highlighting, auto-complete, error panel, copy all errors.
- Physics: Box2D bodies, joints, sensors, custom collider and road editor, lights (point / cone / directional).
- Behaviors: 56 built-in, configurable through script variables.
- UI tools: UI Maker, Button Maker, themes, UI holders.
- Assets: 1,831-icon browser with search and color filter, free asset packs, animation editor, fonts.
- Structure: Groups, Prefabs (edit one, apply to all), multiple scenes, Y-sort.
- AI: built-in assistant (Gemini, OpenRouter) and a Remote connector. See server/README.md.
- Git: clone, commit, push, and GitHub Actions workflows added to your game project. See docs/CI.md.
- Export: produce an APK from the phone; experimental desktop export (docs/DESKTOP.md).
- Languages: English, Arabic, French, Portuguese, Russian, Spanish.
| Path | What it is |
|---|---|
app/ |
The Android editor (this is the APK you install) |
template/ |
The game runtime used by exported games (generated template, see docs/TEMPLATE.md) |
desktop/ |
Experimental desktop runtime |
formatter/ |
Code formatter used by the code editor |
server/ |
AI / Remote connector server (README) |
tools/ |
Build, template and i18n helper scripts |
docs/ |
Behaviors, UI, script variables, CI and template docs |
Requirements: JDK 21 and the Android SDK (Android Studio works).
git clone https://github.com/star4droid/Star2D.git
cd Star2D
chmod +x gradlew
./gradlew assembleRelease
# APK: app/build/outputs/apk/release/app-release.apkCI builds are in .github/workflows/. Aab & Apk Build can upload to Google Play (production, beta, alpha or draft) and optionally publish the APK to Releases.
If you change the game runtime, regenerate the template (
:templatemodule + the Build game template action) and never edittemplate.zipby hand.
Contributions of every size are welcome:
- Fix bugs or improve performance
- Add behaviors, UI styles or sample games
- Translate strings (
app/src/main/assets/i18n/, check withpython3 tools/i18n/dump_keys.py --check) - Write docs and tutorials
Open an issue first for big changes. Pull requests should keep Android Java compatibility and run the i18n check.
Star2D is free and open source. If it helps you, you can support development with USDT on the Optimism network.
0x85E67D4a52Cc028C3D4d3194cbbd04a9cC886D77
(Use the copy button at the top-right of the box.)
⚠️ Send USDT on Optimism only. Sending on another network may lose your funds permanently.
You can also star ⭐ the repo, share it, or support through the in-app Support page.
Facebook · WhatsApp · Discord · YouTube · Telegram (developer)
Star2D محرك ألعاب ثنائية الأبعاد مفتوح المصدر يعمل بالكامل على هاتف أندرويد: بلوكات، محرر أكواد، 56 سلوكًا جاهزًا، صانع واجهات وأزرار، 1,831 أيقونة، مساعد ذكاء اصطناعي، ومزامنة مع GitHub.
تحميل التطبيق: من Releases، افتح آخر إصدار ونزّل ملف
.apkمن قسم Assets.
Note
You are free to use and modify this project under the Apache-2.0 license, but you must keep attribution to the original source. See LICENSE and assets/note.txt.
Caution
Some bugs may still exist. Reports and fixes are highly appreciated. 🚒