Skip to content

Server backend with the procedural generation tools for the game FarAway by YourWorstFriend

License

Notifications You must be signed in to change notification settings

lemilonkh/faraway-server

Repository files navigation

FarAway Server

Server backend and procedural generation tools for the game FarAway by YourWorstFriend

Installation

  1. Install NodeJS (you know what to do)
  2. Install pomelo:
    sudo npm i -g pomelo (GNU/Linux || OSX) ||
    npm i -g pomelo (Windows)
  3. Clone this repository: git clone [email protected]:lemilonkh/faraway-server.git
  4. cd faraway-server
  5. sh npm-install.sh (GNU/Linux; OSX) ||
    npm-install.bat (Windows)

Run

Start the game server:

cd game-server
npm start [OR] pomelo start

Start the web server:

cd web-server
npm start [OR] pomelo start

Test the ProcGen pipeline on the command line

cd game-server
npm run procgen
xdg-open ../exaples/output_[...].png # for GNU/Linux

[OR]

cd game-server/procgen
node world.js > myFile.png

Examples

Simplex noise

Simplex noise

Fractal noise

Fractal noise

Combined, with index as channel

Combined, with index as channel