A Steve is Born
25/04/2021 - From initial project setup to the first Steve being born
Initial setup
//import { ErrorMapper } from "utils/ErrorMapper";
import { gameLoop } from "loop";
// When compiling TS to JS and bundling with rollup, the line numbers and file names in error messages change
// This utility uses source maps to get the line numbers and file names of the original, TS source code
//export const loop = ErrorMapper.wrapLoop(gameLoop);
export const loop = gameLoop;import { CreepManager } from "managers/CreepManager";
import { SpawnManager } from "managers/SpawnManager";
import { cleanMemory } from "utils/GameUtils";
export const gameLoop = () => {
console.log(`Current game tick is ${Game.time}`);
cleanMemory();
SpawnManager.run();
CreepManager.run();
};
SpawnManager

Last updated