lemilonkh / faraway-server

Server backend with the procedural generation tools for the game FarAway by YourWorstFriend
https://yourworstfriendorg.wordpress.com/portfolio/far-away/
MIT License
0 stars 0 forks source link
game-server gamedev nodejs procedural-generation procgen simulation story-generation

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 git@github.com: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