-
Notifications
You must be signed in to change notification settings - Fork 43
Overview of directories and files
Server startup, command parsing, and public file access.
Game configuration. Port, name, etc.
Standard npm package file to ease dependency installation (enabling 'npm install').
All game code is found in this directory.
Initial world setup, container for connected players and areas. Helper functions for broadly grabbing game objects. Core message sending functions.
All in-game commands.
World entity functions; along with character creation supplements.
Dice rolling utility with various helper functions; for example: getStrMod, calExp, getMods
Functions related to parsing room data. Examples: getMerchants, getWaterSources, addItem.
Class skills
Class Spells. Much like skills.js -- but triggered through a command -- generally 'cast'.
Game timers. Things like decay time, in-game time, respawn, random save and a generic AI 'heartbeat' via the onAlive event.
Skeletons for various game objects. Any properties found on the template can be expected to be on the in-game object. Templates are merged into related game objects upon boot via a custom extend method.
The template for all game creatures, including players.
Object template for areas.
Object template for rooms.
Object template for room exits.
Object template for game items.
Template for the time tracking object attached to World.time.