Hi guys,
I'm not great with Processing but I need help. I've been trying to create a 4 player Pong game, but so far I can only get 2 paddles to show up and fully work. I want the 2 new paddles to be where the first 2 are, as if players are playing in doubles (like double-players playing tennis).
If anyone is able to help with actually drawing the paddles up and getting the ball to bounce off the 2 new paddles, I'd sell my soul to you. I'm so keen on getting this to work.
This is what I have so far:
// Global variables for the ball
float paddle_left;
float distWALL = 620;
float ball_x;
float ball_y;
float ball_dir = 1;
float ball_size = 10; // Radius
float dy = 0; // Direction
float lastry;
float paddle_right =10;
//variables for the paddle
int paddle_width = 8;
int paddle_height = 50;
I've been making a pong game, however one little piece that isn't going right is the ball.
The ball goes straight through the left paddle and doesn't hit it at all, whereas the ball hits the right paddle fine.
I can't figure out exactly where I've gone wrong, it's driving me insane!!
I'm new, could someone please point out the obvious to me? I'm still a beginner and don't understand much 'processing talk'.
p.s. sorry if i post this in the wrong forum, hopefully it's suited into the correct one though
This is my code, please point out what i haven't done and what it should be?
// Global variables for the ball
float paddle_left;
float distWALL = 620;
float ball_x;
float ball_y;
float ball_dir = 1;
float ball_size = 15; // Radius
float dy = 0; // Direction
float lastry;
float paddle_right =10;
//variables for the paddle
int paddle_width = 10;
int paddle_height = 60;