BernardMapDemo (platformer demo)

Hello I would like to announce a platformer demo called: BernardMapDemo.

http://gouwevrouwe.nl/java/thumbs/bernardmapdemo.png

It’s just one level of gameplay from the game Bernard&Hank for windows. I started porting it to the gba, but when I lost my printerport and couldn’t send little demos to my gba anymore I stopped working on it. In March I picked up this project again and created this java version from it.

The demo has one level for Bernard (the main character) to walk through. LEFT or RIGHT makes him move to the left or right, Z is used to let him jump and X is used to shoot a bullet. You can shoot liberals (the enemies) or jump on them and you can collect coins for your own fun.

The demo has a resolution of 240x160 just like the gba has, so be prepared for
a small game window. You need at least Java Runtime Environment 1.5 to be able
to run this demo. It’s packaged as a jar file so you need to download this little (84 kb) jar file first.

http://gouwevrouwe.nl/java/files/BernardMapDemo.jar

This engine will be a starting point for a new platformer type game in java, which will be based on an unfinished and never published old one from me.

This demo is released under the New BSD License, more technically the engine only since the data files are copyrighted by Hayo and me. Inside the jar file the readme, full license details and source code for this demo can be found.

I hope you like it.
Jenswa

Hi!

I’m going to give it a try but it would be better to use Java Web Start instead of a direct link to a JAR.

Edit.: ok it works fine, good job. I have no sound on my machine (no loud speakers), then you should not try to play any sound:

[quote]javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 11025.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:539)
at com.sun.media.sound.DirectAudioDevice$DirectClip.implOpen(DirectAudioDevice.java:1338)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:124)
at com.sun.media.sound.DirectAudioDevice$DirectClip.open(DirectAudioDevice.java:1118)
at com.sun.media.sound.DirectAudioDevice$DirectClip.open(DirectAudioDevice.java:1208)
at SoundManager.playSample(SoundManager.java:79)
at BernardMapDemo.doGameLogic(BernardMapDemo.java:438)
at BernardMapDemo.gameplay(BernardMapDemo.java:740)
at BernardMapDemo.go(BernardMapDemo.java:773)
at BernardMapDemo.main(BernardMapDemo.java:787)
[/quote]

It runs too fast on my machine. You might want to try and limit the framerate. Otherwise it worked very well.

Runs too fast!

Goes to show if java is limited in speed by a small amount sometimes you dont even notice.

Runs too fast here too. I’m guessing the most likely cause of this is that your using System.currentTimeMillis(). You should switch your timing to use System.nanoTime() instead as it is much more reliable across platforms where as System.currentTimeMillis() is not.

Game looks very nice and polished though.

Hi guys, thanks for trying and the feedback.

@gouessej
I will try to add a soundcheck in the next version of this work, I hadn’t thought of people who have no sound at all. And I am reading the java webstart guide while typing my reply.

@CaptainJester, rouncer, kapta
Actually I am using System.nanoTime() to limit the fps and I am targetting 60 frames per second. The game displays the framerate in the title between the brackets.

And the movement from the character is indeed too fast, I should slow it down in next versions.

Thanks a lot for your input and kind comments.