{"id":16170695,"url":"https://github.com/duskyelf/rpg-rs","last_synced_at":"2025-06-19T04:03:26.503Z","repository":{"id":61909556,"uuid":"540505602","full_name":"DuskyElf/rpg-rs","owner":"DuskyElf","description":"Terminal based Rbg Game (engine)","archived":false,"fork":false,"pushed_at":"2023-05-02T14:04:52.000Z","size":42,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T20:38:25.482Z","etag":null,"topics":["diamondguru","game","game-engine","interpreter","programming-language","rust","terminal-based","terminal-game","ui"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/DuskyElf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-23T15:31:28.000Z","updated_at":"2025-03-30T20:35:05.000Z","dependencies_parsed_at":"2024-10-27T19:19:50.131Z","dependency_job_id":"b6c42d98-052a-4828-b047-e51f6f36bfae","html_url":"https://github.com/DuskyElf/rpg-rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DuskyElf/rpg-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskyElf%2Frpg-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskyElf%2Frpg-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskyElf%2Frpg-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskyElf%2Frpg-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuskyElf","download_url":"https://codeload.github.com/DuskyElf/rpg-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskyElf%2Frpg-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260684093,"owners_count":23046097,"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":["diamondguru","game","game-engine","interpreter","programming-language","rust","terminal-based","terminal-game","ui"],"created_at":"2024-10-10T03:19:22.889Z","updated_at":"2025-06-19T04:03:21.489Z","avatar_url":"https://github.com/DuskyElf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminal Based Rpg Game (Engine)\n### In it's early stages of development\n\n### Quick Start\n```shell\n$ git clone git@github.com:DuskyElf/rpg-rs.git\n$ cd rpg-rs\n$ git checkout tags/v0.0.1-alpha\n```\n\n### Sample Program\n```\n\"Hello, World! This is just so awesome!!!\"\n?0 \"What is your name?\"\n\"Which Branch?\" {\n    \"first\" =\u003e {\n        ?1 \"What is your age?\"\n        \"Hi $0, you are $1 years old!\"\n    }\n\n    \"second\" =\u003e {\n        \"Are you 18+ $0?\" {\n            \"yes\" =\u003e { \"Whooo, you can vote\" }\n            \"no\" =\u003e { \"Sorry, you can't vote\" }\n        }\n    }\n}\n```\n\n### Quick Run\n```shell\n$ cargo r --release test.rpg\n```\n\n### Features that are currently implemented\n- Variables\n- Asking question into a variable (identifier)\n- Branching System\n\n## Rpg lang Reference\n\n### Messages\nCurrently, it clears the terminal and animates the message as it being typed, then stops for the user to proceed.\n```\n\"Example message\"\n```\n![image](https://user-images.githubusercontent.com/91879372/235681566-37732814-5ccd-48c9-941b-7da36991492b.png)\n\n### Questions\nCurrently, it clears the terminal and animtes the question as it being typed, then stops for the user to type in the answer till a newline. Then saves the answer in the variable index provided (`0` in the following example).\n```\n?0 \"What's your name?\"\n```\n![image](https://user-images.githubusercontent.com/91879372/235684202-d37e6c12-1f52-4921-b28a-4d1f2585ee80.png)\n\n### Variables\nAs stated above, [questions](#questions) save the answer in the variable index provided. Those values could be accessed via the index as `$\u003cindex\u003e` inside a quotes.\n```\n?0 \"What's your name?\"\n\"Hi $0!\"\n```\n![image](https://user-images.githubusercontent.com/91879372/235685837-661fe884-c7a5-4dea-91cf-41f4d0aa942c.png)\n|\n![image](https://user-images.githubusercontent.com/91879372/235686117-244a41f1-2710-42b0-b241-77cfd76bfd3b.png)\n\n### Branches\nCurrently, it's able to ask a question then show the possible options to select, on the basis of which it branches the code flow.\n```\n\"Select an option -\" {\n    \"First\" =\u003e {\n        \"You selected the first branch!\"\n    }\n    \"Second\" =\u003e {\n        \"You selected the second branch!\"\n    }\n}\n```\n![image](https://user-images.githubusercontent.com/91879372/235689591-1f79e7f5-7e13-41cc-8200-970bbd06be32.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduskyelf%2Frpg-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduskyelf%2Frpg-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduskyelf%2Frpg-rs/lists"}