Endless runners and infinite progression games (side-scrolling runners, lane runners, flappy-likes, auto-scrollers). Auto-scrolling world with chunks, obstacle generation from handmade patterns with difficulty tiers and fairness rules, speed ramps, one-button or swipe controls, distance scoring, coins and power-ups, near-miss rewards, recycling objects, and a starter plan. Use for "endless runn...
Download skill (.zip) Files on GitHubEndless runner development
Core: the world moves, you react; how far can you get?
Starter template
A playable starter for the game-scaffolding template is in assets/starter/. Auto-run with a speed ramp, jump with coyote time, buffering and hold-for-height, slide and fast-fall, obstacle gaps measured in seconds so they stay fair at any speed, an obstacle mix that grows with distance, coins and parallax.
python3 <game-scaffolding>/scripts/scaffold.py my-game --title "My Game" --starter <this skill>/assets/starter
Controls: Space/Up jump (hold for higher), Down slide. Touch: tap the right half to jump, hold the left half to slide. Esc pauses. All numbers to tune are in src/config.js; the gameplay is in src/scenes/play.js.
A simple bot ran for 15+ seconds; every obstacle was checked against the jump arc.
Structure
Play scene: player (fixed x or lanes), a chunk spawner ahead of the camera, a recycler behind it, a speed curve, distance score, coins, power-ups. Scenes: title → play → gameover (distance, coins, best).
Obstacle generation
Generate from handmade chunks (patterns of obstacles and coins designed and tested by hand), not pure randomness:
const CHUNKS = [
{ tier: 0, width: 600, items: [{ t: "rock", x: 300 }] },
{ tier: 1, width: 700, items: [{ t: "rock", x: 200 }, { t: "bird", x: 500, y: -80 }] },
{ tier: 2, width: 800, items: [{ t: "gap", x: 200, w: 160 }, { t: "coinArc", x: 200 }] },
];
// pick by tier unlocked at the current distance, never the same chunk twice in a row; leave a safe gap after hard chunks
Fairness rules: every chunk is clearable at its tier’s max speed (test by simulation: game-balance-testing); minimum reaction distance = speed × 0.4 s; no obstacle right at the start; telegraph flying obstacles.
Growing the starter
- Scaffold; player at fixed x with jump (player-movement) or lanes (
GridMoveron one axis). - Chunk spawner + pools (game-object-pooling) for obstacles and coins.
- Speed:
curve.ease(300, 900, 120)px/s (difficulty-scaling); unlock tiers by distance. - Parallax background tied to speed (parallax-backgrounds). Power-ups: magnet, shield (power-up-system).
- Near-miss bonus (passing within a few px) and a combo for coins.
Controls
One button (tap / Space) for jump; swipe for lanes (threshold ~30 px). Allow jump buffering so early taps still work.
Pitfalls
Unwinnable random combinations, speed so high reactions are impossible, sudden difficulty spikes, and floating point drift from moving the whole world (move the camera, or reset positions periodically).