Skip to content

Conversation

@Abductcows
Copy link

The game can restart by clicking the yes option at the popup dialogue box. If no is selected, the game exits normally without System.exit(). Game threads terminate using a boolean variable and JFrames are disposed at termination and between restarts.

I understand that the replacement of int directions with the Enum could be done as a different pull request but I thought it would be simple enough to do it here. I will separate them if necessary.

George Bouroutzoglou added 3 commits January 23, 2021 20:55
and minor changes to accommodate that in Window and ThreadsController.

Ensured proper termination of the ThreadsController thread and timely disposing of previous JFrames
Quality of life improvement to avoid players having to center manually after restarts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant