Skip to content

Proof of concept for a procedural calendar generator depending on the planet and moon orbital parameters.

License

Notifications You must be signed in to change notification settings

THeK3nger/calendar-generator

Repository files navigation

This is a demo page in which it is possible to procedurally generate a calendar from the orbital parameter of the planet.

Invent a planet, set its mass, the distance from the star, the distance from its moon and generate a calendar that it is astronomically correct!

Build

The calendar generator can be accessed following this link.

If you want, you can build your local version in three simple steps. First, install TypeScript.

npm install -g typescript

Then clone this repository

git clone https://github.com/THeK3nger/calendar-generator.git

Then, build it! Build system is based on Webpack.js.

npm install && npm run build

You will find everything in the dist folder, ready to be deployed. You can also start a local web-server with:

npm start

Known Issues

Actually, the generator only works in a reasonable way for earth-like planets. You can have fast spinning planet, or planets with very long years, but you will obtain improbable calendars with hundreds of months or months lasting more than a year.

I will address the problem with such exotic planets in the future.

Feature Backlog

  • Lunar Phases
  • Seasons
  • Astrological Features (zodiac-like)
  • Multi-Year Cycles (e.g., like in the Chinese Calendar)
  • Possibility to have months different from the "lunar month".
  • Multi Start Systems
  • Multi Satellite Systems

Contribute

I am open for external contributions, of course! Fork this repo an open a pull request.