First working version of new system.

This commit is contained in:
DouweRavers
2022-04-30 14:23:44 +02:00
parent 3e962ed04a
commit 744b4a2478
9 changed files with 241 additions and 10 deletions

View File

@@ -2,15 +2,21 @@
* Basis of the entire system. Everything will be managed from here on out.
*/
const rooms = require("_rooms")
const spawns = require("_spawns")
const creeps = require("_creeps")
module.exports = {
// Gets called when recompiling and when Restart command is called.
start: function () {
rooms.start();
spawns.start();
creeps.start();
},
// Gets called every tick.
update: function () {
rooms.update();
spawns.update();
creeps.update();
}
}