A delightful 3D endless runner game built with Three.js featuring an adorable bunny character, intuitive controls, and engaging gameplay mechanics.
- 3D Graphics: Powered by Three.js for smooth WebGL rendering
- Responsive Design: Optimized separate versions for desktop and mobile
- Progressive Web App: Installable with offline support
- Touch & Swipe Controls: Mobile-optimized gesture controls
- Combo System: Multiplier rewards for consecutive collectibles
- Achievements: Unlock rewards and track progress
- Leaderboard: Track top scores across difficulty levels
- Difficulty Modes: Easy, Medium, Hard with different speeds and challenges
cute-runner-game/
โโโ index.html # Desktop game entry point
โโโ mobile/
โ โโโ index.html # Mobile game entry point
โโโ assets/
โ โโโ icons/
โ โ โโโ favicon.svg # Desktop favicon
โ โ โโโ favicon-mobile.svg # Mobile favicon
โ โโโ scripts/
โ โ โโโ desktop.js # Desktop game logic
โ โ โโโ mobile.js # Mobile game logic
โ โ โโโ redirect.js # Device detection & routing
โ โ โโโ sw.js # Desktop service worker
โ โ โโโ sw-mobile.js # Mobile service worker
โ โโโ styles/
โ โ โโโ desktop.css # Desktop styles
โ โ โโโ mobile.css # Mobile styles
โ โโโ manifest.json # Desktop PWA manifest
โ โโโ manifest-mobile.json # Mobile PWA manifest
โโโ docs/
โ โโโ CHANGELOG.md # Version history and changes
โโโ .github/
โโโ copilot-instructions.md # AI agent development guidelines
- Clone or download this repository
- Serve the files using any static file server:
# Using Python python -m http.server 8000 # Using Node.js http-server npx http-server # Using PHP php -S localhost:8000
- Open
http://localhost:8000in your browser - The game automatically detects your device and redirects to the appropriate version
- Arrow Keys / A,D: Move between lanes
- Space / Arrow Up: Jump
- Escape: Pause game
- Touch Buttons: Left, Right, Jump at bottom of screen
- Swipe Gestures:
- Swipe Left/Right to change lanes
- Swipe Up to jump
- Quick tap anywhere to jump
- Base points for distance traveled
- Collectible gems: 10 points each
- Combo multiplier: Up to 10x for consecutive collections
- Milestone celebrations at 100, 250, 500, 750, 1000+
- Easy: Relaxed Garden Stroll - Slower pace for beginners
- Medium: Happy Run - Balanced challenge
- Hard: Speed Bunny Challenge - Fast-paced expert mode
- Baby Steps: Make your first jump
- Century Run: Reach 100 points
- Half Marathon: Reach 500 points
- Legend: Reach 1000 points
- Combo Master: 5x combo streak
- Combo God: 10x combo streak
- Dodging Expert: Score 50 without hitting obstacles
- Speed Demon: Reach maximum speed
- Three.js r128: 3D graphics rendering
- Vanilla JavaScript: No framework dependencies
- CSS3: Modern styling with custom properties
- Web Audio API: Procedural sound effects and music
- Service Workers: PWA offline capabilities
- LocalStorage: Settings and progress persistence
- Installable on desktop and mobile devices
- Offline play support
- Fullscreen mode
- Custom app icons
- Native-like experience
The game uses CSS custom properties for easy theming. Key variables in styles:
--color-pink,--color-lavender,--color-mint: Theme colors--font-size-*: Typography scale--space-*: Spacing system--radius-*: Border radius values
This project is open source and available for personal and educational use.
Feel free to submit issues, fork the repository, and create pull requests for any improvements.
Built with โค๏ธ using Three.js and modern web technologies.