I changed the builder & upgrader code so that they would withdraw energy from spawn instead of harvesting it. At this point, I decided to change to only having the harvesters go to the energy points. The harvesters still blocked everything up when spawn was full of resources and until the first extension finished being built they had nowhere else to go. I quickly realised that I needed to change tactic. Extensions would allow me to store more energy and give the builder something to do. The short term solution was to give everyone something to do.
#SCREEPS CONTAINER UPGRADE#
I hadn’t fixed the earlier problem and it was dumb luck that the upgrader ended up at the front of the queue enough times to upgrade the Room Controller. RC2Īrriving at RC2 happened without me thinking it would. This usually meant waiting until the unit in that square died and I had to spawn a new one. My builders and harvesters were waiting in the only spot I can gather resources from for something to do. The tutorial code didn’t handle what to do if there were no jobs to complete. At this point, I was still reading the docs and had run into an issue that needed addressing straight away. RC1įor the first Room Control Level, I ran the tutorial code with a couple of minor changes.
![screeps container screeps container](https://bencbartlett.files.wordpress.com/2018/01/aidiagram.png)
It is your job to write the code for this. When you select your first room and place your first spawn you start with an empty loop function. If anyone from screeps is reading this, a screeps screensaver that shows a given room would be awesome.
![screeps container screeps container](https://cdn.dribbble.com/users/506/screenshots/2579800/json-optimized.gif)
I like having it open just to watch my creeps go about their business.
![screeps container screeps container](https://i.ytimg.com/vi/ZtmJP1PD_hQ/hqdefault.jpg)
Over the past few days, I have fallen for this game. The target market for Screeps is very narrow but to someone like myself it is an amazing game. You instead write a program to govern their movements and actions. Unlike traditional games you don’t have direct control over your units. Screeps is an MMO RTS aimed at programmers.