Structure
The starter separates client boot, server boot, shared client config, and modules.client.ts
client.ts starts the browser client in MMORPG mode:
server.ts
server.ts creates the game server and registers your providers:
standalone.ts
standalone.ts runs the client and server together for a standalone RPG:
config/config.client.ts
config.client.ts contains the common client setup shared by MMORPG and standalone RPG:
provideClientGlobalConfig()
provideClientGlobalConfig() is the client-side place for shared global configuration.
It can hold built-in options such as keyboardControls, and also any custom object you want
to expose everywhere in the client through dependency injection.
keyboardControls, RPGJS injects the default bindings automatically:
inject(GlobalConfigToken):