new item, shin bone , added.

This commit is contained in:
Storm Dragon
2025-02-10 20:49:50 -05:00
parent a991829cf9
commit 2351579bb5
15 changed files with 70 additions and 24 deletions

View File

@@ -43,6 +43,7 @@ class Player:
self.collectedItems = []
self._coins = 0
self._jack_o_lantern_count = 0
self.shinBoneCount = 0
# Combat related attributes
self.weapons = []
@@ -64,7 +65,7 @@ class Player:
hitSound="player_shovel_hit",
attackDuration=200 # 200ms attack duration
))
def should_play_footstep(self, currentTime):
"""Check if it's time to play a footstep sound"""
return (self.distanceSinceLastStep >= self.get_step_distance() and
@@ -211,7 +212,7 @@ class Player:
"""Add an item to inventory"""
self.inventory.append(item)
self.collectedItems.append(item)
def start_attack(self, currentTime):
"""Attempt to start an attack with the current weapon"""
if self.currentWeapon and self.currentWeapon.start_attack(currentTime):