

io-game - Synchronizing various RPG elements over the network with sockets.
source link: https://github.com/valkyrienyanko/io-game
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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 ).
Table of Contents
Setup
- Clone
https://github.com/valkyrienyanko/io-game-v2.git
- Download and install
LTS
Node.js - Make sure you have yarn installed
npm i -g yarn
- Run
yarn install
- Start server with
yarn dev:server
- Create a client by opening up
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.
Building
Use yarn build
to build the electron app.
Debugging
Server
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.
Browser
Viewing the developer console depends on which browser you're using. Here are some hotkeys to take note of.
Chrome Firefox OperaCTRL
+ SHIFT
+ J
CTRL
+ SHIFT
+ J
CTRL
+ SHIFT
+ I
Electron
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.
Libraries
Recommend
-
99
README.md
-
85
README.md Two-way OneDrive Synchronization Client DISCLAIMER: This utility is in its early stage. Although it is designed to fail as soon as possible when conflicts are detected in order to...
-
48
If you have developed code for long enough, probably you have faced the situation in which a task takes longer to complete and in the meantime, your program can't perform any other task. Most likely you can't even politely...
-
18
Synchronizing Idle, Walk and Run animations with a NavMeshAgent in Unity #unity3d Written by @kylewbanks on Aug...
-
7
Synchronizing images with casync Lennart Poettering Video Player
-
14
0:00 / 35:43 ...
-
8
The Vulnerabilities Research Of Valve’s Game Networking SocketsAugust 14th 2021 new story5
-
6
Avro Communication over TCP Sockets Reading Time: 2 minutesStoring/Transferring object is a requirement of most applicatio...
-
2
Routine is boring. Also, it is not a secret that almost everyone suffers from it. This is why a gamification is a vital tool for dealing with annoying monotonous everyday tasks. But what exactly gamification is, how does it work, and if it is poss...
-
5
That time when SVG almost got network support for raw sockets If you think C++ or PDF specs are bloated, wait until you find about the old W3C Drafts for SVG… Nowadays, when you talk about SVG, it’s mostly...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK