commit 4d1e106b17748c3b2640e3b10c32b3a05d900fe6 Author: DualFroz Date: Sun Aug 23 09:59:18 2026 +0200 chore: scaffold project structure and ignore build output diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ee4098 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.venv/ +__pycache__/ +*.pyc +screenshot.png diff --git a/game/__init__.py b/game/__init__.py new file mode 100644 index 0000000..9f7a875 --- /dev/null +++ b/game/__init__.py @@ -0,0 +1 @@ +version = "0.1.0" diff --git a/game/constants.py b/game/constants.py new file mode 100644 index 0000000..22cc163 --- /dev/null +++ b/game/constants.py @@ -0,0 +1,50 @@ +tileSize = 16 + +viewWidth = 320 +viewHeight = 180 + +startingLives = 3 + +gravity = 0.5 +maxFallSpeed = 8.0 +fastFallSpeed = 11.0 + +moveAccel = 0.7 +airAccel = 0.42 +moveSpeed = 2.2 +runSpeed = 3.2 +friction = 0.72 +airFriction = 0.9 + +jumpVelocity = -7.8 +doubleJumpVelocity = -6.9 +jumpCutMultiplier = 0.45 +coyoteFrames = 6 +jumpBufferFrames = 6 +maxAirJumps = 1 + +wallSlideSpeed = 1.4 +wallJumpVelocityX = 3.4 +wallJumpVelocityY = -7.4 +wallStickFrames = 8 + +dashSpeed = 6.5 +dashFrames = 10 +dashCooldownFrames = 32 + +stompBounce = -5.4 +enemySpeed = 0.55 +chaserSpeed = 1.05 +flyerSpeed = 0.9 +shooterCooldown = 90 +projectileSpeed = 2.6 +projectileLife = 240 + +playerMaxHp = 6 +contactDamage = 1 +hazardDamage = 2 +iframesOnHit = 60 +knockbackX = 3.2 +knockbackY = -4.2 + +respawnFrames = 48