Use rot.js addons for game architecture patterns
masterThe addons directory provides skeleton files and utility modules designed to be reused and adjusted for common game design patterns and architecture. These modules can be integrated into your project to handle messaging, coordinate systems, and entity management.
Available modules include:
pubsub.js: A simple publish-subscribe implementation for cross-component messaging and notifications.xy.js: Utility for handling 2D coordinates.game.js: A sample main namespace structure.level.js: An empty level container that encapsulates entities.entity.js: An abstract class for displayable game entities.being.js: A rudimentary implementation of a game 'being'.player.js: A specialized 'being' implementation with keyboard controls.textbuffer.js: A utility for buffering text output and displaying it within a subset ofROT.Display.sample.html: A complete, working game example featuring a display, level/map, and an interactive player character.