Skip to content

Solution (#60): [BUG] : Game Over Message Is Poorly Positioned and Lacks Dedicate - #74

Open
TFGSUMIT wants to merge 1 commit into
dishu4u:mainfrom
TFGSUMIT:fix/issue-60
Open

Solution (#60): [BUG] : Game Over Message Is Poorly Positioned and Lacks Dedicate#74
TFGSUMIT wants to merge 1 commit into
dishu4u:mainfrom
TFGSUMIT:fix/issue-60

Conversation

@TFGSUMIT

Copy link
Copy Markdown

This pull request addresses the issue of the Game Over message being poorly positioned and lacking a dedicated end screen. It introduces a new gameOverScreen flag to handle the Game Over screen separately from the game logic.

Changes made:

  • Introduced gameOverScreen flag to handle Game Over screen separately from game logic.
  • Updated paintComponent method to display Game Over screen when gameOverScreen is true.
  • Updated keyPressed method to reset game when player presses any key on Game Over screen.

Testing instructions:

  • Run the game and lose all lives to see the Game Over screen.
  • Press any key on the Game Over screen to see the game reset.
  • Verify that the Game Over screen is displayed correctly and that the game resets properly.

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