LGame
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)
- 2019 year resurrection continues to update - 2019-03-08.
International Entertainment Machines
Loon
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.
Features
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!
Games Code Samples
Game Run the Example(JavaSE)
package org.test;
import loon.LSetting;
import loon.LazyLoading;
import loon.Screen;
import loon.javase.Loon;
public class Main {
public static void main(String[] args) {
LSetting setting = new LSetting();
// Whether to display the basic debug data (memory, sprite, desktop components, etc.)
setting.isDebug = true;
// Whether to display log data to the form
setting.isDisplayLog = false;
// Whether to display the initial logo
setting.isLogo = false;
// The initial page logo
setting.logoPath = "loon_logo.png";
// Original size
setting.width = 480;
setting.height = 320;
// Zoom to
setting.width_zoom = 640;
setting.height_zoom = 480;
// Set FPS
setting.fps = 60;
// Game Font
setting.fontName = "Dialog";
// App Name
setting.appName = "test";
// Whether to simulate touch screen events (only desktop is valid)
setting.emulateTouch = false;
/* Set the global font to BMFont */
//setting.setSystemGameFont(BMFont.getDefaultFont());
Loon.register(setting, new LazyLoading.Data() {
@Override
public Screen onScreen() {
return new YourScreen();
}
});
}
}
Create a LGame project
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.
Built-in over 30 game example(Part screenshots):
PS : If there is a dependency problem such as a Loon-method NoSuchMethodError, the best way is of course to reset the environment yourself to ensure that the relevant jars are recognized by the compiler. But if not, then there is a simple and feasible solution, which is to delete all loon related jars, and then directly copy the relevant source code to your running environment src directory, so no matter what environment, as long as you can run, They Never have a dependency problem...
关于 LGame
总之就是一个非常懒人化的 2D 全功能游戏库(标准版会增加 3D 支持),基于 OpenGL(OpenGLES)开发,有多平台适配,基本上可以一个 jar 满足绝大多数的 2D 游戏需求(暂时不含网络部分,准备有时间单开项目),目前仅以 Java 语法来说,算是很方便的 2D 游戏库了。
主版本 3 個,Java 版(0.5 版)基本构建完毕,C#版构建中,C++版构建中,理论上 Java 版是核心,以后会提供工具相互转化语法为其它版本,因为 Java 跨平台是天坑,多个语言多条路……
此外还有一个和标准版同 API(略有精简)的纯 Java 环境 lite 版(Loon-Lite),不使用任何第三方库,仅使用 Java 运行环境提供的图形接口(也就是只用 Graphics 和 Canvas 的 API 封装),目前只能跑在 JavaFX、JavaSE(标准 JDK)以及 Android、GWT、TeaVM 这些环境,主要是当作 2D 图形特效库以及 UI 库使用,不过基本游戏功能都有,纯血 javaer 专用,万一以后有人把 GraalVM 扩展出多平台的渲染库,也可能在更多平台运行。以后还可能有一个基于精简版的 TypeScript 版本。
License : http://www.apache.org/licenses/LICENSE-2.0
This Java implemented game framework(but will provide a cross-compiler contain C#,C/C++,Go,JavaScript or other programming language implemented),Support IOS\Android\WP7\PSM\Mac\Windows\Linux.