Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
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  
  simple 2d api, multi-platform  (Read 2060 times)
0 Members and 1 Guest are viewing this topic.
Offline pelle

Senior Devvie

Medals: 3
Projects: 1

« Posted 2011-06-01 21:18:40 »

This is probably so much a FAQ it hurts, but it would be great to have some feedback on my particular (peculiar?) requirements anyway.

I'm looking for some very simple way to add a GUI to my semi-complete turn-based strategy lib/engine. I already have some Android code, but I want to do things, possibly even distribute, for desktop as well, and supporting at least Mac, Linux, and Windows. It would be great to do this without requiring users to have java installed. I do not feel like depending on Oracle more than I have to. Since I only want very simple graphics (blitting bitmaps would be quite enough, font rendering a nice bonus) and no sound I guess there are a number of libs and alternative jvm implementations (or native-compilers like gcj) I could consider? Something with a nice open source license preferably.
Offline pelle

Senior Devvie

Medals: 3
Projects: 1

« Reply #1 - Posted 2011-06-01 21:41:28 »

It is perhaps best to keep it simple and just use the Oracle SDK for development anyway, but it would be nice to know that the lib I use can also be distributed without the Oracle-dependency the day I eventually might get around to distribute something? IIRC there are free implementations of AWT, so maybe even that is an option? But something more game-specific will probably save me some trouble anyway.
Offline pelle

Senior Devvie

Medals: 3
Projects: 1

« Reply #2 - Posted 2011-06-02 16:49:25 »

Assuming that I gamble on that people actually have a JRE installed or are willing and able to install one, what simple free minimal lib would you recommend in that case?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Wizard

Medals: 88

« Reply #3 - Posted 2011-06-02 17:39:25 »

Take a look at libgdx, since it is multiplatform incl. android it may be exactly what you are looking for. Also slick is very popular here.

Mathias - I Know What [you] Did Last Summer!
Offline pelle

Senior Devvie

Medals: 3
Projects: 1

« Reply #4 - Posted 2011-06-02 19:05:43 »

Thanks! I wasn't intending to use the same ui code for Android and desktop, but maybe I will after all. But OpenGL would be complicating things too much in this case.

Maybe I'll just make a tiny wrapper around Graphics2d for now for desktop, and see how it works out for now. At least then I have an easy way out if/when I find something better.
Offline pelle

Senior Devvie

Medals: 3
Projects: 1

« Reply #5 - Posted 2011-06-02 19:08:42 »

On a closer look libgdx did have some higher level 2d classes, so no need to do OpenGL. I might make my tiny wrapper around that lib instead then as a starting point. Smiley

Edit: Oh, and slick too. I guess that is why they call it slick2d. Can't believe how bad I am at reading text today. I had a quick look at both homepages first and got the impression they still required OpenGL coding, but now I see both are worth looking closer at.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Riven (26 views)
2015-07-27 16:38:00

Riven (16 views)
2015-07-27 15:35:20

Riven (20 views)
2015-07-27 12:26:13

Riven (10 views)
2015-07-27 12:23:39

BurntPizza (26 views)
2015-07-25 00:14:37

BurntPizza (39 views)
2015-07-24 22:06:39

BurntPizza (22 views)
2015-07-24 06:06:53

NoxInc (25 views)
2015-07-22 22:16:53

NoxInc (17 views)
2015-07-22 22:13:39

Jesse (39 views)
2015-07-22 03:10:36
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!