I am trying to write a pong type game. I am in my first csc class and have to write a simple game for our final assignment. I can't get the ball to bounce off the paddle. Please help. Here is my code.
boolean ballpaddle=false;
float x=50;
float y=50;
int speed=5;
float speedx=1;
float speedy=2;
int a=200;
int b=height+10;
int c=200;
int d=height+390;