Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  
  Creating a GUI  (Read 822 times)
0 Members and 1 Guest are viewing this topic.
Offline crazybear

Senior Newbie





« Posted 2014-01-03 06:51:14 »

Hello all, I have been working on a simple card game and am ready to start implementing the GUI. (right now I have been using text to the console) What would you recommend I use to implement a GUI? Should I just use something like Slick2D?  Any help would be appreciated.
Offline Slyth2727
« Reply #1 - Posted 2014-01-03 06:55:13 »

I *highly* suggest you don't use slick2d. Instead use LibGDX or just make one yourself in Java2D. It sounds like you are already using Java2D so try making your own. I suggest to move on to LibGDX or some up to date library/binding. LWJGL, JOGL, and as I said, LibGDX are good examples.

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline crazybear

Senior Newbie





« Reply #2 - Posted 2014-01-03 07:06:33 »

All I have been using so far is LWJGL. Why do you recommend LibGDX?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #3 - Posted 2014-01-03 07:12:16 »

Slick2D is fine, its not updated much anymore because its pretty stable last this point. OP, start with the basis and work your way up. First draw a square, then a textured square... Then different shapes etc... LibGDX is a complete graphics library built on LWJGL. I personally like bare LWJGL, and I use my personal library to perform some higher level functions. You could also look at Java2D.

Offline StumpyStrust
« Reply #4 - Posted 2014-01-03 08:46:05 »

Libgdx has just about everything you need out of the box such as GUI lib. It is easy to use and can really help streamline game dev. If you are more into writing everything yourself, then go for making a small UI lib. It can be fun. However, if you really want to just focus on game dev, then I strongly recommend libgdx.

Offline crazybear

Senior Newbie





« Reply #5 - Posted 2014-01-04 19:28:51 »

I might go ahead and do it first in java 2d, then switch over to something else later.
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #6 - Posted 2014-01-04 19:34:33 »

It's not worth it to do it in Java2D. I started learning OpenGL two years ago, and the last time I touched Java2D for a game project was before that. Its just not that useful.

Offline Phibedy

Senior Member


Medals: 8



« Reply #7 - Posted 2014-01-04 21:24:17 »

Every java-programmer should have worked with Java2D once CrankyGrin
Java2d offers some great already written stuff and it's may not made for writing action games, but in some cases it's usefull and quite powerfull. We are even using swing in our editor that is build on top of libgdx.
Afterwards I would go for libgdx because you can nearly do all lwjgl stuff with libgdx and much more(android + ios + html). It also has some other great utils, like the FileHandle, Json, etc.
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #8 - Posted 2014-01-04 22:30:07 »

Well yes, Java2D is quite good for things other than game development. I actually do love it for GUIs, and I would pick it over a lot of other libraries simply because it is so easy to use, especially when you combine it with this visual plugin for Eclipse that allows you to drag and drop components, and it codes it for you.

Offline HeroesGraveDev

JGO Kernel


Medals: 238
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #9 - Posted 2014-01-04 22:38:18 »

Java2D/Swing is good for applications.

OpenGL is good for games.

OpenGL can be used for applications, and will be faster, but you need to write a lot of extra code beforehand. However, you don't really need the speed in the first place.

Java2D can be used for games, but will be slower.

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

Junior Member


Medals: 4
Exp: 4 years



« Reply #10 - Posted 2014-01-05 00:38:22 »

Start with Java2d and when you are satisfied that you can't go further use openGL
using OpenGL now might confuse you and make you simply just quit on the game, since you wont be familiar with the library
Offline crazybear

Senior Newbie





« Reply #11 - Posted 2014-01-10 03:14:57 »

So I started perusing the LIBGDX docs and watching some tutorials online and it seems pretty straight forward and easy. I might go ahead and start using it instead of Java2d.
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #12 - Posted 2014-01-10 03:40:36 »

Although I don't love LibGDX for reasons I'll withhold, I do say that I think you made a good choice. Java2D just isn't cut out for game development, and it's silly to use it when we have the awesome power of low level OpenGL ready for our use.
Good luck!

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.

Riven (8 views)
2014-07-23 20:17:25

ctomni231 (39 views)
2014-07-18 06:55:21

Zero Volt (36 views)
2014-07-17 23:47:54

danieldean (29 views)
2014-07-17 23:41:23

MustardPeter (32 views)
2014-07-16 23:30:00

Cero (47 views)
2014-07-16 00:42:17

Riven (48 views)
2014-07-14 18:02:53

OpenGLShaders (38 views)
2014-07-14 16:23:47

Riven (37 views)
2014-07-14 11:51:35

quew8 (33 views)
2014-07-13 13:57:52
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

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!