/LiveScreep

A codebase for Screeps game.

Primary LanguageJavaScriptMIT LicenseMIT

LiveScreep

Bunker layout in real world

中文介绍

Latest Release => v0.5-Bunker

  • Base room plan system(Schedule all structures in the base room and then build/rebuild those structures)
  • Implemented drop-mining, container-mining, link-mining and remote-mining(including on-demand builder/guardian).
  • Simple tower logic for defending/healing/repairing.
  • Guardian will try stay in rampart and fight invaders
  • Automatically active safe mode and send notification to player if the room can't handle the attack
  • Burn extra energy of storage to controller(more upgrader, bigger upgrader)
  • Link among controller, center(a dedicated creep will redistribute energy from it) and sources(including links near exits for remoteHauler)
  • Prespawn creeps to reduce time waiting for creeps to be spawned
  • Task system which manipulate spawn queue and adjust target of chosen creeps
  • Balance energy among owned rooms through terminal
  • Sell extra resources for credits through terminal
  • Share observers in all room to get vision of rooms

Declaration

This repo is the codebase of AI which is only used in Screeps.

Anyone who are interested in playing Screeps may learn something from this repo. But you better not to used this repo in official world directly since Screeps is a game of programming instead of a game of cheating.

Getting Started

NOTE: This codebase is still under development, so be careful to directly use it in official screeps world. And you can always read the code, readability is guaranteed :)

  • Check Documentation
  • Clone this repo
  • npm install to install dependencies

Commit code to Screeps server

  • Check GruntJS and Install grunt-cli
  • Write a .screeps.json which contains email, branch, ptr, password and private_directory(if you want commit it to local for private server) in root directory
  • grunt to push code to Official Screeps Server
  • grunt private to push code to Private Screeps Server