Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 2443 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!
Legends of Yore - The Casual Retro Roguelike
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.

 

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

The first screenshot will be displayed as a thumbnail.

pw (11 views)
2014-07-24 01:59:36

Riven (10 views)
2014-07-23 21:16:32

Riven (11 views)
2014-07-23 21:07:15

Riven (12 views)
2014-07-23 20:56:16

ctomni231 (42 views)
2014-07-18 06:55:21

Zero Volt (38 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (34 views)
2014-07-16 23:30:00

Cero (50 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!