Esotere client is the gateway to the topology world. Message directly with fellow wizards and roam a fantasy-themed overworld populated with artifacts from other on-chain realities.
The client UI uses Electron to run the app natively on your desktop. Simple-peer is used to establish WebRTC connections between peers. Phaser 3 runs the platformer. Vite is used for bundling modules.
- Text Chat
- Voice chat
- Signalling
- Shared platformer world
Install Node.js (https://nodejs.org/en/download/), update NPM version by running
sudo npm install npm --global
then install yarn by running
sudo npm install --global yarn
At root folder, run
cd client/client && yarn
then run
cd ../electron && yarn
Inside client folder you can run Phaser with Typescript, Rollup and Vite but without Electron.
Command | Description |
---|---|
yarn or npm install |
Install project dependencies |
yarn dev or npm run dev |
Builds project and open web server, watching for changes |
yarn build or npm run build |
Builds code bundle with production settings |
yarn serve or npm run serve |
Run a web server to serve built code bundle |
Inside electron folder you can run Electron with Phaser! You can run in dev mode or production mode for the final preview and release.
Command | Description |
---|---|
yarn |
Install project dependencies |
yarn dev |
Builds project and open web server from client folder and Electron, watching for changes |
yarn preview |
Starts a preview for a final release |
yarn build |
Build app with Electron |
Once the app is loaded select a username and hit submit
.
Then click + initialize connection
. Copy the JSON string in Your ID
and send this to the peer you are connecting to.
Past in the response JSON into Other id
and select connect
. Click Done Connecting
and start chatting with your peer.
Once the app is loaded select a username and hit submit
.
Then click + Respond to Connection Request
. Copy the JSON string from your peer and paste this string into Other ID
. Select connect
and share the resulting Your ID
with your peer. Click Done Connecting
and start chatting with your peer.
- https://github.com/waliente/phaser-typescript-electron
- https://github.com/ourcade/sidescrolling-platformer-template-phaser3
plugins https://rexrainbow.github.io/phaser3-rex-notes/docs/site/ui-textbox/
very useful notes - https://rexrainbow.github.io/phaser3-rex-notes/docs/site/