Valks-Games / io-game

Synchronizing various RPG elements over the network with sockets.
MIT License
20 stars 3 forks source link
electron express game-development p5js socket-io

Preview

[![Build status][build]][build-url] [![Quality Gate Status][quality]][quality-url] [![Lines of Code][lines]][lines-url] [![Bugs][bugs]][bugs-url] [![GitHub license][license]][license-url] [![Issues][issues]][issues-url] [![GitHub stars][stars]][stars-url] [![GitHub forks][forks]][forks-url]

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.

Setup

  1. Clone https://github.com/valkyrienyanko/io-game-v2.git
  2. Download and install LTS Node.js
  3. Make sure you have yarn installed npm i -g yarn
  4. Run yarn install
  5. Start server with yarn dev:server
  6. Create a client by opening up localhost:7777/ in your browser

Building

Use yarn build to build the electron app.

Libraries