Hey I gotta solution if u needed it. Go to your moveForward() method and look at the for loop where "GAME OVER" is located... Change the lbp[0] == lbp[i] to lpb[0].equals(lbp[i]) and your game should...
Type: Posts; User: C++kingKnowledge
Hey I gotta solution if u needed it. Go to your moveForward() method and look at the for loop where "GAME OVER" is located... Change the lbp[0] == lbp[i] to lpb[0].equals(lbp[i]) and your game should...
so instead of hardcoding the x and y just declare them and pass them as the parameters for setBounds()? how will they know to resize with the window?
how would the game do that? he has hardcoded values i'm guessing because i ran the program and the game size didn't maximize with the window
first i would recommend adding the method setResizable() right after the setSize() method in the constructor and make its parameter false so the user cant maximize the window becuase you've defined...