Wow too !Thank you for feedback and medals !The link's coming, but I just hope that after playing the game, you will say the same About the source code, I can post it, but I find it ugly with illogical things, it's structured for compression, not readability.

Abuse, about the aiming mode, I'm agree with you, the game would be easier with mouse control,but different, with only 5 levels it would take 2 minutes to finish it.The actual mode needs a bit of training, but if other people want a modification for this part, there's still time...

Oskuro, if problem only occurs with my game, perhaps shoud I try to fixe it...

Quickly, the lightning works on 3D raycasting through the voxelBox :The ray starts at light position and moves down, step by step, to each illuminated block, accumulating a shadow factor based on neighbors blocks along the ray, and finally adding a appoximated ambient occlusion factor.Initially, the first idea was to make it work with no idea if it will be speed enough, but finally, with a bit of optimisations (fixed int, rendering loop...) it works !

Sourcecode is coming soon, but I need to comment it more before posting it.

Wow... Amazing! I´ve recently been thinking about how to make a game like this and now you´ve done it. And it´s a 4k game?! If that´s not worth a medal I don´t know what is! Well done!!:D I´m reeeally looking forward to source for this one!

Oskuro, if problem only occurs with my game, perhaps shoud I try to fixe it...

Nah, it's a problem with the IcedTea plugin in my browser. When enabled, all pages that contain an applet kind of die, so don't worry about it

I've been tinkering with normal maps to get a similar effect on my project, but performance is very poor, hence why seeing yours work so well has me amazed. If I recall correctly, Notch's Left4kDead also used raycasting for its lighting. I'll have to look it up, maybe treat normal map pixels as voxels...

Amazing cool game! And very hard. So the trick with the aiming is to hold the firing control and then you can move sideways. But I still haven't been able to pass the first level! Will have to try some more. Not sure if it is too hard or not.

The voxel/lighting effects are beautiful. Quite something for 4K!My only grumble is the direction of fire, sometimes I really have to work hard to be firing in the right direction (especially when enemies appear beside or behind me) - couldn't I just fire the way I'm movng? I guess you've done it this way it is for a reason?

The sourcecode is now available on Java4K !!! I Hope it works fine and can help !

This style of game and the aiming mode is inspired by the game named Voxatron from Lexaloffle.But yes, it needs training. Perhaps the difficulty is also due to the speed of enemies ?

A little explanation on the rendering pass :The size of the voxelbox is 1024*29*1024, but the frustum fits in 168*29*168.Actually, there are not so much voxels in the lighting pass.The culling works like this : - For each 2D screen column (168) - Find all visible voxels for this column (2D raycasting through Y-- and Z++ axis for each row of this column) - Sort the result list back-bottom to front-top - for each voxel in the sorted list - If the voxel is in the light (distance to light) - Process lighting (illumination - shadow (3D raycasting) - ambient occlusion) - Render the voxel - If not do nothingThe rest is in the sourcecode

About the way of fitting all this in 4K, it was the job of a script applying :JARG + Proguard + pack200 + finding the best final gz between gzip and BJWFlate + DeflOpt (2 minutes each time I wanted to verify the result)

The published version has been compiled with JDK 1.7 and tested with JRE6 and JRE7, never had a null pointer exception during game, but it could happen !If you don't give me more explanations on how it happens, that will be difficult to fixe it So if you can post the stack trace, and some information about the context, it will be easier for me.Perhaps anyone else with this type of error ?

With the help of Groboclown and the post of ptj33 (here) and a research on the forum,I think I've fixed a possible and known (shame on me) null pointer exception on the getGraphics() of the Applet.I hope this will be better for some reluctant JVM.

java-gaming.org 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‑gaming.org