Open source graphics engine

We’re happy to announce that our graphics engine is now released on GitHub as an open source project! It is based on PixiJS and contains the same renderer code and images we use in our official game client. You can use it in your own projects of two major types: custom graphics for private servers, and third-party GUI utilities.

Custom graphics for private servers

The ptr branch of the private server npm package (starting from 3.1.0-beta.4) contains new functionality which you can use to provide your own graphics for any game object types: both standard game types and new custom types. It allows you to create your own game objects with custom graphics like this:

The library supports vector graphics, raster textures and sprites, animations, transforms, visual effects, etc. We’re going to use its potential in full in the future, and we’re also looking forward to seeing what you can come up with too.

We’ve prepared some mods examples for you to get started with the custom graphics. Use npm install screeps@ptr in order to install the supported server branch.

Third-party GUI utilities

You can integrate the renderer library to your own application which would display Screeps game objects in the same way as in the official game client. For example, you can develop a standalone room history viewer, a third-party game client, etc. You can add samples from real game object data and visualize it exactly as they are shown in the game.

The project repository contains a demo app which is a good reference of how to integrate the renderer on a web page in your own project. Also, please refer to the documentation and the API reference.

Have comments or feedback? You can discuss this post here.