(J)BlueMax

Hi,

after asking a few questions at “Newless Clewbies” here’s a game from me. The idea is influenced from the old BlueMax at C64 therefore I called it JBlueMax. But it is only a side scroller. There are still some minor bugs, but I would like to get some comments about the game.

The zip-file can be downloaded here: www.ralf-bauer.org/java/BlueMax.zip.

There is also a JNLP-File but this don’t work properly (problem of my provider I think): www.ralf-bauer.org/java/BlueMax.jnlp
I also found a hint how to implement the jnlp-file into a php-file, but this also doesn’t work :frowning: . If somebody can tell we what’s wrong with it, check this www.ralf-bauer.org/java/BlueMax.php.

So, please try it. Any comment will be appreciated.

  1. If the server is running on Apache try creating a .htaccess file in the directory with the JNLP file. You may want to put other stuff in it (see various tutorials on the web), but definitely add the following:
  1. In PHP you get the can’t modify headers error if you have started to output the page before attempting to modify the headers. Even a carriage return in the file before the PHP tag will cause this. You have to start the file with the PHP and modify the headers as the first thing.

Best of luck

Alan

Tried it on OS X 10.4.1, Java 1.5:

It runs very slow.
When enemy planes drop bombs they often blow up on themselves.

But the main thing that made it not fun was the speed.

Nice, that was fun.

@swpalmer:

You’re the first reporting such a problem…

I have shown it to some friends for test uses and they reported no problems (but they’re all using Windows I think).
Could it be a problem of your processor speed? Which type of processor are you running? O

I had a similar problem when I tested in on my laptop running on batteries. As soon as I connected it to the electric network everything worked fine.
Maybe I have to work over the movement routines. I’m modifying the movement depending on the time flow but maybe I have to check this routine.

Thanks for the reply.

Worked fine here. Fun and nice (and ‘Flash-esque’) looking game.

I was testing on a 1GHz Powerbook. The Mac has been known to have issues with the speed of some graphics operations from Java… carefully choosing image types (make sure they are compatible with the native display) can help a great deal. I suspect that is the problem. Based on what I saw the game do, it seems it should be running faster on this machine.

Very nice, I quite like it.

Bill

I’m getting this error, which I assume means that this requires Java 1.5. However, usually I would expect to see some kind of major.minor version unsupported error. I’ll try installing 1.5 alongside my 1.4 and see about running it.

C:\Documents and Settings\jwatson\My Documents\BlueMax>java -cp BlueMax.jar BlueMax
Exception in thread “main” java.lang.NoSuchMethodError: java.lang.System.nanoTime()J
at org.ralfbauer.gamedev.sprite.MovingMaster.(MovingMaster.java:25)
at org.ralfbauer.gamedev.sprite.AnimSprite.(AnimSprite.java:25)
at Player.(Player.java:16)
at BlueMax.initializations(BlueMax.java:104)
at org.ralfbauer.gamedev.game.Game.initGame(Game.java:64)
at org.ralfbauer.gamedev.game.Game.(Game.java:60)
at BlueMax.(BlueMax.java:85)
at BlueMax.main(BlueMax.java:89)

Ok got it running with 1.5

I like the background & sky art. Very simple but quite nice.

The game is pretty hard :slight_smile:

Also, on two occasions I had the game lock up when I collided with another plane.

Good work!