Initial commit.
This commit is contained in:
13
src/player.py
Normal file
13
src/player.py
Normal 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
|
Reference in New Issue
Block a user