A solar system generator in html + vanilla js. This solar system generator was partialy generated with copilot. I aimed to test generative IA capabilities. Then the project became a way to create a real solar system generator in a way that we can use it for real purposes like :
- Creating a solar system for a role playing game
- Creating a solar system for a science fiction novel
- Creating a solar system for a science fiction movie
- Creating a solar system for a science fiction video game
- Creating a solar system for a science fiction board game
You can try the current state of the project here.
- Generate a solar system with a star and a random number of planets. Done
- Stars in background are randomly generated. Done
- Stars in background are randomly blinking. Done
- Suns can be of different types (red dwarf, yellow dwarf, blue giant, etc.). Partially done
- Planets can be of different types (terrestrial, gas giant, ice giant, etc.). Partially done
- Gas clouds in background are randomly generated. Partially done
- Suns can be of different types (red dwarf, yellow dwarf, blue giant, etc.). Partially done
- Planets can be of different types (terrestrial, gas giant, ice giant, etc.). Partially done
- Solar systems can be saved in a json file
- Solar systems can be loaded from a json file
- Can zoom in and out on the solar system
- Can move the solar system in the viewport
Just open the index.html file in your browser.
You need to have nodejs installed on your computer. Then, run the following commands:
npm install
npm run build
The build will be in the dist
folder.
Just fork the project, make your changes and submit a pull request.
Please use the issue tracker to report any bug.
- revilofr - Creator and maintainer
- rav_yoli - Twitch streamer using it to create a solar system for a role playing game
If you use this project, please let me know so I can add you to the list! :)
This project is under the Creative Commons license. See the LICENSE file for more details. Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
- Share — copy and redistribute the material in any medium or format
- The licensor cannot revoke these freedoms as long as you follow the license terms.
- Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- NonCommercial — You may not use the material for commercial purposes.
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
- Notices:
- You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
- No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.