# 100floors **Repository Path**: puwong/100floors ## Basic Information - **Project Name**: 100floors - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-12 - **Last Updated**: 2025-01-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 999 Layers Challenge A platform jumping game based on Pygame where players control a character descending through platforms while avoiding being pushed to the top of the screen. ## Game Features ### 1. Difficulty System - 9 difficulty levels (1-9) - Each level corresponds to different speed increment: - Level 1 (Beginner): +0.01 speed - Level 5 (Normal): +0.05 speed - Level 9 (Master): +0.09 speed - Difficulty can be adjusted during gameplay ### 2. Speed System - Base speed: 1.0 - Linear increase with floor count - Speed cap: 8.0 - Speed formula: current_speed = min(base_speed + floor_count × difficulty_factor, max_speed) ### 3. Scoring System - Main scoring metrics: 1. Floor count 2. Key press count (lower is better) 3. Current speed 4. Difficulty level - Separate leaderboard for each difficulty - Ranking rules: 1. Sort by floor count (descending) 2. If floor counts are equal, sort by key press count (ascending) - Top 5 records kept for each difficulty ### 4. Controls - Movement: - Left/Right arrow keys or A/D keys for movement - Automatic falling - System: - Number keys 1-9: Adjust difficulty - Space: Restart/Return to difficulty selection - Key counting: - Only counts movement keys (arrow keys and A/D) - Excludes function keys (space and number keys) ### 5. Display Interface - Game info (top-left): - Current floor - Movement speed - Difficulty level - Key press count - Difficulty selection screen: - Shows 9 difficulty options - Each option displays level and speed increment - Supports mouse click and number key selection - Game over screen: - Shows current difficulty leaderboard - Displays floor count and key press count for each record ## Technical Requirements - Python 3.x - Pygame library ## Installation and Running 1. Install dependencies: ```bash pip install pygame ``` 2. Run the game: ```bash python main.py ``` ## Game Objective Reach the deepest floor possible with minimal key presses. Players must maintain steady control as speed increases, avoiding being pushed to the screen top by rising platforms. ## Installation and Running 1. Install dependencies: ```bash pip install -r requirements.txt ``` 2. Run the game: ```bash python main.py ```