A cross-platform Java game Engine (Framework) , support JavaFX / Android / IOS / HTML5 / Linux / MAC / Windows

Overview

Loon Game Engine (Java Game Framework)

LGame

License

EN / KR

Free Game Resources Links

Download Loon Game Engine

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)

LGame

  • 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

LGame

Samples

Examples

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.

LGame

Built-in over 30 game example(Part screenshots):

LGame

LGame

LGame

LGame

LGame

LGame

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全功能游戏库,基于OpenGL(OpenGLES)开发,有多平台适配,基本上可以一个jar满足绝大多数的2D游戏需求(暂时不含网络部分,准备有时间单开项目)。

主版本3個,Java版(0.5版)基本构建完毕,C#版构建中,C++版构建中,理论上Java版是核心,以后会提供工具转化语法为其它版本。

Java精简版构建中(仅使用Java环境提供的图形接口,理论上只能跑在支持JavaFX(JavaSE)以及Android的环境,主要是当作2D图形特效库以及UI库使用,以后还可能有一个基于精简版的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.

You might also like...
Korjector is a KorGE game engine-based multiplatform client for Projector.
Korjector is a KorGE game engine-based multiplatform client for Projector.

Korjector is a KorGE game engine-based multiplatform client for Projector. An internal JetBrains Hackathon 2021 project to demonstrate that a Projector client can be created in less than 48 hours for any OS that supports decent canvas 2D API.

RemsEngine - OpenSource Kotlin/OpenGL/ECS based game engine

Game Engine: Rem's Engine Parallel to this video editor, I am developing my own

Simple 2D platform game.

FloreProject Simple 2D platform game. Supported platforms OS Support Android ❌ Not playable Windows ✅ Full support Linux ✅ Full support MacOS ✅ Full s

Our maze game is an 2d-animation game developed using android studio.
Our maze game is an 2d-animation game developed using android studio.

Our maze game is an 2d-animation game developed using android studio. The game consists of a ball and a board with a hole in the center of it. We are using accelerometer as controller to guide ball towards the hole. T

An easy open source Android Native Game FrameWork.
An easy open source Android Native Game FrameWork.

JustWeEngine - Android Game FrameWork An easy open source Android Native Game FrameWork. Engine Flow Chart How To Use? Import Engine's module as Libra

Extensive game framework written in Kotlin

CGS is a minigame framework I wrote in December of 2021. This project was closed-source, but unfortunately, a series of events led me to decide to open-source it.

Android OpenGL ES 2.0/3.0 Engine

Build Status Master Branch Status Develop Branch Status News 06/23/2017 Bombshell 1.1.970 has been released. It fixes behavior of Objects of zero size

2D physics engine for games

LiquidFun Version 1.1.0 Welcome to LiquidFun! LiquidFun is a 2D physics engine for games. Go to our landing page to browse our documentation and see s

RPG written in Kotlin using Korge engine

TheAlchemist RPG written in Kotlin using the Korge engine Based on the template https://github.com/korlibs/korge-starter-kit-rpg, this is a simple pix

Comments
  • SRPG样例中游戏胜利条件达成后,关闭app报错

    SRPG样例中游戏胜利条件达成后,关闭app报错

    如题,具体什么原因过两天我再仔细调一下。 错误如下: 02-18 19:31:31.963: E/AndroidRuntime(11254): FATAL EXCEPTION: main 02-18 19:31:31.963: E/AndroidRuntime(11254): Process: com.mygame, PID: 11254 02-18 19:31:31.963: E/AndroidRuntime(11254): java.lang.RuntimeException: Unable to pause activity {com.mygame/com.mygame.Main}: java.lang.IllegalArgumentException: buffer not allocated with newUnsafeByteBuffer or already disposed 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3736) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3695) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3670) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread.access$1100(ActivityThread.java:177) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1466) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.os.Handler.dispatchMessage(Handler.java:102) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.os.Looper.loop(Looper.java:145) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread.main(ActivityThread.java:5942) 02-18 19:31:31.963: E/AndroidRuntime(11254): at java.lang.reflect.Method.invoke(Native Method) 02-18 19:31:31.963: E/AndroidRuntime(11254): at java.lang.reflect.Method.invoke(Method.java:372) 02-18 19:31:31.963: E/AndroidRuntime(11254): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) 02-18 19:31:31.963: E/AndroidRuntime(11254): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195) 02-18 19:31:31.963: E/AndroidRuntime(11254): Caused by: java.lang.IllegalArgumentException: buffer not allocated with newUnsafeByteBuffer or already disposed 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.jni.NativeSupport.disposeUnsafeByteBuffer(NativeSupport.java:520) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LTextureBatch.dispose(LTextureBatch.java:1069) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LTextureBatch.destoryAll(LTextureBatch.java:1048) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LSTRFont.dispose(LSTRFont.java:472) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LSTRDictionary$Dict.dispose(LSTRDictionary.java:65) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LSTRDictionary.clearStringLazy(LSTRDictionary.java:85) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LSTRDictionary.dispose(LSTRDictionary.java:234) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.core.graphics.opengl.LTextures.disposeAll(LTextures.java:209) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.LProcess.onDestroy(LProcess.java:683) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.AndroidView.destroy(AndroidView.java:400) 02-18 19:31:31.963: E/AndroidRuntime(11254): at loon.LGame.onPause(LGame.java:775) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.Activity.performPause(Activity.java:6446) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1308) 02-18 19:31:31.963: E/AndroidRuntime(11254): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3722) 02-18 19:31:31.963: E/AndroidRuntime(11254): ... 11 more

    opened by hilouki 2
  • AndroidStudio项目assets文件夹应该放在哪里?

    AndroidStudio项目assets文件夹应该放在哪里?

    高手,您好: Assets.background = LTextures.loadTexture("background.png"); 图片路径报错java.lang.RuntimeException: Path background.png is null ! 不知道怎么放这个assets文件夹

    opened by scping 3
  • 安卓版本demo没能跑起来,安卓8.0 api 26

    安卓版本demo没能跑起来,安卓8.0 api 26

    E/AndroidRuntime: FATAL EXCEPTION: main Process: loon.template.mygame, PID: 2828 java.lang.NoSuchMethodError: No virtual method setSize(II)V in class Lloon/geom/Dimension; or its super classes (declaration of 'loon.geom.Dimension' appears in /data/app/loon.template.mygame-IlfOsUsmX6V1fLbn48UimA==/base.apk) at loon.android.Loon.updateViewSize(Loon.java:896)

    opened by netgb 6
Releases(LGame-0.5-Beta-fix1)
Owner
cping
一举鲸涛快哉风,世浪翻袖中。
cping
Desktop/Android/HTML5/iOS Java game development framework

Cross-platform Game Development Framework libGDX is a cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux

libgdx 20.9k Dec 28, 2022
Cocos2d-x is a suite of open-source, cross-platform, game-development tools used by millions of developers all over the world.

cocos2d-x Win32 Others cocos2d-x is a multi-platform framework for building 2d games, interactive books, demos and other graphical applications. It is

cocos2d 16.7k Dec 31, 2022
Cocos2d-x is a suite of open-source, cross-platform, game-development tools used by millions of developers all over the world.

cocos2d-x Win32 Others cocos2d-x is a multi-platform framework for building 2d games, interactive books, demos and other graphical applications. It is

cocos2d 16.7k Jan 7, 2023
Game made with Korge (Kotlin Multiplatform game engine)

MolesAttack Kotlin Multiplatform Game Play Html/js: https://feliperce.github.io/MolesAttack-Distribution/ Jar: https://feliperce.github.io/MolesAttack

Felipe Rodrigues 10 May 30, 2022
a 2d Java physics engine, native java port of the C++ physics engines Box2D and LiquidFun

jbox2d Please see the project's BountySource page to vote on issues that matter to you. Commenting/voting on issues helps me prioritize the small amou

jbox2d 1k Jan 2, 2023
This is an application that is about an X / O game. You can enter the names of the game, and there is also a screen for those who win and there is a button to continue playing and the game determines the result of each player

Game-X-O This is an application that is about an X / O game. You can enter the names of the game, and there is also a screen for those who win and the

Mohamed Rafat 2 Aug 20, 2022
Free Android 2D OpenGL Game Engine

AndEngine Donations While developing AndEngine was a lot of fun, it also also consumed many(!) months of my life. It actually continues to cost me a s

Nicolas Gramlich 3.2k Jan 5, 2023
SMBClone - SMD clone custom game engine. (Desktop + Android)

SMBClone Simple crossplatform game engine for like SMB game! Supported platforms

Victor Varenik 4 Jul 4, 2022
Android Play Games Services plugin for Godot Game Engine

Google Play Games Services Plugin for Godot This is an Android Play Games Services plugin for Godot Game Engine 3.4.2 Supported features: Sign-in/Sign

Studio Adriatic 41 Dec 29, 2022
WordleFX - Wordle in JavaFX and Kotlin

Wordle This simple game is everywhere right now (the beginning of 2022) and it s

Dave Barrett 13 Apr 14, 2022