Skip to content

Commit

Permalink
changed window title
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaX1us committed Oct 13, 2022
1 parent 0937397 commit 0792da9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#initialize key components of the game
pygame.init()
pygame.display.set_caption("Bataille Navale X Démineur")
pygame.display.set_caption("Battleship X Minesweaper")
SCREEN = pygame.display.set_mode((WIDTH,HEIGHT))
mainClock = pygame.time.Clock()
logo = pygame.transform.scale(pygame.image.load("assets/images/logo.png"), ((WIDTH/2,WIDTH/2)))
Expand Down Expand Up @@ -246,7 +246,6 @@ def main_loop(game:Game, AI=0):
if not game.random_placement and AI!=2:
placement_menu(game)
running = True
waiting = False

#buttons creation
buttons = []
Expand Down Expand Up @@ -524,7 +523,8 @@ def settings_menu(game:Game):
draw_text( "Hint radius", 215, 0, size=50, color=BLUE)
draw_text( str(game.hint_radius), 325, 65, size=80, color=BLUE)

draw_text( "Random placement", 120, 180, size=50, color=BLUE)
draw_text( "Random placement", 120, 180, size=50, color=BLUE)

if game.random_placement:
draw_text("On", 300,250, size=70, color=GREEN)
else:
Expand Down

0 comments on commit 0792da9

Please sign in to comment.