Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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  
  Technology for a 2D plataform game  (Read 1134 times)
0 Members and 1 Guest are viewing this topic.
Offline moonpxi

Senior Newbie




Java games rock indeed!!!


« Posted 2004-02-11 14:52:46 »

Hey all, as a veteran clubie I have another question, as alaways.

Well, I am currently developing a 2D plataform game in Java (of course!!!) and I am a bit dazzled by all surrounding game technologies...there is pure Java2D, LWJGL, JOGL and probably a few more I didn't noticed.

So, I've started thinkering with Java2D and thought it was the best and all. However, I didn't went far enough to start falling into certain performance problems because of it.

So, as an advice, what technology should I use for my type of game, which is not necessarily as simple as it may sound???

Moon Pxi, a NerdCorper
Offline Orangy Tang

JGO Kernel


Medals: 48
Projects: 11


Monkey for a head


« Reply #1 - Posted 2004-02-11 15:08:07 »

Well LWJGL, Jogl or Xith3D are your main alternatives. Xith3D is a 'proper' scenegraph API so thats probably overkill for a 2d game, so you've mainly got a choice between LWJGL and Jogl.

Unless you've got a really good reason (like needing Swing components next to your display) go with LWJGL. Its more reliable, better cross platform support and less annoying gotchas to avoid. It also gives you audio and controller input, where Jogl's counterparts of Joal and JInput are still somewhat buggy.

Having said that, I might be unfairly dismissing Xith, considering you could probably use a whole bunch of existing code (like texture loading). (Todo: learn Xith myself Grin )

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline moonpxi

Senior Newbie




Java games rock indeed!!!


« Reply #2 - Posted 2004-02-11 16:08:31 »

Well....I am almost set on using LWJGL....however I have another clubie question: is there any tutorial on LWJGL (or OpenGL, for that matter) for 2D games??

Moon Pxi, a NerdCorper
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #3 - Posted 2004-02-11 18:11:04 »

Nehe productions is the best sourse for beginner openGL. http://nehe.gamedev.net/ There really arent any 2d openGL tutorials. What you do is have your sprite be a texture that is mapped toa polygon and then just never do z transformations on the polygon (I think that is it but I could be wrong) The tutorials listed at Nehe have code examples at the bottom of each tut page where you can find both JOGL and LWJGL  implementation. Very useful concidering that the tutorials themsleves are written in C. Remember when you are using JOGL and LWJGL for you rendering you are no longer programming in Java. Instead you are using Java to program in openGL. So any tut or book about openGL will be a helpful resourse.    

Kommi
Offline erikd

JGO Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #4 - Posted 2004-02-12 19:58:27 »

Quote
Remember when you are using JOGL and LWJGL for you rendering you are no longer programming in Java. Instead you are using Java to program in openGL.


Huh

I'd rephrase that a little  Smiley
You *are* programming in java and using openGL as your rendering API.

Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #5 - Posted 2004-02-13 08:38:25 »

True... LWJGL has been heavily Javafied now.

Cas Smiley

Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #6 - Posted 2004-02-13 14:59:41 »

Right, my bad. Sorry for the poor word phrasing. Erikd said it better.

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

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (85 views)
2013-05-17 21:29:12

alaslipknot (93 views)
2013-05-16 21:24:48

gouessej (125 views)
2013-05-16 00:53:38

gouessej (118 views)
2013-05-16 00:17:58

theagentd (128 views)
2013-05-15 15:01:13

theagentd (115 views)
2013-05-15 15:00:54

StreetDoggy (159 views)
2013-05-14 15:56:26

kutucuk (181 views)
2013-05-12 17:10:36

kutucuk (181 views)
2013-05-12 15:36:09

UnluckyDevil (188 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.101 seconds with 21 queries.