Skip to content

Commit

Permalink
Removed the exit button
Browse files Browse the repository at this point in the history
  • Loading branch information
memo1918 committed Dec 5, 2024
1 parent 89d2f1c commit e04fc5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,10 @@ async def main_menu() -> None:
first_button = Button(image=None, pos=(centerY, (spacesX)*2), text_input="FIRST TURN", font=font, base_color="#d7fcd4", hovering_color="White")
second_button = Button(image=None, pos=(centerY, (spacesX)*3), text_input="SECOND TURN", font=font, base_color="#d7fcd4", hovering_color="White")
about_button = Button(image=None, pos=(centerY, (spacesX)*4), text_input="HOW TO PLAY", font=font, base_color="#d7fcd4", hovering_color="White")
quit_button = Button(image=None, pos=(centerY, (spacesX)*5), text_input="QUIT", font=font, base_color="#d7fcd4", hovering_color="White")

screen.blit(menu_text, menu_rect)

for button in [first_button,second_button,about_button, quit_button]:
for button in [first_button,second_button,about_button]:
button.changeColor(mouse_pos)
button.update(screen)

Expand All @@ -182,9 +181,6 @@ async def main_menu() -> None:
await play("second")
if about_button.checkForInput(mouse_pos):
await about()
if quit_button.checkForInput(mouse_pos):
pygame.quit()
sys.exit()

pygame.display.update()
await asyncio.sleep(0)
Expand Down
Binary file modified build/web/breakthrough-board-game.apk
Binary file not shown.

0 comments on commit e04fc5f

Please sign in to comment.