Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daniel's World - 2D Parkour Game

A fun 2D parkour platformer game built with Pygame. Navigate through challenging levels with double-jump mechanics and obstacle avoidance.

Features

  • 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

Requirements

  • Python 3.x
  • Pygame

Installation

  1. Clone this repository
  2. Install Pygame:
pip install pygame

Usage

python3 daniel_game.py

Controls

  • Arrow Keys or WASD: Move left/right
  • Spacebar: Jump (press twice for double jump)
  • ESC: Quit game

Game Mechanics

Player Features

  • 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)

Physics

  • Gravity constantly pulls the player downward
  • Momentum-based movement system
  • Collision detection with platforms
  • Ground state tracking for jump reset

Screen Settings

  • Resolution: 800x600 pixels
  • FPS: 60 frames per second
  • Title: "Daniel's World - 2D Parkour"

Color Scheme

  • Background: Blue sky (100, 149, 237)
  • Player: Red (255, 0, 0)
  • Platforms: Gray (128, 128, 128)
  • Ground: Dark Gray (64, 64, 64)

Project Structure

daniel-game/
├── daniel_game.py           # Main game file
└── import pygame.txt        # Code reference

Development

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

Future Enhancements

Potential additions to the game:

  • Level progression system
  • Collectible items
  • Enemy obstacles
  • Score tracking
  • Level editor
  • Sound effects and music

Contributing

Feel free to fork and submit pull requests for improvements!

License

See LICENSE file for details.

Credits

Created as a fun learning project to explore Pygame and game development.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages