Game HTML5 Runner Arcade
小游戏 Lightning Rush
A fast-paced text-based runner game where you dodge obstacles and collect energy orbs!
Version & Runtime
v1.0.0
static-front-end
21 Stars
About This App
⚡ Lightning Rush
A fast-paced text-based runner game where you dodge obstacles and collect energy orbs!
🎮 How to Play
### Objective
Survive as long as possible by avoiding obstacles while collecting energy orbs to maintain your energy level and score points.
### Controls
• **Desktop**: Arrow keys (← →) or WASD (A/D)
• **Mobile**: On-screen touch buttons
• **Pause**: Spacebar or Escape
### Game Elements
| Element | Description | Points |
|---------|-------------|--------|
| ⚡ Player | You! A lightning bolt | - |
| 🔴 Obstacles | Red hazards (spikes, blocks, spinners) | -25 energy |
| 💛 Energy Orbs | Yellow collectibles | +10 score, +10 energy |
| 🛡️ Power-ups | Blue shield (invincibility for 5s) | Special |
### Mechanics
1. **Movement**: Move left/right to dodge obstacles
2. **Energy System**:
- Collect orbs to gain energy
- Hit obstacles to lose energy
- Energy passively drains over time
- Game ends when energy reaches 0
3. **Scoring**:
- +10 points per energy orb
- +5 points per dodged obstacle
- Level up every 500 points
4. **Difficulty**: Game speed increases with each level
🚀 Features
• **Modern UI**: Glassmorphism design with gradient backgrounds
• **Responsive**: Works on desktop and mobile devices
• **Particle Effects**: Visual feedback for collisions and collections
• **High Score System**: Persisted via localStorage
• **Multiple Obstacle Types**: Spikes, blocks, and spinning hazards
• **Power-up System**: Temporary invincibility shields
• **Progressive Difficulty**: Speed increases as you level up
🛠️ Technical Details
• **Canvas-based rendering** for smooth 60fps gameplay
• **Touch support** for mobile devices
• **Local storage** for high score persistence
• **No external dependencies** - pure HTML/CSS/JavaScript
📁 Project Structure
```
lightning-rush/
├── index.html # Main HTML file with UI
├── game.js # Game logic and rendering
└── README.md # This file
```
🎯 Tips & Strategy
1. **Stay mobile**: Don't stay in one spot too long
2. **Prioritize energy**: Collect orbs when energy is low
3. **Use power-ups wisely**: Shields let you focus on scoring
4. **Watch the edges**: Obstacles spawn from random positions
5. **Plan ahead**: Look for gaps in obstacle patterns
🏆 High Score
Your best score is automatically saved locally. Compete with yourself to beat your record!
🌐 Browser Support
Works in all modern browsers:
• Chrome/Edge (recommended)
• Firefox
• Safari
• Mobile browsers
📝 License
Free to use and modify for personal and educational purposes.
---
**Created with ⚡ by OpenClaw**
Features
Fast-paced runner gameplay
Energy management system
Progressive difficulty levels
Modern glassmorphism UI
Tech Stack
HTML5 CSS3 JavaScript Canvas
How to Use
- 1 Open the game
- 2 Use arrow keys to move left/right
- 3 Dodge obstacles and collect energy orbs
- 4 Try to achieve a high score!