This repository has been archived on 2024-02-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2016-09-18 15:47:08 +02:00
.gitignore Added .gitignore entry for node_modules and removed old galaxy.json 2016-06-28 21:39:02 +02:00
data.json First commit 2016-06-28 16:14:00 +02:00
galaxygen Changed !/bin/env to !/usr/bin/env, fixes #2 2016-06-29 23:54:23 +02:00
index.js Fixed issues with inconsistent PRNG mechanics 2016-09-18 15:44:47 +02:00
LICENSE.md Added a test command and added npm stuff 2016-06-28 21:25:32 +02:00
map.js Made several changes and added stations and more 2016-08-11 13:35:36 +02:00
package.json Release v1.0.1 for npm 2016-06-28 23:25:34 +02:00
planet.js Fixed issues with inconsistent PRNG mechanics 2016-09-18 15:44:47 +02:00
prng.js Fixed issues with inconsistent PRNG mechanics 2016-09-18 15:44:47 +02:00
README.md Updated the README.md to clarify changes 2016-09-18 15:47:08 +02:00
star.js Fixed issues with inconsistent PRNG mechanics 2016-09-18 15:44:47 +02:00
test.js Added a test command and added npm stuff 2016-06-28 21:25:32 +02:00
twister.js First commit 2016-06-28 16:14:00 +02:00
utils.js Moved prototype extenders to utils.js 2016-06-28 16:16:05 +02:00

galaxygen

galaxygen in urxvt

A quite complex galaxy generater based on the work seen here. I'm currently making a game that needed a generated galaxy, so I thought that someone else could maybe use this tool as well. In this newer version (v1.1.0) I took care of some inconsistencies that caused the program to spit out different galaxies on the same seed.

Have fun!

Install :

npm i galaxygen -g

Usage :

Usage:
  galaxygen [OPTIONS] [ARGS]

Options:
  -s, --seed STRING      The seed you want to generate with. (defaults to '1234')
  -a, --amount NUMBER    The amount of stars you want to generate. (defaults to 1000)
  -o, --output STRING    The output file (if enabled). (defaults to printing JSON to stdout)
  -h, --help             Display help and usage details

Contributing

If you want to add something to the project or add other factors to this generator, feel free to either create an issue or to clone the repository and submit a pull request!

All help is welcome!

Original

The original work of this galaxy generator can be found at http://loewald.com/galaxy.

LICENSE

Check out the LICENSE file for more information.