Seaside Rail RunAI · Claude Fable 5
Game information
AI generation prompt
Copy this prompt to study or reproduce the game.
"Seaside Rail Run" AI Generation Prompt
Use: Give this prompt to an AI coding assistant to reproduce the game.
Please generate a pseudo-3D three-lane infinite runner web game (third-person behind view), single file index.html, zero external dependencies (Canvas 2D perspective projection, no WebGL), logical resolution 480x854 (9:16 portrait).
1. Pseudo-3D Perspective
- Physical projection:
s = 6 / (6 + distance_left). Elements are scaled by projection ratios. - Render with Painter's Algorithm (draw from far to near).
- Environments: Left beach and sea, palm trees; Right sidewalks and pastel buildings; Center railway tracks with scrolling sleepers.
2. Controls & Character
- PC: Arrow Left/Right to change lanes, Arrow Up / Space to jump, Arrow Down to slide, Esc/P to pause.
- Mobile: Swipe gestures (threshold 34px).
- Character: A cartoon kid in a red cap, white hoodie, blue jeans, and backpack. Animations for running, jumping, sliding, and crashing.
3. Balances & Hazards
- Speed starts at 3.5m/s, increases by +0.4 every 15s to a max of 9m/s.
- Jump duration 0.7s (max height 2.8m). Slide duration 0.6s. Lane change duration 0.2s.
- Obstacles: Low blockades (jump), high-clearance overhead bars (slide), trains (change lanes), and moving blockades.
4. Score & Boosts
- 1 point per meter. Gold coins (+5 points) scattered along lanes.
- Perfect run multiplier: dodge 10 obstacles continuously to trigger 2x score for 3 seconds.
- Shield Item: Grants invulnerability and clears colliding obstacles.
5. System & Audio
- Achievements, daily rewards, local scoreboards (localStorage).
- BGM changes tempo based on character's speed. Sound effects for jumping, sliding, coins, and collision.