Skip to content

daviddwlee84/Screeps

Repository files navigation

Screeps

Quick Setup

npm init

Autocompletion JavaScript on VSCode

npm install @types/screeps @types/lodash@3.10.1

Alternative: Use ScreepsAutocomplete

  1. Download Garethp/ScreepsAutocomplete: Autocomplete for Screeps and place it in the same directory
  2. Create _reference.js like this ScreepsAutocomplete
  3. Create jsconfig.json to setup the JavaScript project and fill with { "compilerOptions": { "target": "ES6" }, "exclude": [ "node_modules" ] }

Committing Script

  1. Install grunt CLI tool npm install -g grunt-cli
  2. Install grunt and grunt-screeps npm install grunt grunt-screeps grunt-contrib-watch
  3. Add the Gruntfile.js like this
  4. Use grunt screeps to upload files!
  5. Use grunt (watch) then it will listen all the modification and auto upload!

Console Without Opening Game

  1. Install screeps-multimeter by npm install screeps-multimeter
  2. Run multimeter and it will ask for some information
    1. API token (Authentication Tokens | Screeps Documentation)
    2. Shard name (the world you're in)
    3. Filename for configuration (default is screeps-multimeter.json)

I've add "scripts": { "start": "multimeter" } in the package.json, so I can use npm start to invoke multimeter

Resources

Updates

Third Party

Other Languages

Game Turorial

Article

Others' Bots

Appendix

Other Scripting Game

Programming Language

JavaScript Tutorial

TypeScript

TypeScript vs. JavaScript

Gaming AI

Starcraft II

Hearthstone

Releases

No releases published

Packages

No packages published