Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
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  
  New to java, LWJGL or Java2D?  (Read 2194 times)
0 Members and 1 Guest are viewing this topic.
Offline imnoob

Junior Newbie





« Posted 2012-07-02 07:19:53 »

Hey guys im new to java (just finishing thenewboston tutorials) i did a little "commandline" game and im wondering where to start for making more serious stuff, the logical way for me is to look toward Java2D but some people said that at some point, i will have to switch to LWJGL so why not start here directly. But since im not looking to make big games i feel like LWJGL might be too "big" for me? (atleast for now) So i'm asking you guys, what is the limit of Java2D?
For instance if i want to draw like 50 animated characters (like zombies or w/e) to the screen for a platformer game, is it doable while having decent performance? I really want to know what you can do with Java2D because lot of people are saying different stuff, as a newcomer i feel really confused..
Also the more i read about java2d the more i feel that there is only ONE way to do stuff (performance wise like gameloops, rendering, etc) so all i have to do is find the right code and i guess i won't learn much from brainless code copypasta so yeah i hope i'm wrong on this.

Thanks for reading me, hope I don't sound annoying.

PS; Excuse the engrish.
Offline gouessej
« Reply #1 - Posted 2012-07-02 07:31:46 »

Hi
You can start programming with Java2D and switch later to Slick, JGame or GLG2D. There are suitable kinds of Java2D reimplementation using LWJGL (for example in GTGE) or JogAmp (GLG2D). Java2D is easier to learn than any Java binding for the OpenGL API but you will have to use one of them if you want good performance. Don't worry for your English, lots of people here aren't native speakers, we do our best.

Julien Gouesse | Personal blog | Website | Jogamp
Offline 65K
« Reply #2 - Posted 2012-07-02 08:00:48 »

For instance if i want to draw like 50 animated characters (like zombies or w/e) to the screen for a platformer game, is it doable while having decent performance? I really want to know what you can do with Java2D because lot of people are saying different stuff, as a newcomer i feel really confused..
Peace of cake.
Except you run on a 286 with an ancient graphics card maybe...
Here I put some Java2D measurements.


Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 953
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2012-07-02 08:20:27 »

For 2D, Java2D can in theory be more or less about as fast as OpenGL via LWJGL or JOGL, within certain limitations.

Cas Smiley

Offline imnoob

Junior Newbie





« Reply #4 - Posted 2012-07-02 14:33:49 »

Thank you guys for answering ! Guess i will start with Java2D, make a simple game like a platformer and try to polish it more and more by adding stuff !
Offline davedes
« Reply #5 - Posted 2012-07-03 03:12:47 »

Try out various libraries and decide for yourself what is most suitable for your needs and goals.

Java2D is definitely performant enough for a simple game like you are planning.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
Ecumene (56 views)
2017-09-30 02:57:34

theagentd (79 views)
2017-09-26 18:23:31

cybrmynd (187 views)
2017-08-02 12:28:51

cybrmynd (185 views)
2017-08-02 12:19:43

cybrmynd (192 views)
2017-08-02 12:18:09

Sralse (202 views)
2017-07-25 17:13:48

Archive (758 views)
2017-04-27 17:45:51

buddyBro (892 views)
2017-04-05 03:38:00

CopyableCougar4 (1441 views)
2017-03-24 15:39:42

theagentd (1325 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!