Hello and welcome,
Your project is file-based, and modules are specified in rpg.toml
. Here's how to get started:
- Project Structure:
main/
: Main module.
events/
: Define game events.
spritesheets/
: Character sprites.
worlds/
: World maps.
player.ts
: Server-side file for the connected player.
https://docs.rpgjs.dev/guide/autoload.html
- rpg.toml Configuration:
Ensure your rpg.toml
includes:
modules = [
'./main'
]
Here, it loads the modules. The main folder is therefore included, and will take well-known files such as "player.ts", "server.ts", etc.