#include "ball.hh" void Ball::resetBall(Render &r, Player &p) { p.player.x = (r.width / 2) - (p.player.w / 2); Ball::ball.y = p.player.y - (p.player.h * 4); Ball::yvelocity = Ball::ballspeed / 2; Ball::xvelocity = 0; Ball::ball.x = r.width / 2 - (Ball::size / 2); }