{"id":22756905,"url":"https://github.com/clemix37/chrono-cosmos","last_synced_at":"2026-05-10T05:50:28.875Z","repository":{"id":196943324,"uuid":"696761535","full_name":"Clemix37/chrono-cosmos","owner":"Clemix37","description":"🕹️ Idle Web game about traveling through space \u0026 time 🚀","archived":false,"fork":false,"pushed_at":"2024-10-15T16:28:00.000Z","size":1119,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-16T22:19:08.381Z","etag":null,"topics":["game-development","javascript","javascript-game","typescript","typescript-game"],"latest_commit_sha":null,"homepage":"https://clemix37.github.io/chrono-cosmos/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clemix37.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-26T11:42:36.000Z","updated_at":"2024-10-15T16:28:04.000Z","dependencies_parsed_at":"2024-06-19T15:25:01.147Z","dependency_job_id":"f353e8b9-f147-4926-af46-025422fbecfd","html_url":"https://github.com/Clemix37/chrono-cosmos","commit_stats":null,"previous_names":["clemix37/chrono-cosmos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemix37%2Fchrono-cosmos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemix37%2Fchrono-cosmos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemix37%2Fchrono-cosmos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemix37%2Fchrono-cosmos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clemix37","download_url":"https://codeload.github.com/Clemix37/chrono-cosmos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290648,"owners_count":20753730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game-development","javascript","javascript-game","typescript","typescript-game"],"created_at":"2024-12-11T07:16:12.410Z","updated_at":"2026-05-10T05:50:28.870Z","avatar_url":"https://github.com/Clemix37.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Version](https://img.shields.io/badge/version-v0.5--alpha-purple)\n![License](https://img.shields.io/github/license/Clemix37/chrono-cosmos)\n![Build](https://img.shields.io/badge/build-passing-brightgreen)\n![Made with](https://img.shields.io/badge/made%20with-TypeScript-blue)\n![Contributions](https://img.shields.io/badge/contributions-welcome-orange)\n![GitHub Repo stars](https://img.shields.io/github/stars/Clemix37/chrono-cosmos?style=social)\n![Tests](https://github.com/Clemix37/chrono-cosmos/actions/workflows/tests.yml/badge.svg)\n\n# ChronoCosmos\n\n🕹️ Idle Web game about traveling through space \u0026 time 🚀\n![ChronoCosmos](https://github.com/Clemix37/chrono-cosmos/blob/main/img/chrono_cosmos_v0.5.png?raw=true)\n\n## History\n\nYou are Jack, a time-traveler and space explorer. Your main objective is to restore life on this planet, that once was destroyed because of Humans' space programs.  \nTake great care, you could die outside of your base ...\n\n## Game loop\n\nCollect energy =\u003e Buy / upgrade components =\u003e unlock resources =\u003e travel further =\u003e upgrade spaceship =\u003e repeat\n\n## Design\n\nThis was the desirable design (Generated by ChatGPT v3):  \n![ChronoCosmos](https://github.com/Clemix37/chrono-cosmos/blob/main/img/maquette_dall_e_chatgpt.png?raw=true)\n\n## Development\n\nSelection of the character is still in development.\nYou enter the game by selecting a player and its statistics.\n\n## Tests\n\n### Formulas\n\n`toDecimal` should round a decimal to the number of decimals given in arguments, by default 2  \nEx:\n\n-   `toDecimal(2.4156844)` =\u003e `2.42`\n-   `toDecimal(2.4136844)` =\u003e `2.41`\n-   `toDecimal(2.4156844, 3)` =\u003e `2.416`\n-   `toDecimal(2.4136844, 3)` =\u003e `2.414`\n-   `toDecimal(2.4156844, 4)` =\u003e `2.4157`\n-   `toDecimal(2.4136844, 4)` =\u003e `2.4137`\n\n`formatEnergy` should format the energy based on the number itself\nEx:\n\n-   `formatEnergy(0)` =\u003e `0`\n-   `formatEnergy(1)` =\u003e `1`\n-   `formatEnergy(100)` =\u003e `100`\n-   `formatEnergy(999)` =\u003e `999`\n-   `formatEnergy(1e3)` =\u003e `1K`\n-   `formatEnergy(1e4)` =\u003e `10K`\n-   `formatEnergy(999999)` =\u003e `999.999K`\n-   `formatEnergy(1e7)` =\u003e `10M`\n-   `formatEnergy(1e10)` =\u003e `10B`\n\n### Data\n\n`getRandomFromArray` should return random defined element from array  \n`generateRandomId` should return a random id based on current date for uniqueness\n\n### Config\n\n`getDefaultConfig` should return the default config without player's name, level to 0 and the status \"not started\"\n\n### Character\n\n`Character` should be a class containing id, name, age, speed, intelligence, strength properties and should return a template with `getDisplayTemplate`  \n`generateRandomStat` should return random stats between max and minimum of each statistic  \n`generateThreeRandomCharacters` should create three different characters, return an array containing the three and each one having different values  \n`getCharacterGeneratedById` should get the character created with this id and return it\n\n### Game Content\n\n`upgrade` should add a level to the current one, and update the upgrade cost\n\n## Installation\n\n```bash\ngit clone https://github.com/Clemix37/chrono-cosmos.git\ncd chrono-cosmos\nnpm install # install dependencies\nnpm run build # build typescript files\nnpm run dev # launch live-server on index.html file\n```\n\n## Roadmap\n\n-   [x] First UI design\n-   [x] Create a GameStateManager\n-   [x] Create a ScreenManager\n-   [x] Create a DisplayManager\n-   [x] Add tests for formulas, data and config\n-   [x] Add tests for game state\n-   [x] Remake the UI of character selection\n-   [ ] Change persistence data inside localstorage using string (like [Cookie Clicker](https://orteil.dashnet.org/cookieclicker/))\n-   [ ] Add more components / resources (maybe through AI for infinite ideas ?)\n-   [ ] Random events like meteorites or anomalies\n-   [ ] Add animations\n\n## Contributing\n\nPRs welcome !  \nIf necessary, create issues for ideas, bugs etc.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/) ✅\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemix37%2Fchrono-cosmos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclemix37%2Fchrono-cosmos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemix37%2Fchrono-cosmos/lists"}