firstRTS is an open-source real-time strategy (RTS) game developed with Godot 4.2, styled after StarCraft and Red Alert.
GitHub: https://github.com/igofreely/firstRTS
Core Features
- Deterministic lockstep architecture: Online multiplayer and replays share the same command execution chain, so replays can fully reproduce a match
- Procedural map generation: Noise-based terrain with fixed spawn points and symmetric resource layouts
- Complete RTS gameplay loop: Harvest resources → build structures → produce units → scout and attack → victory/defeat conditions
- Multiple fog-of-war modes: No fog, full blackout, visible terrain, and permanent reveal after exploration
- Visual replay system: Progress bar, playback speed, pause, player statistics, command logs, camera modes
- Minerals: Basic resource for construction and unit production
- Energy: Consumed by advanced units and buildings
- Default starting resources: 400 minerals, 200 energy
- Steel Alliance
- Shadow Tech
- Configurable fog of war, game speed, starting resources, and language
- AI difficulty logic implemented (economy, unit production, attack pacing)
- LAN room communication via ENet (UDP)
- Lockstep command synchronization ensures consistent execution across clients
- Default port: 7777
- Automatic recording during matches (both single-player and online)
- Progress control, speed adjustment, pause, command logs, and statistics panels
- Replay directory:
user://replays/ - Engine: Godot 4.2 (GDScript)
- Networking: ENetMultiplayerPeer + RPC
- Sync model: Lockstep (fixed tick + input delay)
- Pathfinding: Path planning + local obstacle avoidance
- Map system: FastNoiseLite procedural generation
- Fog of war: Real-time updates via Image/ImageTexture
- Localization: Custom LocalizationManager translation tables
- W/A/S/D or arrow keys: Move camera
- Left mouse: Select units
- Right mouse: Issue move/interact commands
- H: Jump camera to main base
- B: Show build shortcut hints
- Alt+Q/W/E/R: Place barracks/factory/defense tower/power plant
- Enter: Open/send chat
- Esc: Close chat/panels or open game menu
- Full RTS main loop (harvesting, building, combat, win/loss)
- Single-player AI matches
- LAN multiplayer lobby and battles
- Replay recording and playback system
- Multilingual UI (Simplified Chinese / Traditional Chinese / English)
- More factions and tech tree branches
- Richer unit abilities and counter relationships
- Replacing procedural map rendering with TileSet art
- More robust reconnection and anti-cheat mechanisms
- Campaign levels and scripted event systems
Resource System
Factions
The two factions differ in unit naming and stat design (Shadow Tech has shielded units).
Game Modes
Single Player (vs AI)
Multiplayer (LAN)
Replay Mode
Tech Stack
Controls
Implemented Features
Possible Extensions
Version
v0.1.0 Alpha