The world's first MMO sandbox game for programmers
Screeps means “scripting creeps.” It’s an open-source sandbox MMO RTS game for programmers, wherein the core mechanic is programming your units’ AI. You control your colony by writing JavaScript which operate 24/7 in the single persistent real-time world filled by other players on par with you.
- Main
- Game main loop
- Defense
- Controls defense units.
- Memory
- Garbage Collector
- Scheduler
- Schedules tasks for creeps based on their roles.
- Settings
- Game settings
- Spawner
- Spawns new creeps based on the settings.
- Prototypes
- Prototypes game objects.
- Container Miner
- Mines the energy from the sources and put them into a container.
- Harvester
- Collects the energy and fills it into the spawn and extractors.
- MacGyver
- Builds new structures.
- Mechanic
- Repairs the structures.
- Trump
- His duty is to build up a wall, to keep invaders out of the room.
- Upgrader
- Upgrades the room controller, to level up the RCL (Room Control Level) and unlock new buildings.
- Trucker
- Prevents container overfilling, by transporting energy from containers to room storage.
-
Install Dependencies with
npm install
. -
Create a
.screeps.json
file with the following content:{ "email": "foo@bar.com", "password": "SecretPassword", "branch": "default", "ptr": false }
-
Then run
grunt screeps
.
- Create a scheduler for energy harvesting, sometimes the creeps get to the container which is empty yet.
- More complex spawn system than just a priority list.
- Expand harvesting to neighbor rooms.
- Make more use of the memory to save cpu power.