{"id":29112237,"url":"https://github.com/adrianogil/metagame","last_synced_at":"2025-06-29T10:38:29.110Z","repository":{"id":148104266,"uuid":"196778826","full_name":"adrianogil/metagame","owner":"adrianogil","description":"JSON-based language for defining text-based games","archived":false,"fork":false,"pushed_at":"2025-06-08T01:00:19.000Z","size":100,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T01:38:11.185Z","etag":null,"topics":["interactive-fiction","python","text-based-game-engine"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrianogil.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,"zenodo":null}},"created_at":"2019-07-14T00:43:47.000Z","updated_at":"2025-06-08T00:55:27.000Z","dependencies_parsed_at":"2023-05-19T04:00:14.664Z","dependency_job_id":"1c900488-5a77-4065-aed3-b8182cf109cb","html_url":"https://github.com/adrianogil/metagame","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrianogil/metagame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianogil%2Fmetagame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianogil%2Fmetagame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianogil%2Fmetagame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianogil%2Fmetagame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianogil","download_url":"https://codeload.github.com/adrianogil/metagame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianogil%2Fmetagame/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262579940,"owners_count":23331867,"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":["interactive-fiction","python","text-based-game-engine"],"created_at":"2025-06-29T10:38:17.762Z","updated_at":"2025-06-29T10:38:29.070Z","avatar_url":"https://github.com/adrianogil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metagame\n\nMetagame is a JSON-based language for defining text-based games. It provides a framework for creating and running games based on JSON files that define game concepts and actions.\n\n## Getting Started\n\nTo get started with Metagame, you need to set up your environment. Add the Metagame directory to your PYTHONPATH by modifying your bashrc file:\n\nexport METAGAME_PYTHON_PATH=/path/to/metagame/python/\n\nexport PYTHONPATH=$METAGAME_PYTHON_PATH:$PYTHONPATH\n\nYou can also use the provided bashrc.sh script to set up your environment.\n\n## Running a Game\n\nTo run a game, use the following command:\n\npython3 -m metagame path/to/game.json\n\nReplace path/to/game.json with the path to your game file.\n\n## How to run \"Simple Dialog generation\" sample\n\npython3 -m metagame samples/00_textgeneration/sample_0003_dragon_description\n\n## Game Files\n\nGame files are JSON files that define game concepts and actions. The Metagame engine loads these files, parses the data, and runs the game loop.\n\nHere is an example of a simple game file:\n\n```json\n{\n  \"concept1\": {\n    \"attribute1\": \"value1\",\n    \"attribute2\": \"value2\"\n  },\n  \"concept2\": {\n    \"attribute1\": \"value1\",\n    \"attribute2\": \"value2\"\n  }\n}\n```\n\n## Contributing\n\nFeel free to submit PRs. I will do my best to review and merge them if I consider them essential.\n\n## License\n\nMetagame is licensed under the MIT License. See the LICENSE file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianogil%2Fmetagame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianogil%2Fmetagame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianogil%2Fmetagame/lists"}