Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
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 1421 times)
0 Members and 1 Guest are viewing this topic.
Offline moonpxi

Senior Newbie




Java games rock indeed!!!


« Posted 2004-02-11 13: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: 56
Projects: 11


Monkey for a head


« Reply #1 - Posted 2004-02-11 14: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 15: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!
Legends of Yore - The Casual Retro Roguelike
Offline Kommi

Junior Duke




All opinions will be lined up and shot!


« Reply #3 - Posted 2004-02-11 17: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #4 - Posted 2004-02-12 18: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

JGO Kernel


Medals: 407
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


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

True... LWJGL has been heavily Javafied now.

Cas Smiley

Offline Kommi

Junior Duke




All opinions will be lined up and shot!


« Reply #6 - Posted 2004-02-13 13: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.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (44 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (38 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (86 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!