Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 9
1  Games Center / 4K Game Competition - 2007 / Re: Judging on: 2006-09-27 01:07:08
people, take a chill pill  Cool

This is the 4k  competition...  It is meant to be fun making them... all this bickering about how it is to be scored seems silly...

The way i see it, the competition is to attempt to create a game in 4k, i.e. the competition is your skills vs that 4096 byte barrier!
Gaming is such a subjective thing that I would not hesitate to say that there is no "best" game that is produced.

I definetly do not go into the competition to "win" I go into the competition for the challenge and to see what my "best" can produce. If other people like my game then that is nice, but not a large motivator for me.

Well said =)
2  Games Center / 4K Game Competition - 2007 / Re: The J4K Legacy on: 2006-09-26 23:20:46
Was there from the beginning - 3rd post, 3rd post, and 2nd post in each years Thread =)

Only competed in the 1st & 2nd years though - maybe i'll make a return this year!
Have so many ideas.... just need the time (and conviction) to see them through.
I wish programming wasn't my job - I'd enjoy these competitions so much more! =/
3  Game Development / Game Play & Game Design / Re: In-Game UI + Drag? on: 2006-09-23 12:50:19
You can use lightweight Swing components independently of the heavy weight AWT framework, it just takes abit of fiddling.

However, Swing rendering was never written with efficiency in mind - it tends not to be such a bottleneck when you have a passive (dirty) repaint system.
If you used them in an actively rendered game, you may find them to be too inefficient.
4  Game Development / Game Play & Game Design / Re: I don't use an "elapsed time" for enemy/player movement. it's an error? on: 2006-09-22 12:24:02
Depends on whether you want fixed or variable time steps.
Each is suitable for different types of games.

There is no harm in giving your interfaces the capability of variable time steps, but having the implementation support only a fixed time step.
5  Java Game APIs & Engines / J2ME / Re: eclipse detail formatters when debugging in a WTK? on: 2006-09-20 18:09:37
Has no-one else come across this enormous limitation of the WTK?!?!?
6  Games Center / Archived Projects / Re: SOAR Implementation demo (landscape rendering) on: 2006-09-20 12:28:00
bah, this machine @ work has a sucky gfx card. (Radeon 9200 by the looks of it)

Number of strips : 1
vertices : 162/574/126/320
Exception in thread "Thread-10" Method "glGenFramebuffersEXT" not available
   at com.sun.opengl.util.Animator.display(
   at com.sun.opengl.util.Animator$
   at Source)
Caused by: Method "glGenFramebuffersEXT" not available
   at com.sun.opengl.impl.GLImpl.glGenFramebuffersEXT(
   at dae.util.FrameBufferObject.<init>(Unknown Source)
   at dae.readers.max.gui.JWorldViewer.initReflection(Unknown Source)
   at dae.readers.max.gui.JWorldViewer.init(Unknown Source)
   at com.sun.opengl.impl.GLDrawableHelper.init(
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at Source)
7  Java Game APIs & Engines / Java 2D / Re: I want to create a mirror of the image on: 2006-09-18 09:10:42
Fix the logic in your game? Grin

tbh unless you plan on posting all your games code (please don't!), I can't see that we can give you much help.

You appear to understand (or have found some reference materal that explains) how to use AffineTransform.
You simply need to adapt the rendering code so it works with your game logic.
8  Discussions / Miscellaneous Topics / Re: Simple regex help on: 2006-09-18 00:15:46
Someone needs to devise a verbose regex syntax.

The logic behind construction of an expression is fundamentally less complex than programming, only the obtuse syntax scares people off (and rightly so IMO).
Give me an eclipse GUI plugin for building & maintaining them, and I might use them for more than trivial string spliting.
9  Game Development / Newbie & Debugging Questions / Re: Runtime.exec() problem on: 2006-09-12 18:28:29
One of the few instances where a second VM is needed, would be a configuration dialog, where you choose which java2d properties you want set.
10  Java Game APIs & Engines / J2ME / eclipse detail formatters when debugging in a WTK? on: 2006-09-12 14:18:19
Has anyone managed to get the eclipse "detail formatter" working when debugging a midlet in the WTK?
I simply receive a "java.lang.UnsupportedOperationException occurred invoking method." when eclipse tries to evaluate an Object type.

I've tried overriding the default detail formatter behaviour of calling "toString()", but it seems as though having any kind of statement in the detail formatter, that requires access to runtime will cause it to fail.

In addition to this, there are several problems with conditional break points.

1) Conditional break points cannot contain references to named constant values. (e.g. public static final int CHEESE = -1;)
If they do, an "Exception processing async thread queue java.lang.UnsupportedOperationException" will occur when the break point is encountered.

2) If you break midlet execution,
setup a conditional break point,
disable the conditional break point,
resume the emulator,
re-enable the conditional break point.
Eclipse will lose its connection with the emulator, resulting in the emulator hanging (presumably awaiting a response from eclipse)

Can anyone offer work-arounds for any of these limitations in the WTK emulator?

The only solution I can think of, is to completely throw out the WTK, and replace it with a few sets of midp libraries that are built upon J2SE, and run within a standard J2SE VM.
As the additional features offered by the WTK are all but useless anyway, I think such a solution would stream-line development enormously.
I'm amazed there isn't an open-source project that has attempted this already???
11  Java Game APIs & Engines / Java 2D / Re: How to grab mouse cursor? on: 2006-09-11 22:21:18
As the javadoc describes, "if this parameter is null  then this component will inherit the cursor of its parent"
If it is a top-level Component, I believe it uses the system cursor.

Animating the cursor via repeated setCursor calls may not work well on all systems - though I must confess I havn't tried it.
12  Game Development / Newbie & Debugging Questions / Re: How to detect up-left keypress? on: 2006-09-11 21:47:32
LooL  !!!  Smiley
You can post your code and I'll tell you what is wrong. The main thing is that the variable code (int code = key.getKeyCode()Wink can remeber only one value. So when you press a new button code it will change into the code of the last button pressed and it won't remember that you are still holding down the previous keys. When you use the boolean variables you don't change the up value into false because you just pressed left.
I hope you understood ! I'm not sure I would understand what I wrote:)

That is not the reason at all.

The line "int code = key.getKeyCode();" in the first code example is storing the key code in a local variable. Even if pressing a second key caused a 2nd thread to simultaneously deliver another KeyEvent (which for the record - NO common VM does), it would still function fine.

To the original question.

Are you using Linux or Windows?
KeyEvent delivery is bugged in Linux - and have been for the best part of 10 years.
In Windows, you recieve the following sequence of events :-

<key is pressed down>
<key is released>

In Linux, you recieve :-

<key is pressed down>
<key is released>

If that isn't the cause of your problem, then I can only guess it is something else wrong in your code.
may I suggest you use a switch statement instead of dozens of if/else's. It will improve the readability of your code.
13  Discussions / General Discussions / Re: Java Kernel - 2.5MB VM ? on: 2006-09-09 18:56:22
Coz I've deleted every bit of the JRE I can do without before I 7zipped it Wink

Cas Smiley

If you are after the best compression ratio possible, you might be interested in trying Kzip.
In the field of j2me games, it reliably obtains roughly 1% better compression than 7zip.

This is ofcourse assuming you are using the conventional zip format, not the 7zip proprietary format; which I assume is the case, if you are distributing via webstart.

Incidentally, is there a technical reason you are not taking advantage of pack200? (for clients that support it)
14  Java Game APIs & Engines / J2ME / Re: Motorola SDKs on: 2006-09-07 18:41:34
I've yet to get any versions of the Moto emulator working through eclipseME, dispite what the website claims =(

I'd just stick with the WTK, as the moto emulator is little more than a reskin; It doesn't attempt to model any of the device issues you will encounter when putting it on a physical handset.
15  Java Game APIs & Engines / Java 2D / Re: clip an image on: 2006-09-04 19:11:01
Why can't these methods be implemented just by doing what you describe - creating a new bufferedimage, copy/scale the stuff and return it?

Because of backward compatibility.

Currently both parent image and subimage share single data buffer.
So any changes you make to any of them is reflected in another.
If we do what you suggest this will be broken.


Thats an interesting bit of info!
getScaledInstance makes no mention of it sharing the parent images data buffer!

It'd be nice for the javadoc to :-
a) document all the methods behaviour, and
b) be marked as deprecated regardless.
16  Java Game APIs & Engines / Java 2D / Re: OpenGL on Windows with a ATI Card on: 2006-08-21 21:05:23
oh, i thought opengl pipeline causes crashes with radeon series ! I read that on a lot of forums. I have an application which runs with the opengl pipeline enabled, it works fine for me (i have a nvidia card) and it doesn't work for a friend (he has an ati card).
So, i don't understand  Sad

A driver update might help, but I too have found the OGL pipeline to be extremely flakey on ATI cards - even with the latest drivers.
17  Discussions / General Discussions / Re: Java .class files safe? on: 2006-08-03 20:45:06
And it just aint that hard to find the test condition for your security in assembled binary and NOP it.

It really isnt....

...that simple.
18  Java Game APIs & Engines / Tools Discussion / Re: Installing eclipse on a flash drive? on: 2006-08-03 11:38:52
have you tried subversive ?

hmm, I havn't but the name seems familiar - perhaps someone else in the office gave it a try.

I'll have a look all the same, cheers.
19  Java Game APIs & Engines / Tools Discussion / Re: Eclipse 3.2 where did my console go? on: 2006-08-03 00:29:02
The problem was that no output was written even though I had a console view. But after switching workspace, and switching back it magically works again Smiley.

I've had that happen several times - and i'm still using 3.1 =)

I'm not sure of the circumstances to replicate it, but I think it only happens the first time you run something that generates output - as if eclipse is failing to correctly capture the console pipe.
20  Java Game APIs & Engines / Tools Discussion / Re: Installing eclipse on a flash drive? on: 2006-08-03 00:24:02
While we're vaguely on the topic ...

At work, we migrated our CVS repository over to SVN without doing sufficient background research into the quality of SVN clients, and have on occasion been handicapped by the short-comings of various SVN clients.

The 2 we use are subclipse (for eclipse projects), and tortoiseSVN (when subclipse breaks).
We end up resorting to tortoise all too often, due to the many bugs in subclipse. This is extremely frustrating having previously used the eclipse CVS plugin - an absolute joy to use, a wonderful piece of software.
Subclipse can on occasion also be painfully slow; especially on machines with slow hard-drives;
it appears to thrash the disc alot more than any CVS client ever did. (the dreaded "Updating SVNStatusSubscriber")

On several occasions we've also come across a fairly serious SVN server-side bug when performing merges between 2 branches involving files that have been deleted, and then recreated.

So - rant over - to my intended question

What SVN client do you all use?
How heavily do you use them?
and do you find them to be frustratingly buggy also?

Version control software is the last place you want bugs to appear,
From my experience, I struggle to recommend SVN over CVS - especially if you are an eclipse user on a mid-range PC.
21  Java Game APIs & Engines / Tools Discussion / Re: Java IDE on: 2006-08-02 13:23:24
And the way it compiles, i dont like...

Does JBuilder not have a background compiler???
I thought that was an absolutely pivotal feature of any advanced IDE;
otherwise, you lose all kinds of life/time-saving features (code navigation, refactoring, automated code generation, typed searching, heirarchy visualizing etc etc etc)
22  Game Development / Newbie & Debugging Questions / Re: Mac's Command-Q effect on Java? on: 2006-08-01 08:40:05
No, not at all.

End Task in task manager forcibly shuts down the process on Windows.  Your application doesn't get a chance to do anything, as far as I know.

'End Process' has the behaviour you describe there.

'End Task' appears to behaviour in a near identical fashion to Command+Q.
I assume it sends a message with the meaning of "please terminate the application soon", because if the application is still active in 5 seconds time the OS assumes it has stopped responding and pops up its own dialog querying whether you wish to forceably terminate the application.

I was completely unaware of the Mac's standardized mechanism for displaying certain menu items; it is interesting that Swing hasn't yet addressed this limitation.
A great reason to design applications so they are sufficiently intuitive to not require menu bars! =)
23  Game Development / Newbie & Debugging Questions / Re: Mac's Command-Q effect on Java? on: 2006-07-31 12:25:49
By the sound of it, Command+Q is equivalent to clicking "End Task" in task manager?

If that is the case, unless you specifically want to remap or disable the functionality of Command+Q, should the shutdown code not be performed using the platform independant mechanism exposed through shutdown hooks?
java.lang.Runtime.getRuntime().addShutdownHook(new Thread(new CustomCleanerupper()));
24  Game Development / Newbie & Debugging Questions / Re: Enemy movement on: 2006-07-31 12:16:52
hmm, you're gonna need to add little ai to your ghosts, like that they don't turn in way they came from and that they mostly move towards player (or if they see him in the distance). But first I suggest you try just random movement at intersection, equal chance of going all ways.

For all random, I would do it something like this, pseudo:
up = 0; down = 1; left = 2; right = 3;
can_move[up] = can he move up? true : false;
can_move[down] = can he move up? true : false;
can_move[left] = can he move up? true : false;
can_move[right] = can he move up? true : false;
deceided = false
while(!deceided) {
    direction = (int) math.random() * 4;
    if (can_move[direction])
        deceided = true;

Bad bad code.

If he cannot move in any direction, your game locks up in an infinite loop.
25  Game Development / Game Mechanics / Re: Efficient (fast & small) way to store/handle typically big amounts of data? on: 2006-07-30 18:15:35
You are asking on a gaming forum about state-of-the-art modelling techniques?
26  Java Game APIs & Engines / J2ME / Re: How do you ensure portability? on: 2006-07-29 11:29:54
This is what I'm trying to do with my Platform libraries - you write your game to the Platform API, then link with the Applet lib for a web game, the Nokia series 60v1 for s60 midp1, s60v2 for midp2, the vodafone lib for sharp gx's, and so on.

I then distribute the game, and as part of that process it gets tested in an operator lab so we're sure it works on all handsets prior to release.

The only drawback is only the very best games will get published, as there's so much mediocre stuff out there already.

I suppose I should get round to writing a proper thread about this =)

The overhead of an abstraction layer is significant, you will need a strategy to reduce this overhead to a bare minimum for a portable development framework to be practical.
There are 2 paths such a strategy can take; heavy use of a pre-processor; or byte code engineering.
The choice depends on your available toolset and the development tools you rely on.
27  Java Game APIs & Engines / J2ME / Spread the knowledge... in a fun way! on: 2006-07-28 22:03:53
Conventional compatability testing will give you a list of buggy methods for a particular device.

Now with the awful quality of J2ME API implementations, I have begun to think this is the wrong way around.
It would be easier to list the API methods, and against it list the handsets on which the method is faulty.

For a little fun (and also a little education!), I propose we begin a Thread to achieve this.
One person will state an api method (fully qualified!) ,
and others *race* to respond with a device on which said method behaves incorrectly. (and how it behaves incorrectly)
The first to respond gets to select the next method! =)

So, what do you all think? =)

If someone is willing to select a method to kick us off?

For the sake of fair-play; lets keep the API set to just the major ones, say :-

midp1, cldc1, midp2, cldc1.1, jsr135, jsr184, samsung, nokia, motorola, siemens, benq(o2x2/midp2 hybrid), sprint, vodafone, jphone, mascot, (any important API's i've forgotten?)
28  Java Game APIs & Engines / J2ME / Re: How do you ensure portability? on: 2006-07-28 21:42:54
Hello. It's been ages since I've been on these forums.  Grin

Anyway, I had a bit of fun with J2ME and MIDP 2.0 trying to develop a simple game.
The main reason I liked it was because it introduces you to basic game
techniques but is also relatively simple to use.

What I would like to know is, how do you make sure your game is compatible
across all mobile phones that run J2ME? I've heard that professional
game developers have to compile about 200 versions of any one game.

So I guess my question is, as a bedroom coder, is it possible to make a
fairly compatible game without buying 200 phones to test them on?  Shocked
Can it be done with software emulators? How do people with tight
or non-existent development budgets make their games compatible?



Basically, you can't.

The best you can hope for is to sell your idea/prototype game to a larger company to develop.

The fragmentation in the market is horrendous, the resources needed to get even a fairly trivial game available on a sufficient number of handsets for one of the carriers to consider putting it on their decks is tremendous.

The subset of midp/cldc that you can rely on as functioning correctly across all handsets is non-existant, I don't think there is a single method in the entire API that hasn't been incorrectly implemented in atleast one handset.

That would be an interesting Thread actually Wink
29  Discussions / Miscellaneous Topics / Re: grr... insect in my LCD on: 2006-07-28 21:38:18
omg, I've got one too!

It looks exactly like the one in the screenshot  Angry


hmm its gone now - to where I have no idea; but its given me a fantastic idea for abit of low level trickery Smiley
Synthetic TFT creepy crawlies.

If virus writers were that constructive in what they disseminated I might hold them in a higher regard.
30  Java Game APIs & Engines / J2ME / Re: TiledLayer & blit performance on: 2006-07-24 22:04:29
Depends on the handset, and whether you intend to support flipping in your tileset.

You should definitely implement a layer of abstraction, so you can render through various APIs (and various mechanisms within said APIs) without having to rewrite any core game code.

A few notes you will find useful :-


1) drawPixels on Nokia Series 40's is approx. 3 times faster than drawImage. (though I believe it is due to the implementation of drawImage having its performance dependant upon the size of the source image).
2) drawPixels is broken on Platform 2 series 40's. (it doesn't honour clip areas correctly, and under certain cirumstances will blow up with an AIOOBException)
3) storing your images in raw 4444 pixel format in the jar will result in the images consuming ~10-15% more jar space.
4) drawRegion leaks lots of memory very quickly on midp2 S60's.


1) drawRegion is inconsistently buggy across the many different handsets. The general rule is that, only mirroring, flipping and both together work. Though each handset appears to be broken in different ways.
For example, the Samsung D500 can do all 8 transforms - so long as the region of the source image being drawn (in the target coordinate system) does not extend beyond 176 in either X or Y axis'. (co-incidence the screenWidth is 176? I think not...)
The Samsung D600 breaks in a completely different fashion, if the target area of the drawRegion intersects any screen edge, and the transform being performed is a rotation, the source image will become corrupted, and garbage will be drawn to the screen.

The list goes on and on, it is comical how pathetic the phone manufacturers are at implementing a trivially straight-forward API such as midp2.
I realy think Sun need to get their arses in gear, and enforce some kind of quality control on JVM implementations that *claim* to support a certain API - when they clearly don't.

The most reliable, most consistent, and best performing midp implementations are easily SonyEricsson.
The high-end Sharp handsets (902SH and similars) are also very good, which is odd after the early handsets were so poo.
Pages: [1] 2 3 ... 9
EgonOlsen (78 views)
2018-06-10 19:43:48

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

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

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

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

nelsongames (157 views)
2018-04-24 18:14:32

ivj94 (898 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (811 views)
2018-03-24 14:43:53

Solater (175 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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 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!