Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  UX2Engine - 2D Game Engine  (Read 1639 times)
0 Members and 1 Guest are viewing this topic.
Offline Dxu1994
« Posted 2013-11-07 11:39:51 »



Hello everyone, I just thought I'd post here to showcase a project I've been working on for quite some time.

Ux2Engine is a framework for developing 2D games that I've built from the ground up to be pluggable into different types of APIs and frameworks, designed with speed and simplicity in mind.

The flagship game behind the engine is Renoria, a 2D MMORPG currently in development by my company Uxsoft:



For more info on Renoria please check out my other topic: http://www.java-gaming.org/topics/renoria-java-mmorpg/30991/view.html

Current features of the engine:

  • Pluggability - Plug any renderer, physics engine or audio renderer you want! Java2D/AWT, LWJGL and JOGL/NEWT currently supported. Audio currently only supports JavaSound and Physics engine currently only supports Box2D, but support for any framework can be added.
  • Need to load encrypted resources? Just add a filter driver into the AssetManager and away you go!
  • Need to load a custom format into the game? Just plug in your custom loader into AssetManager and all the details are hidden from you Wink
  • Built in networking module running on Java NIO, all you need to implement is the protocol encoder & decoder!
  • Fine tune any part of the engine without changing the engine itself, just extend any classes derived from the engine!
  • LWJGL module has a TextureLoader which uses dynamic texturepacking to improve performance by decreasing amount of bindTexture calls. Also has young/old generation textures to better manage VRAM.
  • Prefer immediate mode? Just plug in an immediate mode renderer, or prefer VBO graphics? Just plug in the LWJGLVBORenderSpace Smiley
  • Input details are also transparent, all you need to provide is an InputHandler and the actual details of whether its using LWJGL, Swing or NEWT is completely hidden

Example code from Renoria that shows the engine in action (runtime choice between Java2D or LWJGL):

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
UxEngineOptions options = new UxEngineOptions();
options.fullscreen = useFullScreen;
UxAssetProvider renoriaEncryptedProvider = new RenoriaEncryptedAssetProvider();
options.displayMode = new UxDisplayMode(requestedWidth, requestedHeight, 32, UxDisplayMode.REFRESH_RATE_UNKNOWN);
options.setComponent(UxComponent.RENDERER, useJava2D ? new Java2DRenderer() : new LWJGLVAORenderer());
options.setComponent(UxComponent.ASSET_MANAGER, new UxAssetManager(useJava2D ? new Java2DBufferedImageAssetProvider(renoriaEncryptedProvider) : new GLTextureAtlasBuilderAssetProvider(renoriaEncryptedProvider, runOptions.getOptionalInt("textureCacheSize", 10))));
options.setComponent(UxComponent.PHYSICS_ENGINE, new RenoriaPhysicsEngine());
options.setComponent(UxComponent.INPUT, new RenoriaInputHandler());
options.setComponent(UxComponent.NETWORK, new RenoriaPacketCrypto());

Ux2Engine engine = new Ux2Engine(options);

UxEngineWindow wnd = useJava2D ? (new SwingDoubleBufferedEngineWindow(engine) : new LWJGLEngineWindow(engine) );

wnd.loop(new RenoriaGameLoop());


Example screenshots of my stress testing for it:

Java2D renderer (80 FPS, 2000 sprites)



LWJGL renderer (with index buffer, vbo and texture packer) (200 FPS, 5000 sprites)



LWJGL renderer (with immediate mode and textureRect) (120 FPS, 5000 sprites)



I'm thinking about opensourcing parts of the engine later on, so other people can put it to use (once the main game using the engine is complete!)

Offline lcass
« Reply #1 - Posted 2013-11-07 16:39:05 »

LOl those pigs. Very neat though.
Offline StumpyStrust
« Reply #2 - Posted 2013-11-07 18:56:48 »

This is the first "Check out my game engine" that I was actually like,  Shocked

Not trying to rip on those who are making there own but you are doing many things right here. Using box2D for physics instead of writing your own. That I like. I also like the java2D support even though it is basically useless. Do you have nice shader wrappers? and maybe some build in shader stuff? Lighting? Particle system?  Cheesy

Glad that you are developing and engine as you are making a game. Seems really silly to make an engine before you make a game as you never quite know what stuff you need or how it should be done in an api.

Keep up the good work.

And I like the stone pigs.  Grin




Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline dezzroy

Senior Newbie


Exp: 10 years



« Reply #3 - Posted 2013-11-08 06:10:07 »

Quote
I also like the java2D support even though it is basically useless.

It's fine for having a debug renderer while you do main logic development, waiting to do the real renderer last. To each his own, I guess.

I like those sprites! I'm sure the game engine is great, too  Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (25 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!