You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0x00 = Empty
0x01 = Soft Brick (diggable)
0x02 = Hard Brick (indestructible)
0x03 = Ladder
0x04 = Pole/Bar (horizontal traverse)
0x05 = Trap Brick (looks like brick, falls through)
0x06 = Exit Ladder (hidden until all gold collected)
0x07 = Gold
0x08 = Enemy
0x09 = Player (Lode Runner)
Core Mechanics
Grid: 28 columns × 16 rows (original)
Movement: Walk, climb, fall, traverse bars
Digging: Z (dig left), X (dig right) - creates temporary holes in soft bricks
Holes: Auto-refill after ~10 seconds; enemies trapped drop gold
Win Condition: Collect all gold, reach top of level via exit ladders
Enemy AI: Chase player, can climb ladders, fall in holes, respawn at top
🛠️ Tech Stack Recommendation
Option A: Phaser 3 ⭐ RECOMMENDED
Pros
Cons
Mature, battle-tested
Slightly larger bundle (~1MB)
Built-in tilemap support
Learning curve for advanced features
Great sprite/animation system
TypeScript support
Excellent for retro pixel games
Large community + docs
Option B: Kaboom.js
Pros
Cons
Super simple API
Less mature
Small bundle size
Fewer advanced features
Fun, retro-focused
Smaller community
Option C: PixiJS + Custom
Pros
Cons
Fastest rendering
Need to build game logic from scratch
Maximum control
More code to write
Tiny core
Option D: Pure Canvas
Pros
Cons
Zero dependencies
Everything manual
Smallest possible bundle
Time-consuming
Full control
RECOMMENDATION: Phaser 3 with TypeScript
Perfect for tile-based games
Handles sprites, input, sound well
Good procedural generation ecosystem
Professional quality result
Backend
Not required for MVP - everything runs client-side:
Procedural generation via seeded random (shareable level codes)
Local storage for settings/high scores
Future consideration: Optional backend for leaderboards, level sharing
🎲 Procedural Level Generation Strategy
The Challenge
Lode Runner levels must be solvable - all gold must be reachable and collectable while avoiding/trapping enemies.
Multi-Phase Generation Approach
Phase 1: Structure Generation
1. Create base terrain (platforms at various heights)
2. Add ladders connecting platforms (ensuring vertical connectivity)
3. Add poles/bars for horizontal traversal
4. Place hard bricks as obstacles/boundaries
Phase 2: Gold Placement + Validation
1. Place gold in potentially interesting locations
2. Run reachability analysis (BFS/flood fill)
3. Ensure ALL gold is reachable from spawn
4. Ensure exit (top of map) is reachable after collecting gold
Phase 3: Enemy Placement
1. Place enemies based on difficulty
2. Ensure enemies don't make level instantly fatal
3. Ensure trapping mechanics are possible (nearby diggable bricks)
Phase 4: Solvability Verification
1. Simulate "perfect play" pathfinding
2. Verify gold can be collected in SOME order
3. If fails, regenerate or fix
Solvability Algorithm (Key Innovation)
functionisSolvable(level: Level): boolean{// Build traversal graph considering:// - Walking on solid ground// - Climbing ladders// - Traversing poles// - Falling through empty space// - Digging to create temporary paths// Use A*/BFS to verify:// 1. All gold positions reachable from spawn// 2. Exit reachable after collecting gold// 3. At least one valid collection order exists}
Difficulty Tiers
Difficulty
Enemies
Gold
Platform Complexity
Trap Bricks
Time Pressure
Easy
1-2
5-8
Simple, many ladders
Few
Low
Normal
2-3
8-12
Moderate
Some
Medium
Hard
3-4
12-16
Complex, sparse ladders
Many
High
Ninja
4-5
16-20
Extreme, puzzle-like
Everywhere
Extreme
🎨 Visual Design: Retro-Futuristic
Aesthetic Concept: "Cyberpunk Atari"
Pixel art at authentic retro resolution (scaled up crisp)
Scanline effects (optional, toggleable)
Neon glow effects on collectibles/UI
CRT curvature effect (subtle, optional)
Dark backgrounds with bright accent colors
Color Themes
🔵 CYBER BLUE (default)
- Dark blue/black background
- Cyan ladders, pink/magenta gold
- White player, red enemies
🟢 MATRIX GREEN
- Black background
- Green monochrome with brightness variations
- Phosphor glow effect
🟠 SUNSET CHROME
- Dark purple background
- Orange/yellow gradients
- Chrome/silver metallic accents
🔴 NEON NOIR
- Pure black background
- Hot pink and electric blue
- High contrast, minimal
⚪ CLASSIC (C64 tribute)
- Original color palette
- Authentic retro feel
UI Elements
Score display with "futuristic" font (e.g., Chicago, Orbitron)