Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (791)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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  
  A few Questions and One Swing Problem  (Read 2669 times)
0 Members and 1 Guest are viewing this topic.
Offline Neddy

Junior Newbie

Java games rock!....Big Time?

« Posted 2003-11-30 07:59:09 »


Im about to start a new project where im going to be creating a side view 2D shooter game, that is multiplayer, same concept as Soldat if you have played it. So i just had a few questions;

1. What would be the best 2D API to use? and what degree of hardness is the one you suggest to use?

2. Does anyone know where i can find any information on how to create a level editor for something like this, where the levels will be able to be customized on a pixel by pixel basis.

And finally, One problem. Im creating a language selector in swing, and the language appear in a drop down combo box. I have a JLabel above this, with these two components in a Box layout arranged vertically. The problem is that when i add in the Combo box, the Jlabel gets indented a certain amount relative to the left hand end of the combo box, and  if i move the combo box  to try to align it up with the Jlabel, the Jlabel moves accordingly to keep at the same point relative to the Combo Box.  Does anyone know whay this is happening and how i can stop it, and let me just put it where i want.

Thanx alot.
Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2003-11-30 08:06:37 »

If you just want to place swing components by pixel and don't want to worry about layouts, use:



Most people refer to this as null layout manager.


If you're going to do something like Soldat, first off you might want to check the projects on since I think there is already a Soldat clone underway. That aside, its a fairly fast action and effects packed game so raw Java2D is out. At the moment you'll find it difficult to get the performance you'll want from Java2D accelerated mode (due to some restrictions with alpha blending).

You might want to consider writing a sprite engine with either LWJGL or JOGL. There are a couple floating around but its not very difficult to do and there have been a few examples posted. Not to advertise too much you could always check out J2DA (in my signature) which is basically a 2D sprite engine over JOGL.


A map based on a pixel by pixel destruction! Smiley The best editor I can think of would be Paint Shop Pro Smiley Since you're doing pixel by pixel design, the easiest thing is just paint the level.




Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #2 - Posted 2003-11-30 21:01:58 »

If you are going to avoid using a layout manager (not generally recommended) be careful to allow for the different sizes that components might have on different platforms.  If you force a specific look and feel you can avoid some of those issues.
In a game where you are going to control the look nearly 100% by overriding the paint method for buttons for instance, then it matters less.

Pages: [1]
  ignore  |  Print  

hadezbladez (2845 views)
2018-11-16 13:46:03

hadezbladez (1028 views)
2018-11-16 13:41:33

hadezbladez (2812 views)
2018-11-16 13:35:35

hadezbladez (551 views)
2018-11-16 13:32:03

EgonOlsen (3824 views)
2018-06-10 19:43:48

EgonOlsen (4237 views)
2018-06-10 19:43:44

EgonOlsen (2543 views)
2018-06-10 19:43:20

DesertCoockie (3355 views)
2018-05-13 18:23:11

nelsongames (3469 views)
2018-04-24 18:15:36

nelsongames (4467 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!