This is the beginnings of a level/map generator we're creating for a browser game.
Test usage so far while specifying dimensions:
# node test.js 0 10 0 10 ----------- -------0--- ----------- ----------- ----------- ----X------ ----------- -------0--- ----------- ----------- -----------
With default test dimensions:
# node test.js ------------------------------------X-X-- --------------0---X-----------X----0----- ------------X---0------------------0----0 ----------------0-X--------0------------- -------------------0-X-X--------0----0X-- ----------------------------------------- -------------------------------0----X---- ----------------X-----------X------------ --X------0---------------0--------------- --------------0------X------------------- 0---------------------------------------- -----------0---00--0--------------------- -----------------------------X--X-------- ------0----------0--------------------0-- ----0---X--X----------------------------- --------------------------------------0-- ----------------------------------------- -0-0---------0-------X------------------- ----------X-------------0---------------- -------------X--------------0------00---- -----------0----0---------00-------------