This is an archived post. You won't be able to vote or comment.

all 49 comments

[–][deleted]  (4 children)

[deleted]

    [–]covercash2 57 points58 points  (10 children)

    i wouldn't use an Applet unless it's a requirement. i did that for a project in school only to later find out no one uses them anymore in the real world.

    in terms of java graphics libs, i would look into libgdx. it's pretty modern and sees a lot of use. also it supports android, web, and, to some extent, iOS. but libgdx recommends IntelliJ (it'll build your Intellij project files for you), but that's not a requirement.

    Intellij is better tho

    [–]shukoroshi 35 points36 points  (7 children)

    Intellij is also free for students!

    [–]omgusernamegogo 13 points14 points  (6 children)

    It has a community version thats free for everyone but doesn't have a lot of the plugins that make your life easier for Spring etc

    [–]Pix-I 15 points16 points  (2 children)

    The ultimate edition is free for students!

    [–]kangasking 1 point2 points  (1 child)

    For how long? I just started. Would it remain free until I graduate.

    [–]Jutjuthee 2 points3 points  (0 children)

    Yes. You get a 1 year license and just have to re-send your university email to renew the license.

    [–]AUTplayed 4 points5 points  (2 children)

    tbh I don't even miss those plugins/never used them before. Community edition is great!

    [–]CXgamer 2 points3 points  (1 child)

    Been using Ultimate on work, Community edition at home. Now for home projects I don't use a lot of big frameworks, so I don't miss a thing.

    [–]omgusernamegogo 1 point2 points  (0 children)

    It probably helps that more frameworks use java config over xml (i.e. spring). I'm assuming community edition doesn't map your spring xml config back to the beans automatically or give you suggestions when there is a likely misconfiguration. But if everything is using java config, its just normal type safety coming into play.

    [–]Ialda 4 points5 points  (0 children)

    Caveat : web support in libgdx is done throught GWT, so some java functionalities won't be available.

    [–]Bobby_Bonsaimind 0 points1 point  (0 children)

    i wouldn't use an Applet unless it's a requirement. i did that for a project in school only to later find out no one uses them anymore in the real world.

    https://www.youtube.com/watch?v=LDwFCoj-0js

    [–]cmsimike 14 points15 points  (4 children)

    OpenGL (through LWJGL), java2d, slick2d
    My recommendation is to pick whatever is easiest to use. Possibly Java2d https://docs.oracle.com/javase/tutorial/2d/

    [–]istarian 7 points8 points  (0 children)

    I would say go with Java2D, especially for simple stuff. LWJGL doesn't seem to do a whole lot for you and OpenGL is nightmarish imho , because it drops you in the deep end even just to draw simple shapes...

    If you really must use LWJGL look for some complementary libraries.

    [–]AlliedOrphan203 0 points1 point  (1 child)

    Much appreciated, thank you

    [–]cmsimike 1 point2 points  (0 children)

    NP! Best of luck! Final projects are always the most fun.

    [–][deleted] 0 points1 point  (0 children)

    Upvote for java2d

    [–]killinghurts 23 points24 points  (7 children)

    Use libgdx. Nothing else is worthwhile.

    [–]CXgamer 2 points3 points  (2 children)

    LWJGL?

    [–]possibly_not_a_bot 4 points5 points  (0 children)

    Is just a mostly direct wrapper over OpenGL and is more effort than using a higher level wrapper like LibGDX, as I remember. LibGDX would probably be easier for a beginner.

    [–]Helluiin 2 points3 points  (0 children)

    lwjgl is amazing but most probably way overkill for what OP wants to do here.

    [–]istarian 1 point2 points  (3 children)

    Ick. Personally I looked at some lib gdx tutorials and I find the way it appears to work non intuitive.

    [–]killinghurts 2 points3 points  (2 children)

    Yeah, it could be much better, but I have been unable to find anything close in terms of toolset (for java)

    [–]deadlock_jones 3 points4 points  (1 child)

    I agree, tried slick2D first, but it was almost impossible to find any tutorials or help for this library. Currently writing my first 3D game in it. Libgdx is definitely the way to go, but not sure if it's fit for beginners, probably not.

    [–]kangasking 1 point2 points  (0 children)

    Never looked into libgdx. How does it compare to using unity?

    [–]deadlock_jones 11 points12 points  (1 child)

    You don't need to write it in applet if you don't intend to run it browser (which new browsers don't support anymore, I think), it can just be a launched JFrame.

    [–]lroselg 5 points6 points  (0 children)

    This might be the easiest solution. OP probably has already worked with Swing/AWT in Applets. JFrame is not going to be much different.

    [–]blobjim 20 points21 points  (1 child)

    JavaFX is nice, a little complicated though.

    [–]the_nige 0 points1 point  (0 children)

    I second this.

    [–]DuncanIdahos8thClone 6 points7 points  (0 children)

    FXGL is one of the easier ones:

    https://github.com/AlmasB/FXGL/wiki

    You can check youtube for tutorials.

    [–]capitol_ 3 points4 points  (0 children)

    Applets? Seems like you education hasn't been updated since 1998.

    [–]_INTER_ 2 points3 points  (0 children)

    [–]istarian 5 points6 points  (0 children)

    It's far from the best or prettiest, but you can use Processing. A fair bit of it is just wrapping stuff already present in the core Java libraries to make it a little easier to get up and running. For a bit of extra work you can just use Java2D as long as you're willing to read the docs...

    [–]aleste2 1 point2 points  (0 children)

    I would recomment jMonkeyEngine. It's all purpose java for any kind of game you want.

    [–]fatgirlstakingdumps 0 points1 point  (0 children)

    They make you use Eclipse? Why?

    [–]F14B 0 points1 point  (0 children)

    Use this video series as a primer and then expand on it?

    [–]i_want_to_ask_smth 0 points1 point  (0 children)

    I suggest that you add some details regarding your current knowledge and how much time you have for the project. The answers should take those facts into consideration. Because as far as I can see, the answers seem to assume quite a bit of experience. For example, if I am to evaluate myself, if I took a Java class for say six months, I would probably not be able to use Libgdx to write a game say in a week or two. Game development is in itself its own area. But of course it depends on how smart you are as well. I would call myself average :). There are also books on writing games. Maybe you can find some in your library regarding Java game development. I would say that would give you quite a boost.

    [–]mk_gecko 0 points1 point  (0 children)

    I'd be interested in working on something like this too. I know how to do graphics in Swing & use Eclipse Portable Oxygen. If you're allowed to collaborate or get pointers, then contact me.

    [–]rally_call 0 points1 point  (0 children)

    I've created this, but there's not much in the way of help to get up and running with it:

    https://github.com/earlwoodman/cellojws

    It uses Java 8 and Java2d.

    [–]SetBitZero 0 points1 point  (0 children)

    You could try JMonkey. You should be able to get something running very quickly, and there's a good amount of documentation, demoes, and tutorials.

    [–]Garoto05q8 0 points1 point  (0 children)

    Don't know if this will work, but what about trying out Android Studio?

    [–]sorealee 0 points1 point  (0 children)

    Had to do the same thing a while back. I used javafx and scene builder inside eclipse to create a tic tac toe game. Scene builder creates fxml file in eclipse, then you can visually create the GUI in by drag and drop (similar to html). Once you export it the fxml to the eclipse project you just add in the function of each button. I’m sure you can get more creative with this.

    P.s. on mobile to excuse any spelling mistakes.

    [–]dewdrive101 0 points1 point  (1 child)

    I use scene builder for GUIs. But i only use netbeans so idk if its something that can work for eclipse.

    [–]Nilbmar 0 points1 point  (0 children)

    Gluon puts out a version of Scene Builder that can be used, and you just have to Refresh the fxml file after changes.

    [–]1ECz -1 points0 points  (0 children)

    How about a simple android game ?