LWJGL and Java 5.0rc

Just a curious question here:

First, some background - I’ve been starting some development and am SERIOUSLY considering using the LWJGL libraries for my game (I’m very impressed with you guys - good work!). However, since I’m just starting development, I wanted to use the Java 5.0rc development kit, since by the time I release this thing, I’m sure that’s what will be readily available to users.

Now, here’s the problem. I was looking at the space invaders demo at http://www.lwjgl.org/demos.php, and under the Java 1.4.2 runtime, it works fine, but under Java 5.0rc, the little ship just flies to the left and gets stuck. Is this a bug with Java 5.0rc? Or is there going to be some ongoing compatibility issues with Java 5.0rc and the LWJGL? I’d hate to write up this whole game just to have it break with the next version of Java.

I’ve no idea about the space invaders demo, but LWJGL is working great with JDK 5.0. I’ve been using it since the first beta, with no problems at all.

Actually, LWJGL is specifically designed for 5.0 (while being able to work on 1.4). One of the API decisions was to take advantage of 5.0’s static imports, so that you can do stuff like this:

GL11.glEnable(GL11.GL_TEXTURE_2D);
=>
glEnable(GL_TEXTURE_2D);

Have fun :wink:

I have been using varius 1.5 releases and haven’t had any problems… from where did you run the space invaders game?

From the following link off of the lwjgl.com demo page:

http://www.lwjgl.org/jnlp/lwjgl-demo.php/examples.spaceinvaders.Game

It’s always worked fine for me too under 1.5. Does Super Elvis work for you?

Cas :slight_smile:

Off topic, but just FYI, Cas, running on my laptop SuperElvis looks awesome… right up until the moment you fire a mushroom. It’s as smooth as hell until that point and then everything goes jerky and slow.

Plus part way into the first left I end up jammed along the left hand side of the screen – not sure if that’s intentional or not.

PS. Running 1.4.2_05 on Linux

Super Elvis runs great (fantastic game BTW). It’s just that space invaders game, under java 1.5 (but not 1.4.2), as soon as it starts, the little ship flys to the left and stays there. I can “pause” it from flying to the left by always holding down the right-cursor key. I’m just curious why it’s having problems with 1.5?

Hm… I wonder if Kev enabled the joystick in his space invaders thing?

JasonB - sorta baffling why it would suddenly go all slow firing a mushroom - it’s just another ordinary sprite. And being stuck in the edge is a longstanding bug I must get round to fixing…!

Cas :slight_smile:

Nope, no joystick in the Space Invaders stuff, its all Keyboard stuff.

Kev

The version on the lwjgl demo page has support for controllers, mouse and sound.

I just remembered, when I started it, the mouse was hideously slow on the menu screen as well.

I tried to give it another go, just to see if it was some odd aberration, but this time I can’t get the mouse to work at all on the menu page. In the end I have to kill the app. The only difference between now and when I ran it last time, was now I’ve got a USB mouse plugged in (which works normally).

Again, just FYI
J