Search:

Type: Posts; User: C++kingKnowledge

Search: Search took 0.39 seconds.

  1. Re: Help with Snake Game Java Code: It's Impossible to Lose the Game

    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...
  2. Re: Help with Snake Game Java Code: It's Impossible to Lose the Game

    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?
  3. Re: Help with Snake Game Java Code: It's Impossible to Lose the Game

    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
  4. Re: Help with Snake Game Java Code: It's Impossible to Lose the Game

    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...
Results 1 to 4 of 4