Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
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 4353 times)
0 Members and 1 Guest are viewing this topic.
Offline crazybear

Senior Newbie

« Posted 2014-01-03 05: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 05: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.
Offline crazybear

Senior Newbie

« Reply #2 - Posted 2014-01-03 06: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 Opiop
« Reply #3 - Posted 2014-01-03 06: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 07: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 18:28:51 »

I might go ahead and do it first in java 2d, then switch over to something else later.
Offline Opiop
« Reply #6 - Posted 2014-01-04 18: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 Devvie

Medals: 9

« Reply #7 - Posted 2014-01-04 20: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 Opiop
« Reply #8 - Posted 2014-01-04 21: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: 382
Projects: 11
Exp: 4 years

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

« Reply #9 - Posted 2014-01-04 21: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 Devvie

Medals: 4
Exp: 4 years

« Reply #10 - Posted 2014-01-04 23: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 02: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 Opiop
« Reply #12 - Posted 2014-01-10 02: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  

hadezbladez (289 views)
2018-11-16 13:46:03

hadezbladez (157 views)
2018-11-16 13:41:33

hadezbladez (290 views)
2018-11-16 13:35:35

hadezbladez (71 views)
2018-11-16 13:32:03

EgonOlsen (2150 views)
2018-06-10 19:43:48

EgonOlsen (2152 views)
2018-06-10 19:43:44

EgonOlsen (1364 views)
2018-06-10 19:43:20

DesertCoockie (1983 views)
2018-05-13 18:23:11

nelsongames (1600 views)
2018-04-24 18:15:36

nelsongames (2248 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!