lemilonkh / faraway-server

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

Home Page:https://yourworstfriendorg.wordpress.com/portfolio/far-away/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://yourworstfriendorg.wordpress.com/portfolio/far-away/

License:MIT License


Languages

Language:JavaScript 83.3%Language:HTML 8.6%Language:CSS 5.5%Language:Shell 1.4%Language:Batchfile 1.2%