I need help! I am doing a project that I have to bounce a ball and keep track of the score when it hits the edge of the world but I don't know how to keep track of the score when it hits the edge of the world.Can anyone help me with the code?
private int edgeCount = 0;
//in act
if (atEdge())
{
//...
edgeCount++;
}private int edgeCount = 0;
//in act
if (atEdge())
{
//...
edgeCount++;
}private int edgeCount = 0;
//in act
if (isAtEdge())
{
//...
edgeCount++;
}