Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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  
  Tube Dreams 4K  (Read 2098 times)
0 Members and 1 Guest are viewing this topic.
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Posted 2007-01-13 18:48:54 »

Hi there!

Here is my first entry to the 4K contest.... It's a remake of the old Pipe Dreams... Any suggestions and criticisms are welcome. It includes a micro sound effect (but if audio initialization fails it will proceed without using it), but I preferred to invest bytecodes in the game mechanics and visuals rather than in sound.

This is the first 4K program I wrote, ever, and I came upon quite a few surprises. I hope to improve with my next entries, which will be more action oriented :-)

Webstart  : http://www.ahristov.com/tubedreams/tubedreams.jnlp
Instructions : http://www.ahristov.com/tubedreams/

Screenshot:


Planetalia S.L. Cursos de Java
Offline nva225

Junior Member





« Reply #1 - Posted 2007-01-13 20:35:42 »

Err it tried to make me download java 1.5.0_08 to run it... why is this necessary? I have 1.6, should be backwards compatible...
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #2 - Posted 2007-01-13 20:44:56 »

Oopps.. Must have messed the JNLP file. Seems I wrote 1.5.0 instead of 1.5+. I'll fix it in a moment.

Planetalia S.L. Cursos de Java
Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline toasten

Junior Member





« Reply #3 - Posted 2007-01-13 22:48:47 »

Idea is fine, but u should really consider running it at less then "100%" CPU, as my PC got unusable when i played it.   Undecided
Something like Thread.sleep(1) should do.
Offline woogley
« Reply #4 - Posted 2007-01-13 23:11:18 »

Thread.yield(), even

nice game, I'm not quite smart enough though (I faulter under time pressure Wink)
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #5 - Posted 2007-01-14 10:51:02 »

Ok, fixed it, although I had to remove an effect because of the increased bytecode size :-(  I  don't notice any difference in the computers I'm trying it, though (it gets at most about 45% of CPU usage on WinXP + Java 5)... Could you please test it again now? It's currently yielding for 30ms on each game iteration.

Planetalia S.L. Cursos de Java
Offline nullterm

Senior Newbie





« Reply #6 - Posted 2007-01-14 13:51:17 »

It's still running at 50% on my machine WinXP.  Which means the thread is still running at full capacity given that my Pentium 4 has hyper-threading (dual hardware threads).

Maybe Thread.sleep(30); instead?

Cool game BTW.  My girlfriend suggested a pipedreams remake, but you already executed on it perfectly.
Offline toasten

Junior Member





« Reply #7 - Posted 2007-01-14 18:22:59 »

Still Running at 100% CPU, but the Rest of my PC is still usable, so it works  Smiley

Maybe you could save some bytes, when removing the "link"-Text at the Bottom of the game  Grin
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.115 seconds with 22 queries.