lgame java_GitHub - cping/LGame: A cross-platform Java game Engine (Framework) , support JavaFX / An...

Loon Game Engine (Java Game Framework)

b0e81fab186fcb0510bc89f48c77358e.png

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322d626c75652e737667

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)

3dae2066fdb70453f0734fbd8aec067a.png

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

b1ed2090bc99ce0c2e46f059f8d48029.png

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.

868b16f69fb19ea5d84203d5eb5b79bf.png

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

3fe3fadd36672adda154679f09f394ec.png

d7eef44f9e22da6a215d781fd7bfb2fa.png

4829a616e940a966086a975aa42c8422.png

1c20cb86374436f7f42ac7b2b7f8b25d.png

3b7da6b04d2d152504311f9e4c4d0283.png

977a5c4d60c24e9f8cd3b932fd67eb12.png

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版本)

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值