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 theCreep.moveTo
method.
These features are supported in private server v2.3.0.
awesome! :O
Hei, new player here :)
Looks great. Those new visual features seem to throw an error in the tutorial:
Game.spawns['Spawn1'].room.visual.text(
...)
A. this is fscking great!
B. does the visuals not being saved to the Database mean that they will not be viewable in the room replay mode?
This issue should have been fixed yesterday, please try to refresh your client.
Correct.