Skip to content
star4droidPublic

About

Game engine for android

Resources

Stars

52 stars

Watchers

3 watching

Forks

Repository files navigation

Star2D icon

⭐ Star2D Engine

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.


Download from Releases



License Platform Engine Release Stars


Star2D

📥 Where do I download the app?

The APK is in Releases. Open the latest release, scroll to Assets and download the .apk file. 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

✨ What is Star2D?

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.


🖼️ Tour

Create games right on your phone

825379

Learn by making games (experimental)

Interactive lessons guide every tap, step by step.

825380

Blocks or real code

Drag-and-drop blocks (nested, searchable) or a code editor with auto-complete, live error help and a Copy all errors button.

825381

56 ready-made behaviors

Chase, patrol, shoot, camera follow, camera shake and more. Add one in a tap, then tune its variables.

825382

UI Maker and Button Maker

Menus, HUDs, sliders, switches, themes. Button styles: jelly, neon, candy, flat, with a pressed look.

825383

1,831 icons, free asset packs and an animation editor

825384

AI assistant and GitHub

Gemini / OpenRouter inside the editor, a Remote connector for external assistants, and Git (clone, commit, push) from the project screen.

825385

Groups, Prefabs and scenes

825386


🚀 Feature list

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

🧩 Project layout

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

🛠 Build from source

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

CI 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 (:template module + the Build game template action) and never edit template.zip by hand.


🤝 Contributing

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 with python3 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.


💖 Support the project

Star2D is free and open source. If it helps you, you can support development with USDT on the Optimism network.

Network Token

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.


🌐 Community

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

About

Game engine for android

Resources

Stars

52 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages