A cross-platform Java game Engine (Framework) , support JavaFX / Android / IOS / HTML5 / Linux / MAC / Windows
A cross-platform Java game Engine (Framework) , support JavaFX / Android / IOS / HTML5 / Linux / MAC / Windows
LGame is a cross-platform java game engine(framework), offering comprehensive foundational modules for 2D games (with 3D support planned for future releases). It supports platforms including Windows, Linux, macOS, Android, web browsers, and iOS. Additionally, it provides native implementations in C# and C++ alongside syntax conversion to accommodate as many systems as possible.
Only Android-studio Template : androidstudio-template
All Java code Run Template : loon-gradle-template
('task run' call main methond , 'task dist' packager game to jar)
formal name : Loon
A fast, simple & powerful game framework, powered by Java (also supports C# and C++).
LGame Project Restart,The game's just started.
#项目目录结构
…LGame(LoonGame) is a very cool and small game library designed to simplify the complex and shorten the tedious for beginners and veterans alike. With it, you can use the best aspects of OpenGL/OpenGLES in an easy and organized way optimized for game programming. It is built around the concept that beginners should be able to start with the basics and then move up into a more complex plane of development with the veterans, all on the same platform.
LGame puts all of its effort into keeping things short and simple. The initial setup of a game consists only of making a single class; then you are done. The interface is entirely documented for easy and fast learning, so once you are started, there is nothing between you and your killer game but coding and creativity.
LGame is built around the users wishes, so do not hesitate to suggest and critique!
…LGame comes with a file called LGameProjectMake.jar which is an executable UI and command line tool. You can simply execute the JAR file which will open the setup UI.
LGame 是一个面向懒人开发者的轻量级 2D 全功能游戏库(标准版未来将扩展到 3D 支持)。它基于 OpenGL / OpenGLES 开发,具备多平台适配能力。当前目标是用一个 jar 包满足绝大多数 2D 游戏的需求(网络模块暂未合入,计划在有时间时单独开源)。就 Java 语法 而言,LGame 已经是一个使用便捷、功能完整的 2D 游戏开发框架。
LGame is a lightweight, developer-friendly full-featured 2D game library (the standard edition will later add 3D support). Built on OpenGL / OpenGLES, it supports multiple platforms. The current aim is to cover most 2D game needs with a single jar (networking is not included yet and will be split into a separate project when time allows). From a Java perspective, LGame is already a convenient and comprehensive 2D game framework.
Java 版:封装了 JVM 可直接运行的本地环境,2D 模块已接近完成。当前重点是实现多语言跨平台支持,待跨平台基础稳定后再回头加入 3D 功能。
C# 版:基于 MonoGame(后续会提供 Unity 版本)进行封装,会提供一键代码转换工具。C# 版只提供 LGame 的 C# 封装,不额外打包本地运行环境;转换后可直接使用 MonoGame 或 Unity 运行。实现路径简单(Java → C# 转译),也可用 ikvm,但因依赖库体积问题不采用。加入 C# 支持的主要原因是让 C# 用户避免复杂的 C/C++ 配置与运行流程。
C++ 版:通过 TeaVM 转 C 与 SDL 封装实现,同样会提供一键转换工具(Java2C),并通过 CMake 配置输出不同平台的可执行文件。理论上 C++ 版可在绝大多数环境运行,并会重点支持游戏机等特殊平台。…易用性:以最小配置满足大多数 2D 游戏需求。
跨平台:设计上兼顾桌面、移动与主机平台。
模块化:先完善 2D 与跨平台层,后续逐步加入 3D 与网络模块。
多语言生态:以 Java 为核心,提供 C# 与 C++ 的无缝迁移路径。Highlights and positioning
Ease of use: Minimal setup to cover most 2D game needs.
Cross-platform: Designed for desktop, mobile, and console targets.
Modular: Focus on 2D and cross-platform layers first; 3D and networking will follow.
Multi-language ecosystem: Java as the core with seamless migration paths to C# and C++.当前:Java 版 2D 基本完成,多平台适配在推进中。
短期计划:完成跨语言转换工具与 C#、C++ 的初步封装。
中期计划:稳定跨平台支持后加入 3D 功能与独立网络模块。
长期愿景:构建一个轻量、易上手且能覆盖主流平台的游戏开发生态。Status and roadmap
Now: Java 2D core is nearly complete; multi-platform adaptation is in progress.
Short term: Finish cross-language conversion tools and initial C# / C++ wrappers.
Mid term: Add 3D features and a separate networking module after cross-platform stability.
Long term: Build a lightweight, easy-to-use game development ecosystem that covers mainstream platforms.No open issues yet, or sync has not completed.