Writing Screep bots with Typescript
-
I created a Typescript skeleton app for Screep. You can easily get writing your bots with Typescript
Installation instructions included on GitHUB page.
https://github.com/MarkoSulamagi/Screeps-typescript-skeleton
Sample project using this skeleton
https://github.com/MarkoSulamagi/Screeps-typescript-sample-project
------------------
Also created npm package for Screep Typescript type declaration files. Everything should be according to Screep's current API.
I hope we can keep this up to date in long term.
https://github.com/MarkoSulamagi/Screeps-Typescript-Declarations
All contributions are welcome
Both projects are based on vanhouc's TS project.
-
Edited first post.
Created npm package for Typescript type declaration files. I updated vanhouc's library.
-
Typescript declarations project
v1.1.4 2016-02-07
- Updated RoomPosition declarations
- Removed HashMap from Game interface. It caused migration issues from JS to TS.
Typescript skeleton application
2016-02-07
I added sample project using skeleton app to GitHUB.
You can find it here: https://github.com/MarkoSulamagi/Screeps-typescript-sample-project
-
Typescript declarations project
v1.2.1 2016-02-08 ( http://support.screeps.com/hc/en-us/articles/206897739-Changelog-2016-02-08 )
- New body part (CLAIM)
- Documentation updates to support claim
- Added Creep.dismantle()
-
v1.4.1 2016-03-10
- Added Extractor, Lab, Terminal, Market, Mineral objects
- New constants
- Read more from docs
v1.3.2 2016-03-10
- Updated all interfaces from 19.02 changelog and added docs to PathFinder
-
v1.4.3 2016-03-18 Commited by NhanHo
- Added typings for various list of global objects in Game
- Add serializePath and deserializePath to Room
- Allow optional argument and properties in transferEnergy and PathFinderOps
Special note about the commit:
When using this API, you can't access creeps in manner suggested in Screeps' tutorial anymore:
Game.creeps.Worker1 // This is not allowed by TypeScript compiler
Instead, you have to use
Game.creeps['Worker1']
-
v1.5.2 2016-03-19
- RoomPosition opts fix. Filter and algorithm are optional.
-
Since I'm not developing Screeps' bots anymore and not following the game very much, then NhanHo was willing to take over the Typescript API project. You can still use the same library. It was just transferred to NhanHo.
I will still continue to support the skeleton app.