Platformer Adventure - Pygame 2D Platform GamePlatformer Adventure - Pygame 2D Platform Game
A complete 2D side-scrolling platformer in Python/Pygame — jump, collect coins, defeat enemies, and reach the flag. Recently UpdatedPlatformer Adventure - Pygame 2D Platform Game
A complete 2D side-scrolling platformer in Python/Pygame — jump, collect coins, defeat enemies, a...
Overview
Platformer Adventure is a full-featured 2D side-scrolling platform game built with Python and Pygame. Players navigate a hand-designed level with multiple platform heights, gaps, spikes, and patrolling enemies, collecting coins along the way and racing to reach the flag at the end to complete the level.
The game features smooth acceleration-based movement, gravity-driven jumping with solid platform collision (including landing on top and bumping from below), a smooth camera that follows the player through a 2600px-wide scrolling world, collectible coins with a bobbing animation, enemies that can be defeated with a jump-stomp (Mario-style) for bonus points or that end the run on contact, deadly spikes, a live score and level-progress HUD, and win/lose end screens with instant restart. The code is organized into clear, reusable classes (Player, Coin, Enemy) with static level geometry defined as simple rect lists, making it an ideal base for developers who want to learn platformer physics or quickly build out their own custom levels.
Features
Requirements
pip install pygame)No internet connection or external assets required — runs entirely offline
Instructions
pip install pygameRun the script: python 4_platformer_adventure.pyControls:
- A/D or ← / → — Move
- SPACE / W / ↑ — Jump
- ESC — Quit
- R — Restart (after Game Over / Win)
Other items by this author
| Category | Scripts & Code / Python |
| First release | 25 July 2026 |
| Last update | 25 July 2026 |
| Tags | 2d game, python, game template, pygame, side scroller, platformer, casual game, arcade game, indie game, jump game, offline game, level based, python game, coin collector, mario style |








