Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (763)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (852)
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 7413 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  

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

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

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

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

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

nelsongames (1058 views)
2018-04-24 18:14:32

ivj94 (1637 views)
2018-03-24 14:47:39

ivj94 (562 views)
2018-03-24 14:46:31

ivj94 (1459 views)
2018-03-24 14:43:53

Solater (567 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!