Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
set windo to fulscren by defolt
Browse files Browse the repository at this point in the history
  • Loading branch information
thatoddshade committed Nov 29, 2022
1 parent 327954c commit 26c144a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Binary file modified __pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added data/sounds/defeat.ogg
Binary file not shown.
Binary file removed data/sounds/defeat.wav
Binary file not shown.
5 changes: 3 additions & 2 deletions main.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ from settings import *

# window setup
pygame.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
screen = pygame.display.set_mode((WIDTH, HEIGHT), pygame.FULLSCREEN)
pygame.display.set_caption(TITLE)

icon = pygame.image.load("data/images/food/python.png")
icon = pygame.image.load("data/images/icon.ico")
pygame.display.set_icon(icon)

# custom mouse pointer
Expand Down Expand Up @@ -98,6 +98,7 @@ while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False

if not (score > 100 or score < 0):
if event.type == pygame.MOUSEBUTTONDOWN:
if selected_continent:
Expand Down
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SOUNDS = {
"food_drop": ["data/sounds/food_drop1.ogg", "data/sounds/food_drop2.ogg"],
"music": "data/sounds/hunger.ogg",
"defeat": "data/sounds/defeat.wav",
"defeat": "data/sounds/defeat.ogg",
}

FONT_SIZE = 16
Expand Down

0 comments on commit 26c144a

Please # to comment.