Im making a asteroid game, but im stuck with the shooting. If the ball is shot, it should turn around and go back to the other side. But the ball is glitched in the wall. Can you please help me?
Here is the code of the ball being shot.
public void act()
{
setLocation(getX()+speed, getY());
if (isTouching(BBar.class));
turn(180);
}
