what I want to do is create a boundary the size of the display window that when hit, ends the current game. I also need to find a way to the game to terminate when the snake body comes into contact...
Type: Posts; User: haruspex_icis
what I want to do is create a boundary the size of the display window that when hit, ends the current game. I also need to find a way to the game to terminate when the snake body comes into contact...
sorry, exclude that "how"
so how what would I use in that case?
well what I was thinking was maybe set a rectangle with boundaries that, when hit, call the Action Listener to stop the game.
should I implement something like ActionListener and make a rectangle around the game board to be hit?
Could you give an example of where that might be useful? Also, I don't know if the code for the terminations boundaries has been written.
So the code I have I didn't make, but I want to mess around with it and make it better. I'm a beginner and just want to explore the language on my own, but I don't have any idea how to fix it. The...