davidmakoto / Screeps

Simple scripts that automate unit actions used for playing Screeps game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screeps

The code above is for a game called Screeps. In this real time strategy game, you can essentially only use scripts to interact with the game itself, which the goal is to have the game run itself autonomously. For a more indepth summary of the game structure visit Screeps.com. Below is a description of the code.

Rough summary of the code:

  • Each "tick" (unit of time, ~4 seconds) of the game runs the main function
  • There are a number of important functions in "role.auxilaryFunctions.js" that calculate realtime information to determine spawning new creeps
  • The majority of the code is in the module "role.spawnCreeps.js" which determines what steps can be taken given the current resources and existing creeps
  • The rest of the modules are instructions that run each "tick" of the game for specific roles that each creep carries

About

Simple scripts that automate unit actions used for playing Screeps game


Languages

Language:JavaScript 100.0%