Spiderweb obstacles added. Latest libstormgames module update. Level 4 created, needs adjustment, currently way too hard.

This commit is contained in:
Storm Dragon
2025-02-09 13:38:11 -05:00
parent 0f0d719578
commit 6303cf93e7
12 changed files with 435 additions and 56 deletions

View File

@@ -86,6 +86,13 @@ class Player:
def update(self, currentTime):
"""Update player state"""
if hasattr(self, 'webPenaltyEndTime'):
if currentTime >= self.webPenaltyEndTime:
self.moveSpeed *= 2 # Restore speed
if self.currentWeapon:
self.currentWeapon.attackDuration *= 0.5 # Restore attack speed
del self.webPenaltyEndTime
# Check if invincibility has expired
if self.isInvincible and currentTime - self.invincibilityStartTime >= self.invincibilityDuration:
self.isInvincible = False