{"id":16359766,"url":"https://github.com/jmsv/cosmic-horizon","last_synced_at":"2025-10-26T04:32:02.532Z","repository":{"id":95749592,"uuid":"79791788","full_name":"jmsv/cosmic-horizon","owner":"jmsv","description":"c3's c++ game project: a text-based space adventure","archived":false,"fork":false,"pushed_at":"2017-03-17T23:33:00.000Z","size":216,"stargazers_count":9,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T14:51:20.724Z","etag":null,"topics":["cli","consolegame","cpp","game"],"latest_commit_sha":null,"homepage":"https://jmsv.github.io/cosmic-horizon","language":"C++","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/jmsv.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":"2017-01-23T09:55:35.000Z","updated_at":"2023-10-15T02:37:39.000Z","dependencies_parsed_at":"2023-05-21T21:15:34.768Z","dependency_job_id":null,"html_url":"https://github.com/jmsv/cosmic-horizon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmsv/cosmic-horizon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fcosmic-horizon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fcosmic-horizon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fcosmic-horizon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fcosmic-horizon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmsv","download_url":"https://codeload.github.com/jmsv/cosmic-horizon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fcosmic-horizon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281059645,"owners_count":26437056,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","consolegame","cpp","game"],"created_at":"2024-10-11T02:09:36.392Z","updated_at":"2025-10-26T04:32:02.527Z","avatar_url":"https://github.com/jmsv.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Dependencies\n\nTo install all dependencies (on ubuntu), run `sudo ./get_dependencies.sh` from the root directory of this repository\n\n## Helpful git stuff\n\nIn Codio, before running any git commands, type `cd cosmic-horizon/` to change directory to the repository directory, otherwise you'll get a '`fatal: Not a git repository`' message.\n\n- `git status` - shows local changes, what files are tracked\n- `git add -A` - adds all new local changes\n- `git commit -a -m \"Short description\"` - wraps changes in a commit (`-a` means all changes, `-m \"\"` is the commit message)\n- `git push origin master` - pushes local commits to github\n- `git pull origin master` - pulls from github repository\n- `git reset --hard` - reset local repository to HEAD version\n\nTo add your changes to the GitHub repo, use the above `add`, `commit` and `push` commands. Get the latest changes using `pull`.\n\n## Print colour scheme (see `print.cpp`)\n\n- **green**: good stuff\n- **red**: bad stuff\n- **cyan**: titles\n- **magenta**: neutral story text\n- **blue**: ask for user input\n\n## Database methods\n\n```c++\nDatabase db = Database();\n\n// How to add item to inventory:\ndb.add_to_inventory(\"Potato\");\n\n// How to check if inventory contains something:\nif (db.do_i_have(\"Potato\")) {\n    print(\"You have a Potato.\");\n} else {\n    print(\"You do not have a Potato.\");\n}\n// In this case, 'You have a Potato.' is printed.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmsv%2Fcosmic-horizon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmsv%2Fcosmic-horizon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmsv%2Fcosmic-horizon/lists"}