Initial commit.

This commit is contained in:
Storm Dragon
2025-01-30 01:17:52 -05:00
commit 0d115b2bef
17 changed files with 260 additions and 0 deletions

13
src/player.py Normal file
View File

@@ -0,0 +1,13 @@
class Player:
def __init__(self, xPos, yPos):
self.xPos = xPos
self.yPos = yPos
self.moveSpeed = 0.05
self.jumpDuration = 1000 # Jump duration in milliseconds
self.jumpStartTime = 0
self.isJumping = False
self.facingRight = True
self.collectedItems = []
# Track distance for footsteps
self.distanceSinceLastStep = 0
self.stepDistance = 0.5 # Play a step sound every 0.5 units moved