How does Screeps work?

How does Screeps work?

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.

What code does Screeps use?

Screeps is a strategic MMO where you write your own AI. The language used is NodeJS-like Javascript with the lodash library included, however you can use any language which compiles to Javascript in order to write your code.

How do you make a creep in Screeps?

Creeps are created at player spawns, and are made up of several body parts – each capable of performing various actions (e.g. – harvesting energy, moving around the room, building structures, and engaging in combat).

Where can I get a tutorial for screeps?

To get started for this tutorial we just need to go into the Screeps simulation room. So go to Screeps.com, scroll down to the “Live Demo”, and for “Simulation Mode” select “Training”. This will bring you into the training room for Screeps ( https://screeps.com/a/#!/sim/survival ).

Where can I get a training room for screeps?

So go to Screeps.com, scroll down to the “Live Demo”, and for “Simulation Mode” select “Training”. This will bring you into the training room for Screeps ( https://screeps.com/a/#!/sim/survival ). You don’t even need to register or anything to follow along here. The first thing it’s asking you to do is place your spawn.

How often do you run code in screeps?

Any code you put inside of this function that’s being exported will be run once per tick. So anything you want to do with your creeps or your structures, all that code needs to go within these two curly brackets, or at least be initiated from here.

Which is the main game loop in screeps?

So the first bit of code that they give you when you’re starting out is this module.exports.loop equals some function. So what this is, it’s the main game loop that gets exported and run by the Screeps server. Any code you put inside of this function that’s being exported will be run once per tick.