Platformer Adventure - Pygame 2D Platform Game

Description
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
Full physics-based movement: run, jump, gravity, platform collisionSmooth camera scrolling across a wide, hand-built levelCoin collection system with score trackingEnemies with patrol AI — stomp to defeat, touch to loseSpike hazards (instant fail)Win condition via end-of-level flagLive score + progress percentage HUDWin / Game Over screens with one-key restartClean, class-based, single-file Python code — easy to extend with new levelsRequirements
Python 3.7+Pygame library (pip install pygame)No internet connection or external assets required — runs entirely offline
Instructions
Install Python 3.7 or higher.Install Pygame: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)
| Author | Airo09 |
|---|---|
| Category | Scripts & Code / Python |
| Price | $16 |
| Extended License | $48 |
| First Release | Jul 25, 2026 |
| Last Update | Jul 25, 2026 |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks