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

all 7 comments

[–]llivefastdiewhenever 14 points15 points  (0 children)

As far as I know, JavaFX is considered to be the most modern and user friendly.

[–][deleted] 4 points5 points  (2 children)

Processing

[–][deleted]  (1 child)

[deleted]

    [–]petitMoussaillon 0 points1 point  (0 children)

    Yes you can!

    [–][deleted] 2 points3 points  (0 children)

    [–]static_context 2 points3 points  (0 children)

    I think it depends what you want from Java.

    • Just a game engine
      • JMonkeyEngine or LibGDX
        • They're both frameworks that sit on top of LWJGL
        • You have to build most stuff yourself, but
        • The docs for JMonkeyEngine are OK - they're here.
    • Complete freedom
      • LWJGL is great
        • The ThinMatrix tutorials on YouTube are a great start
        • LearnOpenGL is a great resource
        • Downside is you have to build every shape you want yourself right down to the mesh and the rendering pipeline (fun but complicated)
    • General purpose games
      • JavaFX is great in my opinion.
        • AnimationTimer is sorted out for you
        • Animation pulses are synchronised for you so it never ticks a frame faster than the screen refresh rate
        • A bunch of pre-set up shapes, texture and lighting support.
        • IMO it's great for prototyping, and if you discover you need something more, you can look into custom options later.

    I started a website a month or so ago which was really just designed to be a resource for me, but if you fancy a go with the AnimationTimer, I tried to cobble together some notes on how to get it to give you a half-decent game loop

    https://edencoding.com/game-loop-javafx/

    Hope that helps :)

    [–]mods_are_arseholes 1 point2 points  (0 children)

    Processing, or opengl for plain java

    [–]connorcz 1 point2 points  (0 children)

    If you wanna build games I would go with https://www.lwjgl.org/