No such thing as a small change | |
PerlMonks |
Re: pong paddles are not going equally fastby bliako (Monsignor) |
on Jul 23, 2020 at 08:10 UTC ( [id://11119700]=note: print w/replies, xml ) | Need Help?? |
New paddle position also depends on $step which is the time slice. When you press UP-arrow this checks only the 1st condition. When you press DOWN-arrow it checks both conditions. Could that be affecting $step? Ideally no but try print $step and see.
bw, bliako
In Section
Seekers of Perl Wisdom
|
|