Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: pong paddles are not going equally fast

by bliako (Monsignor)
on Jul 23, 2020 at 08:10 UTC ( [id://11119700]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
                if($event-> key_sym == SDLK_UP){
                    $player1->{v_y} = -2;
    ...
                elsif($event->key_sym == SDLK_DOWN){                      
    +                      
                    $player1->{v_y} = 2;
                }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-20 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found