Skip to content

Commit

Permalink
replace sheep with goat
Browse files Browse the repository at this point in the history
  • Loading branch information
HotHotHeissi committed Jan 28, 2024
1 parent 3434646 commit 51c70c5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion level.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __on_level_progression(self):
pass


class SheepLevel(LevelInterface):
class GoatLevel(LevelInterface):
def __init__(self, question: str, difficulty: int):
self._startLevelTime: int = -1
self._stopLevelTime: int = -1
Expand Down
4 changes: 2 additions & 2 deletions main-window.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import counting_objects as co
import reaction
from level import SheepLevel, LevelInterface
from level import GoatLevel, LevelInterface

if not pg.font:
print("Warning, fonts disabled")
Expand All @@ -29,7 +29,7 @@ def main():
background.fill((102, 204, 10))

# Load level and failure sound
currentLevel: LevelInterface = SheepLevel("How many sheep are there?", 1)
currentLevel: LevelInterface = GoatLevel("How many goats are there?", 1)

# Put Text On The Background, Centered
if not pg.font:
Expand Down
4 changes: 2 additions & 2 deletions reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def execute(self) -> pg.sprite.Group:

class DeadSheep(ReactionInterface):
def __init__(self, all_objects: pg.sprite.Group):
self._soundFile: str = random.choice(["sounds/DEAD_SHEEP.wav"])
self._soundFile: str = random.choice(["sounds/DEAD_GOAT.wav"])
self._failureSound = pg.mixer.Sound(self._soundFile)
self._allObjects = all_objects
return
Expand All @@ -87,7 +87,7 @@ class Winning(ReactionInterface):
def execute(self):
global win
win = True
pg.mixer.Sound.play(pg.mixer.Sound("sounds/WIN.wav"))
pg.mixer.Sound.play(pg.mixer.Sound("sounds/WINGOAT.wav"))
return


Expand Down
Binary file added sounds/DEAD_GOAT.wav
Binary file not shown.
Binary file removed sounds/DEAD_SHEEP.wav
Binary file not shown.
Binary file removed sounds/WIN.wav
Binary file not shown.
Binary file added sounds/WIN_GOAT.wav
Binary file not shown.

0 comments on commit 51c70c5

Please sign in to comment.