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

pong paddles are not going equally fast

by Anonymous Monk
on Jul 22, 2020 at 16:46 UTC ( [id://11119665]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     $app->add_event_handler(sub {
            my $event= shift;
            if($event->type == SDL_KEYDOWN){
    ...
                }
            }
    });
    
  2. or download this
    
    use strict; 
    ...
        $ball->{v_x} = (4 + rand(2)) * (rand (2) > 1 ? 1 : -1);
        $ball->{v_y} = (1.5 + rand(1)) * (rand (2) > 1 ? 1 : -1);        
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found