Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float
- // ball
- ballX = 0,
- ballY = 0,
- ballSize,
- ballStep,
- // paddle
- paddleX,
- paddleY,
- paddleW,
- paddleH,
- paddleStep;
- void setup () {
- size (1280, 740);
- rectMode (CENTER);
- ballSize = height * 0.1;
- ballStep = width * 0.01;
- paddleX = width * 0.5;
- paddleY = height * 0.95;
- paddleW = width * 0.125;
- paddleH = height * 0.03;
- paddleStep = width * 0.01;
- circle (width/2, height/2, ballSize);
- rect (paddleX, paddleY, paddleW, paddleH);
- }
- void ball () {
- ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement