Gameplay
- Genre: MOBA-style team strategy
- Camera: Top-down RTS-style with click-to-move
- Vision: Fog of war system
- Structures: Turrets and inhibitors
- AI: Minion waves
- Combat: Ability-based with cooldowns
- Objective: Destroy enemy base
Technical Implementation
GameBuilder Configuration
Location:core/src/games/legends/Legends.ts:87
State
Settings
Systems
LegendsWorldSystem
Location:core/src/games/legends/Legends.ts:29
Generates the map terrain:
LegendsBoundsSystem
Location:core/src/games/legends/Legends.ts:58
Keeps players within map:
LegendsCameraSystem
Location:core/src/games/legends/LegendsCameraSystem.ts
RTS-style camera:
LegendsVisionSystem
Location:core/src/games/legends/LegendsVisionSystem.ts
Fog of war implementation:
LegendsHealthbarSystem
Location:core/src/games/legends/LegendsHealthbarSystem.ts
HP bars above units:
LegendsAbilityBarSystem
Location:core/src/games/legends/LegendsAbilityBarSystem.ts
Ability cooldown UI:
HoverSystem
Location:core/src/games/legends/HoverSystem.ts
Mouse hover detection:
Entities
Leo (Player Character)
Location:core/src/games/legends/Leo.ts:27
MOBA champion:
- Click-to-move controls
- Smooth rotation toward heading
- Death state handling
- Hover detection
- Ping system (G, V keys)
- Health tracking
Minion
Location:core/src/games/legends/Minion.ts
AI-controlled lane creeps:
Turret
Location:core/src/games/legends/Turret.ts
Defensive structure:
Inhibitor
Location:core/src/games/legends/Inhibitor.ts
Base structure:
TurretProjectile
Location:core/src/games/legends/TurretProjectile.ts
Turret attack projectile:
LegendsPing
Location:core/src/games/legends/LegendsPing.ts
Communication markers:
LegendsMinimap
Location:core/src/games/legends/LegendsMinimap.ts
Minimap UI:
Map Layout
Location:core/src/games/legends/LegendsTerrain.ts
Lanes
Terrain Objects
Coloring
Constants
Location:core/src/games/legends/LegendsConstants.ts
Controls
Location:core/src/games/legends/Legends.ts:135
Key Features
RTS Controls
- Right-click to move
- Click-to-target
- Minimap interaction
- Ping system
Fog of War
- Vision ranges
- Team visibility
- Strategic positioning
- Map awareness
AI Systems
- Minion waves
- Turret targeting
- Lane pushing
- Objective control
Strategic Depth
- Lane management
- Structure objectives
- Team coordination
- Vision control
Related Files
Leo.ts- Player championMinion.ts- Lane creepsTurret.ts- Defensive towerInhibitor.ts- Base structureTurretProjectile.ts- Turret attacksLegendsPing.ts- CommunicationLegendsMinimap.ts- Map UILegendsTerrain.ts- Map generationLegendsVisionSystem.ts- Fog of warLegendsCameraSystem.ts- Top-down cameraLegendsHealthbarSystem.ts- HP barsLegendsAbilityBarSystem.ts- Ability UI
Next Steps
Build
Another Three.js 3D game
Strike
Team-based competitive gameplay