Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (582)
games submitted by our members
Games in WIP (503)
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 3655 times)
0 Members and 1 Guest are viewing this topic.
Offline Gef
« Posted 2014-01-02 23: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="http://www.youtube.com/v/5dg7733toGs?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/5dg7733toGs?version=3&amp;hl=en_US&amp;start=</a>

Offline HeroesGraveDev

JGO Kernel


Medals: 214
Projects: 11
Exp: 2 years


If it wasn't Awesome, it wasn't me.


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

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

Well done.

Offline lcass
« Reply #2 - Posted 2014-01-02 23: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 Knight


Medals: 11
Projects: 5
Exp: 10 years


Java games rock!


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

Indeed very nice! has a Gauntlet feel to it which I think is a good thing Smiley
Offline Screem
« Reply #4 - Posted 2014-01-03 00: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 Coder


Medals: 35
Exp: 7-9 months


Damn maths.


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

__________
 Shocked Wow Shocked
¯¯¯¯¯¯¯¯¯¯

Why are all OpenGL tutorials written in Brainf**k?
Offline Gef
« Reply #6 - Posted 2014-01-03 17: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 01: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 Coder


Medals: 10


falling into the abyss of reality


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

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

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Oskuro

JGO Coder


Medals: 32
Exp: 6 years


Coding in Style


« Reply #9 - Posted 2014-01-05 02: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 12: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 Member


Medals: 7



« Reply #11 - Posted 2014-01-05 13: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 Coder


Medals: 32
Exp: 6 years


Coding in Style


« Reply #12 - Posted 2014-01-05 17: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

Senior Newbie


Medals: 1



« Reply #13 - Posted 2014-01-05 18: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.
Offline jonjava
« Reply #14 - Posted 2014-01-05 18: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 01: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 02: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 Member


Medals: 3
Projects: 1



« Reply #17 - Posted 2014-01-06 09: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 13: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 19:35:50 »

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

Offline toasten

Junior Member





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

Hi,

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

Hi,

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 20: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 05:38:20 »

Beautiful game there man  Pointing
Good job!

Check out Escaping Vox, a 3D
|\ _\  voxel based puzzler!
 \|_|
Offline Fel1x

Senior Newbie


Medals: 1



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

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

Senior Newbie


Medals: 1



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

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

Offline Fel1x

Senior Newbie


Medals: 1



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

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

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (72 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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
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!