Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
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]
  ignore  |  Print  
  Radar 4K  (Read 3414 times)
0 Members and 1 Guest are viewing this topic.
Offline reardonj

Senior Newbie





« Posted 2005-12-06 03:05:46 »

Proper radar is implemented!

Hello folks,

I'm mostly a lurker around here, but I was bored over the weekend so I put together a game for the contest:

WebStart:http://www.myjavaserver.com/~reardonj/radar.jnlp
Executable Jar:http://www.myjavaserver.com/~reardonj/radarSmall.jar

No webpage up for it yet, so the controls are:
*right/left and up/down keys rotate counterclockwise/clockwise
*the Space Bar fires and detonates the missile
*the "C" key will "Clear"

Known Bugs and Limitations:
*The program will sometimes display a blank window and not respond
*Sound support is done using byte arrays and a SourceDataLine. It works on the Linux box I made this on, but neither of the Windows machines friends tested it on produced sound(feedback would be appreciated on this)

And a few notes: Friendly fire is enabled, detonating the missile right beside the base WILL kill you. The special enemies appear only after a certain amount of kills. No, clearing does not score you points.


I think that's all, enjoy!
Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #1 - Posted 2005-12-06 03:17:53 »

That's a good concept.  I got one beep at the start then no more  Huh.  Nice fading effects on the text and what not.  I didn't get very far, a blue swerving missile wiped me out.  Nice job!
Offline woogley
« Reply #2 - Posted 2005-12-06 03:48:41 »

cool idea! the effects are great, ran really smooth here.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #3 - Posted 2005-12-06 04:38:43 »

Sound doesn't seem to work right on Windows XP, JDK1.5. I hear a "blip" when it starts, but no sound after that. You may want to make sure that you're not underflowing the sound buffer. Alternatively, you can check if the stream is already started and start it if it isn't. Just make sure you don't overfill the buffer and block the process.

BTW, I love the concept. Smiley It would be even cooler if you made a sequel that worked like a real radar screen. i.e. The line keeps swirling around, and temporarily lights up each target as it runs over it. You could then control the direction of the fire independently from the radar, sometimes having to fire blindly. What do you say? Wink

Again, great work!

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #4 - Posted 2005-12-06 07:55:27 »

The SourceDataLine idea is interesting.  I've put together some sound support (in case I can fit in in to a game), but choose to use the Clip class instead.  However using SoundDataLine looks like it might use less library calls. Smiley

Time flies like a bird. Fruit flies like a banana.
Offline reardonj

Senior Newbie





« Reply #5 - Posted 2005-12-06 12:08:22 »

Sound doesn't seem to work right on Windows XP, JDK1.5. I hear a "blip" when it starts, but no sound after that. You may want to make sure that you're not underflowing the sound buffer. Alternatively, you can check if the stream is already started and start it if it isn't. Just make sure you don't overfill the buffer and block the process.
Ok, I tried changing a few things from your suggestions. A new version is up(and the difficulty is tweaked a bit too).
Quote
BTW, I love the concept. Smiley It would be even cooler if you made a sequel that worked like a real radar screen. i.e. The line keeps swirling around, and temporarily lights up each target as it runs over it. You could then control the direction of the fire independently from the radar, sometimes having to fire blindly. What do you say? Wink

Again, great work!
Thanks. I would have liked to have done that the first time around, but I'm short of bytes at the moment. If I can't get sound to work, I should be able to get that in. Otherwise, I'll have to try and optimize it sometime.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #6 - Posted 2005-12-06 13:05:50 »

Awesome look and feel Cheesy
Good work with transparency, giving it a smooth feeling. I love it! Smiley

EDIT: Agree with lilian's post below... that, and I'd like to see it getting more difficult a bit faster Cheesy

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #7 - Posted 2005-12-06 13:06:09 »

Interesting concept

it would be nice if there was a ky to trigger missiles, an another one to make them explode.

That way we could fire multi-missiles and explode them in FIFO.

That plus the true radar effect (only showing ennemies when the rotating bar "hits" them, and you'd have a really immersive 4k game.

my 2c

Lilian

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #8 - Posted 2005-12-06 16:58:45 »

Nice!  Works great on Mac.

Offline g666

Junior Member





« Reply #9 - Posted 2005-12-06 18:55:02 »

Fun. Sounds works fine for me on winXP jre 1.5

desperately seeking sanity
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline reardonj

Senior Newbie





« Reply #10 - Posted 2005-12-07 01:15:03 »

Ok, due to popular demand, a proper radar simulation is implemented! The difficulty has also been tweaked a bit.

Interesting concept

it would be nice if there was a ky to trigger missiles, an another one to make them explode.

That way we could fire multi-missiles and explode them in FIFO.

That plus the true radar effect (only showing ennemies when the rotating bar "hits" them, and you'd have a really immersive 4k game.

my 2c

Lilian

An interesting idea, if I can ever find enough bytes to do it in I'll give it a try.
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #11 - Posted 2005-12-07 03:11:34 »

Nicely done.  A lot of new concept games this year.

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #12 - Posted 2005-12-07 03:17:58 »

The sound works now! And the radar change is pretty cool too! Good job!

Still plenty of tweaking that can happen though (thus my suggestion for a sequel). Here's a few ideas:

1) Clockwise is a much more "natural" direction to spin the radar.
2) Use greens or near-white blues for the colors. This is not only more realistic, it allows for more brilliant colors.
3) The fade doesn't quite feel right. The blip should be brilliant for a few moments, then fade quickly.
4) We shouldn't see the blips moving after they are picked up on radar. Remember, the radar is only a snapshot. We need to wait for the next sampling to find the exact position.
5) Try for an explosion that lasts a little longer. Presumably, any explosion would emit enough RF radiation to be visible for at least a second or two. Missiles are only "visible" on the radar because they (also presumably) emit a transponder signal.

And last but not least:

6) Make the game screen a LOT bigger. My smallest monitor does 1024x768. I hate playing games in tiny windows. (That goes to all the other windowed 4K games as well.)

That's all I can think of at the moment. Did I mention that I really love the concept? Smiley

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Vorax

Senior Member


Projects: 1


System shutting down in 5..4..3...


« Reply #13 - Posted 2005-12-07 05:02:57 »

Great idea and well implemented.  I agree with jBanes's comments though.  As an extra effect (if you have the bytes) - when you die, you could crack the radar screen with a bit of procedural graphics - just a thought Smiley

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #14 - Posted 2005-12-07 07:07:13 »

oh by the way, it uses system.nanoTime() -> 1.5 only. That might exclude it from the contest...

Lilian

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #15 - Posted 2005-12-07 10:42:47 »

Great improvements, although I have to agree with jbanes. Keep working, great game Cheesy

Offline reardonj

Senior Newbie





« Reply #16 - Posted 2005-12-07 12:02:40 »

oh by the way, it uses system.nanoTime() -> 1.5 only. That might exclude it from the contest...

Lilian

Eek! Forgot that was new in 1.5. New version is up with that fixed along with what of JBanes ideas I could do in a half hour.
Pages: [1]
  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 (31 views)
2014-09-21 02:42:18

BurntPizza (22 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 (33 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 (103 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!