Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (797)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Block  (Read 8187 times)
0 Members and 1 Guest are viewing this topic.
Offline Drenius
« Posted 2013-07-06 22:13:43 »

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.

v 1.3

Offline gongalf
« Reply #1 - Posted 2013-07-11 09:20:32 »

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<Native Method> at java.util.xip.Inflater.inflateBytes<Unknown Source< at org.newdawn.slick.opengl.PNGDecoder.readChunkUnzip<>

I hope this help you  Cheesy

Offline Drenius
« Reply #2 - Posted 2013-07-11 17:03:14 »

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?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gongalf
« Reply #3 - Posted 2013-07-12 09:21:00 »

This is the error message:

And I get another one:

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 have the whole error saved in a log, if you want I could send you.

Offline Drenius
« Reply #4 - Posted 2013-07-12 16:04:03 »

"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" ?
Offline Sammidysam
« Reply #5 - Posted 2013-07-12 16:11:49 »

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)?
Offline Drenius
« Reply #6 - Posted 2013-07-12 23:40:00 »

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.
Offline gongalf
« Reply #7 - Posted 2013-07-18 09:33:31 »

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.

Offline Drenius
« Reply #8 - Posted 2013-07-18 15:35:25 »

Stuck? How?
Offline gongalf
« Reply #9 - Posted 2013-07-22 09:33:58 »

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.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #10 - Posted 2013-07-22 16:19:10 »

That isn't really a bug. Could change that, but don't see a real reason for it...
Should I?
Pages: [1]
  ignore  |  Print  

hadezbladez (3629 views)
2018-11-16 13:46:03

hadezbladez (1294 views)
2018-11-16 13:41:33

hadezbladez (3634 views)
2018-11-16 13:35:35

hadezbladez (697 views)
2018-11-16 13:32:03

EgonOlsen (4000 views)
2018-06-10 19:43:48

EgonOlsen (4528 views)
2018-06-10 19:43:44

EgonOlsen (2688 views)
2018-06-10 19:43:20

DesertCoockie (3549 views)
2018-05-13 18:23:11

nelsongames (3701 views)
2018-04-24 18:15:36

nelsongames (4726 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!