A fun 2D parkour platformer game built with Pygame. Navigate through challenging levels with double-jump mechanics and obstacle avoidance.
- Smooth Parkour Mechanics: Fluid movement and jumping
- Double Jump: Advanced mobility with double-jump capability
- Physics-Based Gameplay: Realistic gravity and momentum
- Platform Navigation: Multiple platforms and obstacles
- Clean Graphics: Simple, colorful design with smooth animations
- Python 3.x
- Pygame
- Clone this repository
- Install Pygame:
pip install pygamepython3 daniel_game.py- Arrow Keys or WASD: Move left/right
- Spacebar: Jump (press twice for double jump)
- ESC: Quit game
- Width: 30 pixels
- Height: 40 pixels
- Move Speed: 5 pixels/frame
- Jump Strength: -15 (upward velocity)
- Gravity: 0.8 pixels/frame²
- Max Jumps: 2 (double jump enabled)
- Gravity constantly pulls the player downward
- Momentum-based movement system
- Collision detection with platforms
- Ground state tracking for jump reset
- Resolution: 800x600 pixels
- FPS: 60 frames per second
- Title: "Daniel's World - 2D Parkour"
- Background: Blue sky (100, 149, 237)
- Player: Red (255, 0, 0)
- Platforms: Gray (128, 128, 128)
- Ground: Dark Gray (64, 64, 64)
daniel-game/
├── daniel_game.py # Main game file
└── import pygame.txt # Code reference
The game is built using object-oriented programming with the following classes:
- Player: Handles player movement, jumping, and physics
- Platform: (Implementation in progress)
- Game Loop: 60 FPS game loop with event handling
Potential additions to the game:
- Level progression system
- Collectible items
- Enemy obstacles
- Score tracking
- Level editor
- Sound effects and music
Feel free to fork and submit pull requests for improvements!
See LICENSE file for details.
Created as a fun learning project to explore Pygame and game development.