Developer postOriginal post (opens in a new tab)

New RoomVisual API

We introduced an exciting new major feature - RoomVisual API. Now you can draw simple shapes (lines, circles, rectangles, polygons, text labels) right at the game field in any room to debug your code and/or display arbitrary info. For example, you can visualize your creep path (using the new visualizePathStyle move option), plan your future structures placement, display debugging text messages including Unicode emoji, and many more. These visuals are visible only to you, and all API calls have no added CPU cost.

API Changelog

  • Added new RoomVisual global prototype.
  • Added new Room.visual property.
  • Added new visualizePathStyle option to the Creep.moveTo method.

These features are supported in private server v2.3.0.