Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Tube Dreams 4K  (Read 1872 times)
0 Members and 2 Guests are viewing this topic.
Offline ahristov

Jr. Member
**

Posts: 54


Java games rock!


« on: 2007-01-13 12: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

Sr. Member
**

Posts: 298



« Reply #1 on: 2007-01-13 14: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

Jr. Member
**

Posts: 54


Java games rock!


« Reply #2 on: 2007-01-13 14: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! Go get 'em!
Offline toasten

Jr. Member
**

Posts: 56



« Reply #3 on: 2007-01-13 16: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

JGO Neuromancer
****

Posts: 1098
Medals: 5



« Reply #4 on: 2007-01-13 17:11:18 »

Thread.yield(), even

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

Jr. Member
**

Posts: 54


Java games rock!


« Reply #5 on: 2007-01-14 04: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

JGO n00b
*

Posts: 26



« Reply #6 on: 2007-01-14 07: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

Jr. Member
**

Posts: 56



« Reply #7 on: 2007-01-14 12: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]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.107 seconds with 21 queries.