What do you do when you want to make a simulation sandbox to play around with evolving creatures and be all god-like and stuff, because you just have those kinds of hobbies? That's right, you start building your own Unity/Processing framework tingemejingy in JavaScript.
This library runs a node server that simulates elements in your world and stores the data in a firebase database. It also includes a frontend renderer which can then display the results. For now it is quite restricted. This project is still very much under construction.
Think of a better name- Write a better Readme
Oke, slight improvement- Do more improvement
- Run
npm install
in the project folder - Run
bower install
in the project folder - Add a
serviceAccountCredentials.json
to the root of the project folder. Read the official documentation on how to do that, - Add your firebase credentials to a
/resources/config.js
, have a look at/resources/config.js.example
to see how to set it up. - Run
gulp
- Open the
resources
folder in your terminal and runnode app.js
- Open the
app/index.html
in your browser. - Be confused, because this readme does not tell you at all what you just installed..
Optional
- create a vhost called
fliebert.js
and point it to theapp/index.html
- instead of
gulp
rungulp watch
. This wil automatically update the script when you make changes. You know, in case you want to mess around with stuff.
When I run the script I get simulation.js:533 Uncaught ReferenceError: module is not defined
This is by design, not because I don't want to figure out modules for frontend javascript. No worries, nothing is broken.