Endless Runner - Pygame Arcade Game

Description
Endless Runner is a lightweight, single-file arcade game built with Python and Pygame. The player controls a character that automatically runs forward while the game world scrolls endlessly, gradually increasing in speed. Players must jump over ground obstacles and duck under flying birds to survive as long as possible and rack up the highest score.
The game features smooth physics-based jumping (gravity and velocity), a duck/slide mechanic, procedurally spawned obstacles of varying size, animated flying bird enemies with wing motion, parallax scrolling clouds and ground detail, a live score and speed HUD, and a game-over screen with instant restart. The codebase is compact, well-commented, and organized into clear classes (Player, Obstacle, Bird), making it an excellent base for beginners learning game development or for developers who want to customize and extend an endless-runner template quickly.
Features
One-button jump + duck/slide controlsProgressive difficulty (speed increases over time)Two obstacle types: ground obstacles and flying birdsPhysics-based jump with gravityAnimated bird wings and parallax cloud backgroundLive score and speed displayGame over screen with one-key restartClean, class-based, single-file Python code — easy to read and extendRequirements
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 3_endless_runner.pyControls:
- SPACE / UP / W — Jump
- DOWN / S — Duck / Slide
- ESC — Quit
- R — Restart after Game Over
| Author | Airo09 |
|---|---|
| Category | Scripts & Code / Python |
| Price | $15 |
| Extended License | $45 |
| First Release | Jul 25, 2026 |
| Last Update | Jul 25, 2026 |
| Files included | .py |
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🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 1,489 views · 9 clicksOther · Week 47 · 1,489 views · 9 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 1,632 views · 10 clicksSaaS · Week 47 · 1,632 views · 10 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 9,176 views · 75 clicksSaaS · Week 47 · 9,176 views · 75 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 1,597 views · 5 clicksSaaS · Week 47 · 1,597 views · 5 clicks