Block

Hi all,

This is a little block-based platformer I’ve made over the last month.
It has a simple level editor, so feel free to post levels :wink:
(stored at [appdatapath]/Block/levels)

There are still some minor bugs but the main part is done.

Download:
v 1.3

http://alluploads.al.funpic.de/public/block/game1.png

http://alluploads.al.funpic.de/public/block/editor1.png

Hi! I tried your game and I found some bugs. Some blocks blinking when I move the main character and when I press up key after climb a stair it trembles. Ah! And the game crashes at the first stage and throws this error:

Exception in thread “main” java.lang.OutOfMemoryError at java.util.xip.Inflater.inflateBytes at java.util.xip.Inflater.inflateBytes<Unknown Source< at org.newdawn.slick.opengl.PNGDecoder.readChunkUnzipPNGDecoder.java:884
.
.
.

I hope this help you :smiley:

ungh…
Removed the use of Slick everywhere except one point, so it should be easy to find that…
You can fix that blinking problem running the program with -Xmx1024M -Xms1024M
Thank you for feedback!

EDIT: Oh, and could you post the whole error message?

This is the error message:

And I get another one:

[i]Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J org.lwjgl.opengl.GL11.nglBindTexture(IIJ)V
J org.newdawn.slick.opengl.InternalTextureLoader.getTexture(Ljava/io/InputStream;Ljava/lang/String;IIIZ[I)Lorg/newdawn/slick/opengl/TextureImpl; J org.newdawn.slick.opengl.InternalTextureLoader.getTexture(Ljava/io/InputStream;Ljava/lang/String;ZI[I)Lorg/newdawn/slick/opengl/TextureImpl; J org.newdawn.slick.opengl.TextureLoader.getTexture(Ljava/lang/String;Ljava/io/InputStream;ZI)Lorg/newdawn/slick/opengl/Texture; J block.depiction.EntityDepiction.render(Ljava/util/ArrayList;)V J block.depiction.Game.render()V J block.depiction.Window.render()V j block.depiction.Window.runProgram()V+92 j block.depiction.Window.<init>()V+188 j block.depiction.Window.main([Ljava/lang/String;)V+3 v ~StubRoutines::call_stub[/i]

I have the whole error saved in a log, if you want I could send you.

“The crash happened outside the Java Virtual Machine in native code.”
That could be a problem…
Whatever, what did you mean by “the game crashes at the first stage” ?

It looks like your game is running out of memory on his machine as soon as it is run. Are you loading too many textures (make sure to check for loading textures each render)?

Should be fixed now…
Thought I removed all the points where the textures were always re-loaded, but there was still one at the entity depiction…

The character is also jumping a little bit now when leaving a ladder at the top, so it isn’t trembling so much anymore.

I run the game on a friend’s PC and it doesn’t crash. He tried the game and told me that it’s so hard controlling the character. And about stairs, the character doesn’t tremble now but it gets stuck when you walk over them.

Stuck? How?

When I’m walking over the floor and I try walking over the stairs (not climbing) I cannot cross them. I need to jump if I want to continue walking. Are you using physics? Because the problem seems to be that the stairs collision is below floor collision.

That isn’t really a bug. Could change that, but don’t see a real reason for it…
Should I?