Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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 2894 times)
0 Members and 1 Guest are viewing this topic.
Offline ahristov

Senior Devvie

Projects: 7

Java games rock!

« Posted 2007-01-13 17: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  :
Instructions :


Click to Play

Planetalia S.L. Cursos de Java
Offline nva225

Junior Devvie

« Reply #1 - Posted 2007-01-13 19: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 Devvie

Projects: 7

Java games rock!

« Reply #2 - Posted 2007-01-13 19: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!
Legends of Yore - The Casual Retro Roguelike
Offline toasten

Junior Devvie

« Reply #3 - Posted 2007-01-13 21: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 22:11:18 »

Thread.yield(), even

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

Senior Devvie

Projects: 7

Java games rock!

« Reply #5 - Posted 2007-01-14 09: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 12: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 Devvie

« Reply #7 - Posted 2007-01-14 17: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.

Coldstream24 (16 views)
2015-09-03 00:41:28

Andrew_3ds (25 views)
2015-09-01 19:08:10

afikri (17 views)
2015-08-31 09:30:22

afikri (25 views)
2015-08-31 09:30:07

afikri (13 views)
2015-08-31 09:27:24

afikri (16 views)
2015-08-31 09:26:40

Roquen (30 views)
2015-08-29 11:30:54

GamerC4 (36 views)
2015-08-22 20:38:50

GamerC4 (33 views)
2015-08-22 20:37:18

GamerC4 (40 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 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‑
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!