io-game is a networking prototype using sockets and express to communicate over the network, p5.js for the graphics and input, and electron.js for cross-platform support. The end goal is to create a online RPG syncing over various elements such as NPCs, chat messages and other transforms.
Thanks to electron the game has the potential to run on Windows, Linux, Mac and any web browser.
Due to the limitations of the p5.js graphics library and the complexity of three.js, this project has been discontinued and is now a relic in time. I'm still open to working on it if anyone has any suggestions.
Feel free to contact me on Discord ( valk#3277 ).
npm i -g yarn
localhost:7777/in your browser
If you're using nodemon, the server will automatically restart whenever code has been changed. If you ever need to restart the server manually you can do so with the
rs command. Nodemon is used by default when using
yarn dev:server . You can use
node . instead if you prefer.
yarn build to build the electron app.
The server will spit out errors directly to the server console. If you're using nodemon, it will restart the server when changes are made to any of the files.
Viewing the developer console depends on which browser you're using. Here are some hotkeys to take note of.
An external debugger will automatically be attached if you run the app through
yarn dev:client . Note that this has not been tested and may not even be the right way to go about debugging electron.