Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Strangely addictive Tk::Zinc based game

by zentara (Archbishop)
on May 05, 2006 at 11:24 UTC ( #547620=note: print w/replies, xml ) Need Help??


in reply to Strangely addictive Tk::Zinc based game

I could only manage 5 seconds. :-) The ball really moved fast on my machine. My cpu usage never went above 5%. Maybe your high cpu usage has something to do with the amount of video card( and/or ram) you have? I have a 2Ghz Athlon, 1 gig ram, and 128 meg Radeon video card.

You probably could incorparate a variable delay, selectable by the user. If I set the delay up to 40, it was more fun. Maybe you could test the system somehow, by seeing how fast the ball moves during a delay period, and automagically set the initial delay. Then have the delay decrease as the game goes on?


I'm not really a human, but I play one on earth. flash japh
  • Comment on Re: Strangely addictive Tk::Zinc based game

Replies are listed 'Best First'.
Re^2: Strangely addictive Tk::Zinc based game
by wazoox (Prior) on May 05, 2006 at 11:59 UTC
    You're right, zentara! With a delay of 40, the game is much more playable and fun, and I kept the ball floating 36.41 s at the first try!
      For an extra challenge, try it left-handed. :-)

      I'm not really a human, but I play one on earth. flash japh
        But I'm left-handed :)
Re^2: Strangely addictive Tk::Zinc based game
by thundergnat (Deacon) on May 08, 2006 at 17:44 UTC

    Good point. It worked ok on both of my systems (2.2Gh Intel running Win2k and AMD 3500+ running WinXP/Ubuntu Linux) but it probably is a good idea to try to detect the system speed and adjust the delay accordingly.

    I have made some updates to the script to automatically detect the speed and derive all of the parameters from the delay value to make the gameplay comparible across a fairly wide delay range.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://547620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-05-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?