Spiderweb obstacles added. Latest libstormgames module update. Level 4 created, needs adjustment, currently way too hard.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user