Hokuto no Rogue v0.4.1-prealpha

Hi everybody.
My name is Alessio and I’m from Italy.
I’m working on a graphical roguelike called Hokuto no Rogue. The game if set in the world of Hokuto no Ken (aka Fist of the North Star, Ken il Guerriero, Ken le Survivant). It’s written in pure Java and features special moves, music, graphics effects and allies.
I’ve used Golden T Game Engine
It’s my first game so don’t take it as an example of good game programming. ;D
The game is not complete but it’s already playable. It requires Java 6.

Download ver 0.4.1 prealpha

Game Trailer

Screenshot:

http://img201.imageshack.us/img201/3460/image6oh0ha2.th.png

Enjoy!
Bye.

Hi!

Alessio, your game seems quite good, I watched the video. I think I will test the game when I find some time to do it. It would be fine if you submit it both on the FGF players’ portal and on the JGT. Keep it up ;D I thought GTGE was dead, it is nice to see you did something good with it.

One more Java games. Java games programming rocks ;D Thanks.

I have tested it, it is fine. It would be easy to write a JNLP file to launch it as you already have a JAR. I like the GUI, the music and the atmosphere, the game play is addictive, I think that I will play with your game tomorrow again.

Thank you gouessej. ;D
Gtge is now open source: http://code.google.com/p/gtge/
In the next major release I’ll include a JNLP file.
Btw, I’ve fixed a bug on GO UP/GO DOWN action so I’ve released the 0.4.1 version.

I get this with the version 0.4.1:

[quote]java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
at java.awt.image.BufferedImage.(BufferedImage.java:321)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:537)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:521)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:171)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:186)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:927)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:550)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:73)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:998)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:178)
at sun.java2d.SunGraphics2D.copyImage(SunGraphics2D.java:2909)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3047)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3001)
at com.golden.gamedev.util.ImageUtil.splitImages(Unknown Source)
at com.golden.gamedev.util.ImageUtil.getImages(Unknown Source)
at hokutonorogue.game.Resources.(Resources.java:72)
at hokutonorogue.game.Resources.(Resources.java:28)
at hokutonorogue.character.IsometricCharacterSprite.createStaticImageStandardSize(IsometricCharacterSprite.java:69)
at hokutonorogue.character.IsometricCharacterSprite.createStaticImage(IsometricCharacterSprite.java:140)
at hokutonorogue.character.CharacterModel.buildStaticSprite(CharacterModel.java:1640)
at hokutonorogue.character.CustomCharacter._buildSprite(CustomCharacter.java:96)
at hokutonorogue.object.HokutoEntity.getSprite(HokutoEntity.java:69)
at hokutonorogue.object.EquipableHokutoObject.equipTo(EquipableHokutoObject.java:41)
at hokutonorogue.character.CharacterModel.equip(CharacterModel.java:1489)
at hokutonorogue.character.CustomCharacter.initCustomCharacter(CustomCharacter.java:54)
at hokutonorogue.character.CustomCharacter.(CustomCharacter.java:36)
at hokutonorogue.character.CustomCharacter.createRyuken(CustomCharacter.java:145)
at hokutonorogue.game.GameWorld.(GameWorld.java:45)
at hokutonorogue.game.MainGame.newGame(MainGame.java:204)
[/quote]

You have to start the game with HokutoNoRogue.bat, or HokutoNoRogue.exe. Do not double click HokutoNoRogue.jar. Or from command line try this:

javaw -jar -Xmx256M -Dsun.java2d.opengl=true HokutoNoRogue.jar

It works now, thanks but I need to use 512 MB.

Writing a JNLP file for your game seems quite straightforward, I can try to do it if you want. When do you plan to show us the next release? ;D

Well, i’m very busy right now so if you want to help me with jnlp i’d appreciate it very much. ;D

Ok I will try to do it before the end of the week.

I get this when I try to launch the JAR separately:

[quote]java.io.FileNotFoundException: options.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at hokutonorogue.game.HokutoNoRogue.loadOptions(HokutoNoRogue.java:147)
at hokutonorogue.game.HokutoNoRogue.(HokutoNoRogue.java:38)
at hokutonorogue.game.HokutoNoRogue.main(HokutoNoRogue.java:66)
[/quote]

Well, the error is clear. The problem to write a jnlp is that the game depends on files like options.properties and files in resources/. I think i have to modify the code to include and access resources inside the jar. I could also generate a default options.properties if not found.

I will add the folder resources/ and the file options.properties into the process of deployment and then it should work fine.

how do you do that? I am having that same problem in my game.

thx in advance :slight_smile:

this.getClass().getResource( myPrettyURL );

Watch the source code of TUER, I already load all the files inside the JAR.

It is the only solution as I haven’t found any way of loading the files in the folder “resources” with a JNLP file, I watched the JNLP tag reference and I can only load native libraries, JARs or packages. I don’t know if it can work with the markup and the markup .

I only watch the trailers and it look awesome, include video while fighting as you do, is a very good idea, good work (“Ken the survivor” was for a period one of my favorite cartoon :slight_smile: )