void Dot::handle_input()
{
if(shoot == false)
{
if (event.type == SDL_MOUSEBUTTONDOWN)
{
if (event.button.button == SDL_BUTTON_LEFT)
{
int tempX,tempY;
int Gradient;
tempX = event.button.x;
tempY = event.button.y; //x,y
Gradient = (ceil(tempY - y) / (tempX - x));
xVel = 50;
yVel = 50*Gradient;
shoot = true;
}
}
}
}
void Dot::handle_AI()
{
//Gravity
yVel = yVel + 1;
if((y >= SCREEN_HEIGHT) && (yVel >= 0))
{
yVel = 0;
}
}
if not this is everything http://pastebin.com/pfpd6LN5
Thanks for the help

Find content
Male