





🌟 Special thanks to our amazing supporters:
✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Benedikt][David Martínez Martí]
RawMemory.setActiveSegments([0,3]);
// on the next tick
console.log(RawMemory.segments[0]);
console.log(RawMemory.segments[3]);
RawMemory.segments[3] = '{"foo": "bar", "counter": 15}';
You can use this feature to store data which is not needed every tick, for example pathfinding caches, or collected statistics. Offloading data structures from Memory to asynchronous segments will allow to save some CPU spent on Memory parsing.
new RoomVisual().circle(30,30, {fill: 'red'});
new RoomVisual('W1N1').rect(10,10,40,40);
This code will display both the circle and the rectangle in the room W1N1, and only the circle in any another room.
new RoomVisual().text('Text 123', 10, 10, {
font: 'bold italic .7 serif',
color: 'white',
backgroundColor: '#88ff88',
backgroundPadding: .3,
stroke: '#005500',
strokeWidth: .15
});
[ 6082 ]
[ 1511 ]
[ 1888 ]