Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (116)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  WIP: SpringCombat  (Read 8424 times)
0 Members and 1 Guest are viewing this topic.
Offline krasse
« Posted 2011-03-06 10:32:55 »

I have started to work with my physics-based space combat game again.







Blog post

Here are some videos (most recent first):

Cool battle
Ship configuration and battle
Ship hull textures
Ramming test
Procedural ship hull tester

Planned features:
* Evolve you own ship (and friendly bot) by buying new segments, weapons etc.
* Generative/reactive music
* Procedural levels and ships

It is currently rendered using Java2D. My plan is to keep the renderer/sound/music separate so I can simply make LWJGL, GWT (webGL and pure canvas), Android variants as well. I will however make the first game an Applet/Java application with Java2D.

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #1 - Posted 2011-03-06 21:39:35 »

Looks nifty! Hard to tell exactly what is going on but that youtube reminds me a lot of what gish prototypes looked like (which is a good thing).

See my work:
OTC Software
Offline krasse
« Reply #2 - Posted 2011-03-07 05:18:48 »

Looks nifty! Hard to tell exactly what is going on but that youtube reminds me a lot of what gish prototypes looked like (which is a good thing).

Thanks! If this week's work turns out like planned, I'll have a much better video soon Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline krasse
« Reply #3 - Posted 2011-03-08 10:01:04 »

Here is a new video with some added visual effects and player control:

http://www.youtube.com/watch?v=jO2HHm0B524

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #4 - Posted 2011-03-08 18:31:27 »

Now the real question is: how are you going to draw all that so it doesn't look crappy? :-)

See my work:
OTC Software
Offline krasse
« Reply #5 - Posted 2011-03-08 20:29:39 »

Now the real question is: how are you going to draw all that so it doesn't look crappy? :-)

The Java2D renderer will probably always look crappy with its flat shaded, vector graphics stuff Smiley. It might look a bit better when I add backgrounds and make the obstacles more visually varied.
For the OpenGL renderer (LWJGL or WebGL), the plan is to use textures with normal maps for everything which will spice it up. I have a lot of particle effects/animations as well that I want to use for explosions, smoke etc.

Do you have any anti-crap hints for me when it comes to Java2D (and JS canvas) rendering?

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #6 - Posted 2011-03-08 22:54:06 »

Now the real question is: how are you going to draw all that so it doesn't look crappy? :-)

The Java2D renderer will probably always look crappy with its flat shaded, vector graphics stuff Smiley. It might look a bit better when I add backgrounds and make the obstacles more visually varied.
For the OpenGL renderer (LWJGL or WebGL), the plan is to use textures with normal maps for everything which will spice it up. I have a lot of particle effects/animations as well that I want to use for explosions, smoke etc.

Do you have any anti-crap hints for me when it comes to Java2D (and JS canvas) rendering?
There isn't much you can do with Java2D, I'm afraid. You can make gradient fills perhaps, and anti-alias lines, but textures are mostly out of the question as far as I know.

See my work:
OTC Software
Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2011-03-08 23:55:55 »

You can have an image wrapped around a shape.
Look into http://ra4king.is-a-geek.net/javadocs/java/awt/TexturePaint.html

It's not much, but it's the closest thing there is to textures.

Offline CommanderKeith
« Reply #8 - Posted 2011-03-09 01:36:52 »


There isn't much you can do with Java2D, I'm afraid. You can make gradient fills perhaps, and anti-alias lines, but textures are mostly out of the question as far as I know.

If by textures you mean images, Java2D is actually quite good. It can paint heaps of transformed images pretty quickly, so long as java2D lets the video card hardware accelerate, which it doesn't for many intel cards Sad

There's radial and linear gradient paints and they're also fast with hardware accel.

A tip: One problem with java2D is that you can't do soft-clipping or anti-aliasing of images, so if you paint a rotated image it will always have jaggies on the edges. One way to make it look better is to draw a rectangle around the edge of the image in feint grey or some other translucent color to make it look less jaggy.

Offline zammbi

JGO Coder


Medals: 4



« Reply #9 - Posted 2011-03-09 03:00:40 »

Quote
One problem with java2D is that you can't do soft-clipping or anti-aliasing of images, so if you paint a rotated image it will always have jaggies on the edges.
Well can do this but will be a performance hit of course.
http://weblogs.java.net/blog/campbell/archive/2007/03/java_2d_tricker.html

This is good back reading on scaling images:
http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

Current project - Rename and Sort
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline krasse
« Reply #10 - Posted 2011-03-09 07:17:42 »

Thanks for all the info!

I remember now that I tried some texture paint a couple of years ago but it was extremely slow on my machine so I forgot about it Smiley

Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #11 - Posted 2011-03-09 07:23:59 »

Well that was a couple years ago. Computers are now much more powerful. The demo on those websites ran instantly on my relatively crappy laptop. Grin

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #12 - Posted 2011-03-09 17:12:03 »

Nice, I didn't know you could do all that in Java2D. Cool.

See my work:
OTC Software
Offline krasse
« Reply #13 - Posted 2011-03-15 23:31:09 »

Added a video with some sound effects, procedural level generation, automatic path planning graph and a not so smart bot:

http://www.youtube.com/watch?v=dzosXl-VJkQ

The sound effects are played with the Gervill Midi player with some key-based tuning messages for doppler effects (currently not really working well).

Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #14 - Posted 2011-03-15 23:52:52 »

Holy crap how many classes do you have?!?

Offline krasse
« Reply #15 - Posted 2011-03-15 23:58:37 »

Holy crap how many classes do you have?!?

Far to many! Smiley

Offline loom_weaver

JGO Coder


Medals: 17



« Reply #16 - Posted 2011-03-16 00:10:35 »

I would differentiate the smoke from damage from ejector thrust.  Grey circles for the first and lines for the second.

Upon first glance, I thought I was seeing a top-down of Archie's jalopy as he was driving over to pickup Veronica.  Smiley
Offline krasse
« Reply #17 - Posted 2011-03-16 00:25:16 »

I would differentiate the smoke from damage from ejector thrust.  Grey circles for the first and lines for the second.

Upon first glance, I thought I was seeing a top-down of Archie's jalopy as he was driving over to pickup Veronica.  Smiley

Damage from ejector thrust? I had to google two times since I didn't know what Archie's jalopy was either Smiley

OpenGL will solve all the visual stuff for me eventually. In my vision I have a lot of nice looking cool explosions, weapons, backgrounds etc. that will hide the fact that it is extremely stupid to make a mass-spring based shmup Wink

Offline loom_weaver

JGO Coder


Medals: 17



« Reply #18 - Posted 2011-03-16 00:38:58 »

Heh, minus points to me for vague cultural references.

What I meant to say (and you figured out by now) is that the grey circle special effects for thrust looks more like billowing smoke and makes me think that the ship is heavily damaged (possibly on fire) and about to fall apart--like Archie's clunker.
Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #19 - Posted 2011-03-16 02:27:01 »

What I meant to say (and you figured out by now) is that the grey circle special effects for thrust looks more like billowing smoke and makes me think that the ship is heavily damaged (possibly on fire) and about to fall apart--like Archie's clunker.
Exactly my first impressions! It took me a while to realize that the grey circles are just special effects when you're moving Tongue

Offline krasse
« Reply #20 - Posted 2011-03-16 07:49:49 »

Heh, minus points to me for vague cultural references.

What I meant to say (and you figured out by now) is that the grey circle special effects for thrust looks more like billowing smoke and makes me think that the ship is heavily damaged (possibly on fire) and about to fall apart--like Archie's clunker.

I see what you mean Smiley. Thanks for pointing that out.

Offline krasse
« Reply #21 - Posted 2011-03-18 07:39:34 »

A first go at procedural ship hulls:



Larger image

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #22 - Posted 2011-03-20 15:39:35 »

A first go at procedural ship hulls:



Larger image


Nice! I love games that has procedural elements. It keeps it from getting boring and same-y, if it's done correctly Smiley
I think the ones that are only composed of (2 - 3) big ellipses are ugly.. They need more shape than boring ellipses Tongue

Offline krasse
« Reply #23 - Posted 2011-03-20 19:56:14 »

Nice! I love games that has procedural elements. It keeps it from getting boring and same-y, if it's done correctly Smiley
I think the ones that are only composed of (2 - 3) big ellipses are ugly.. They need more shape than boring ellipses Tongue

Yes, some are ugly Smiley

It is really interesting to see what can be done with different shapes. I want the friendly ships to be recognized by the shape grammar they use, for example more soft shapes or something else.

A future more tricky issue is to transform them to masses and springs while keeping them stable. Tesselation alone isn't enough Smiley

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #24 - Posted 2011-03-24 00:03:05 »

This is a very interesting project, I like your experimentation with the procedural ships, looks super cool!

See my work:
OTC Software
Offline krasse
« Reply #25 - Posted 2011-03-24 11:34:55 »

This is a very interesting project, I like your experimentation with the procedural ships, looks super cool!
Thanks!

Here are two videos that show some of the procedurally generated ships in action:

http://www.youtube.com/watch?v=15YVDE7Zvns
http://www.youtube.com/watch?v=V-h8sPUn3pw

The second one also demonstrates the generative music module.

Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #26 - Posted 2011-03-25 02:45:20 »

Pretty cool!! Did you use the generative and reactive music module thing? I remember seeing a thread a while back where someone showcased this amazing tool to procedurally create music.

Offline krasse
« Reply #27 - Posted 2011-03-25 06:38:48 »

Pretty cool!! Did you use the generative and reactive music module thing? I remember seeing a thread a while back where someone showcased this amazing tool to procedurally create music.

I used my own music module, but I have also showcased it on JGO so I could be that someone Smiley
Anyways, the following is a demo of the latest music module. It sounds a lot better now, but I am not satisfied yet:

http://www.youtube.com/watch?v=91YokdJ9jqo

The coolest parts are when the threat and intensity goes up and happyness down Smiley

Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #28 - Posted 2011-03-25 17:36:00 »

Oh it was you!
Found it: http://www.java-gaming.org/topics/generative-reactive-music-api-for-games/23674/view.html

Very impressive! I loved playing around with it. I'll most probably use it when I make a game that needs generic background music!

Offline krasse
« Reply #29 - Posted 2011-05-20 10:02:13 »

Here is a new video when I use my procedural ship hull tester:
http://www.youtube.com/watch?v=KG_XttiqNs0

The idea is that the player can evolve his/her ship and place weapons, rocket engines etc to be able to complete the levels. The interface will not be ugly like this though Smiley

Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

radar3301 (12 views)
2014-09-21 23:33:17

BurntPizza (30 views)
2014-09-21 02:42:18

BurntPizza (20 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (28 views)
2014-09-20 20:14:06

BurntPizza (32 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (102 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!