Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (794)
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  
  In The Dark 4K  (Read 152934 times)
0 Members and 1 Guest are viewing this topic.
Offline Gef
« Posted 2014-01-02 22:00:31 »

Hi all,

My game for this year is the next chapter to Sorcerer4K.

     In The Dark 4K

Story and controls will be found on the Java4K detail page or on this post on my Tumblr.
I hope gameplay is a bit better than last year !?!

Feedback are welcome now the game is available  Wink

Here's a short video to show you the game.
<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

Offline HeroesGraveDev

JGO Kernel

Medals: 382
Projects: 11
Exp: 4 years

┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻

« Reply #1 - Posted 2014-01-02 22:02:12 »

I can't believe you managed to fit that into 4K.

Well done.

Offline lcass
« Reply #2 - Posted 2014-01-02 22:29:22 »

I love it, brilliant graphics for such a small file
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline moogie

JGO Ninja

Medals: 16
Projects: 6
Exp: 10 years

Java games rock!

« Reply #3 - Posted 2014-01-02 22:55:03 »

Indeed very nice! has a Gauntlet feel to it which I think is a good thing Smiley

Java4k RIP 2014
Offline Screem
« Reply #4 - Posted 2014-01-02 23:47:47 »

Amazing! It looks very detailed and "complete" for a 4K game.

Will you release the source code? I'm curious how you're rendering, calculating lighting, particle effects, and collisions all under 4K.
Offline Troubleshoots

JGO Knight

Medals: 36
Exp: 7-9 months

Damn maths.

« Reply #5 - Posted 2014-01-03 13:48:18 »

 Shocked Wow Shocked

Why are all OpenGL tutorials written in Brainf**k?
Offline Gef
« Reply #6 - Posted 2014-01-03 16:41:09 »

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 Wink
About the source code, I can post it, but I find it ugly with illogical things, it's structured for compression, not readability.

Offline Gef
« Reply #7 - Posted 2014-01-04 00:25:44 »

Ok, now game is available, so real verdict !
I've updated the first post and I hope it will work fine for everyone, because the game is a bit cpu expensive Tongue

Offline Abuse

JGO Ninja

Medals: 71

falling into the abyss of reality

« Reply #8 - Posted 2014-01-04 01:10:11 »

Very impressive, though I can't help thinking free look/aim with the mouse would make it a lot more playable.
Offline Oskuro

JGO Ninja

Medals: 77
Exp: 10 years

Coding in Style

« Reply #9 - Posted 2014-01-05 01:03:56 »

Agh! IcedTea is not letting me play the game! I need to know how you make those light effects in 4K!  Grin

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Gef
« Reply #10 - Posted 2014-01-05 11:51:37 »

Thanks for playing (and trying to Wink) it !

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... Cool

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.

Offline Axeman

Senior Devvie

Medals: 7

« Reply #11 - Posted 2014-01-05 12:40:00 »

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!
Offline Oskuro

JGO Ninja

Medals: 77
Exp: 10 years

Coding in Style

« Reply #12 - Posted 2014-01-05 16:55:36 »

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 Smiley

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...

Offline Harm

Junior Devvie

Medals: 1
Projects: 1

« Reply #13 - Posted 2014-01-05 17:46:40 »

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! Cheesy Will have to try some more. Not sure if it is too hard or not.
Online jonjava
« Reply #14 - Posted 2014-01-05 17:56:26 »

This is why I love java4k. That looks spectacularly breathtaking for a 4k game.

Offline enaiel

Senior Newbie

Projects: 1

What, me worry?

« Reply #15 - Posted 2014-01-06 00:58:32 »

I loved Sorcerer4K and I love this game even more. Simply brilliant!

"Java’s not worth building in. Nobody uses Java anymore. It’s this big heavyweight ball and chain." - Steve Jobs
Offline SimonH
« Reply #16 - Posted 2014-01-06 01:35:44 »

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?

Very impressive though! How many voxels are you juggling?

People make games and games make people
Offline seismic

Senior Devvie

Medals: 4
Projects: 1

« Reply #17 - Posted 2014-01-06 08:43:22 »

Awesome. No idea how you fit that into 4k lol. Waiting for the sauce code Cheesy
Offline Gef
« Reply #18 - Posted 2014-01-06 12:16:55 »

Thanks again  Grin

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 nothing
The rest is in the sourcecode Cool

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) Wink

Et voilà !

Offline Gef
« Reply #19 - Posted 2014-01-07 18:35:50 »

The speed of enemies has been reduced a little.
I hope it's easier and more playable now.

Offline toasten

Junior Devvie

« Reply #20 - Posted 2014-01-08 15:44:49 »


getting a Nullpointer with Java 1.7 at the moment.
Offline Gef
« Reply #21 - Posted 2014-01-08 18:43:10 »


getting a Nullpointer with Java 1.7 at the moment.
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 Grin
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 ?

Offline Gef
« Reply #22 - Posted 2014-01-13 19:30:45 »

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.

Offline Slyth2727
« Reply #23 - Posted 2014-02-01 04:38:20 »

Beautiful game there man  Pointing
Good job!
Offline Fel1x

Junior Devvie

Medals: 1
Projects: 1

« Reply #24 - Posted 2014-02-01 20:44:16 »

Great graphics!
I like the story connection to your former game.
Offline Fel1x

Junior Devvie

Medals: 1
Projects: 1

« Reply #25 - Posted 2014-02-01 21:00:32 »

I cannot find the “appreciate”-button.
Thus, I give you this medal  Grin

Offline Fel1x

Junior Devvie

Medals: 1
Projects: 1

« Reply #26 - Posted 2014-02-01 21:12:17 »

Hey, the button suddenly appear. I will give it a try...
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

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

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

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

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

nelsongames (4602 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!