News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Author Message

Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1

The mouse won't move the paddles unless the pointer is inside the window.
I tried ignoring at least the mouse X but found as soon as the paddle leaves the window, the program doesn't catch the mouse values.

I've set the ballspeedinc=0.2, it speeds up half as fast as last time.
Maxspeed is 9 now to match the keyboard. Keys 1 through 9 will set the current ball speed.
Q key will quit. Escape key should properly toggle Pause now. Added a single box of instruction for that.
The ball now changes colors on collisions.

Speed of the ball may have more to do with processor speed.
I should probably be using some increment multiplied by seconds passed
(or thousandths of a second passed) rather than absolute distances per cycle.

The ball should be the "bullet" character •, but yin-yang is cool to ;-).

Code and Fluid file updated in original post.

This post was last modified: 04-22-2010 05:00 AM by iGame3D.

04-22-2010 04:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
PONG - iGame3D - 04-21-2010, 10:37 PM
RE: PONG - mikshaw - 04-22-2010, 01:05 AM
RE: PONG - iGame3D - 04-22-2010 04:56 AM
RE: PONG - mikshaw - 04-22-2010, 06:26 AM
RE: PONG - jpjacobs - 04-22-2010, 08:26 AM
RE: PONG - iGame3D - 04-22-2010, 02:19 PM
RE: PONG - mikshaw - 04-22-2010, 03:08 PM
RE: PONG - jpjacobs - 04-22-2010, 03:25 PM
RE: PONG - iGame3D - 04-22-2010, 06:20 PM
RE: PONG - mikshaw - 04-23-2010, 06:04 AM
RE: PONG - iGame3D - 04-23-2010, 07:24 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: