{"id":20802857,"url":"https://github.com/lukechinworth/adventurescript","last_synced_at":"2026-05-26T20:07:23.830Z","repository":{"id":90624216,"uuid":"103095468","full_name":"lukechinworth/AdventureScript","owner":"lukechinworth","description":"Create an adventure game with assets and a config file","archived":false,"fork":false,"pushed_at":"2017-12-29T03:14:05.000Z","size":374,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-12T22:00:14.875Z","etag":null,"topics":["framework","point-and-click","typescript"],"latest_commit_sha":null,"homepage":"https://lukechinworth.github.io/AdventureScript/","language":"TypeScript","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/lukechinworth.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":"2017-09-11T05:57:10.000Z","updated_at":"2020-03-19T11:49:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab5a1202-933d-4d32-b47d-ea61c11f12ea","html_url":"https://github.com/lukechinworth/AdventureScript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukechinworth/AdventureScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechinworth%2FAdventureScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechinworth%2FAdventureScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechinworth%2FAdventureScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechinworth%2FAdventureScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukechinworth","download_url":"https://codeload.github.com/lukechinworth/AdventureScript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechinworth%2FAdventureScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33536841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["framework","point-and-click","typescript"],"created_at":"2024-11-17T18:37:51.585Z","updated_at":"2026-05-26T20:07:23.803Z","avatar_url":"https://github.com/lukechinworth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdventureScript\n\nThe idea is to build an adventure game from a config file, e.g.\n```\n// adventure.json\n{\n\tscenes: [\n\t\t{\n\t\t\tid: 1,\n\t\t\timage: '/img/scenes/start.jpg',\n\t\t\tname: 'start',\n\t\t\tmessage: 'You find yourself in a room with a chest, and a key in your pocket.',\n\t\t\tclickables: [\n\t\t\t\t{\n\t\t\t\t\timage: '/img/clickables/chest.png',\n\t\t\t\t\tuse: {\n\t\t\t\t\t\tid: 1,\n\t\t\t\t\t\tfail: 'There is a key hole in the front of the chest.'\n\t\t\t\t\t},\n\t\t\t\t\tacquire: 2,\n\t\t\t\t\tx: 100,\n\t\t\t\t\ty: 120\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: '/img/scenes/start/clickables/door.png',\n\t\t\t\t\tx: 400,\n\t\t\t\t\ty: 220,\n\t\t\t\t\tscene: 2\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\tid: 2,\n\t\t\timage: '/img/scenes/outside.jpg',\n\t\t\tname: 'outside',\n\t\t\tclickables: [\n\t\t\t\t{\n\t\t\t\t\timage: '/img/scenes/outside/path_1.png',\n\t\t\t\t\tx: 100,\n\t\t\t\t\ty: 120,\n\t\t\t\t\tscene: 3\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: '/img/scenes/outside/path_2.png',\n\t\t\t\t\tx: 500,\n\t\t\t\t\ty: 120,\n\t\t\t\t\tscene: 4\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t],\n\titems: [\n\t\t{\n\t\t\tid: 1,\n\t\t\tname: 'key',\n\t\t\timage: '/img/items/key.png\n\t\t},\n\t\t{\n\t\t\tid: 2,\n\t\t\tname: 'sword',\n\t\t\timage: '/img/items/sword.png,\n\t\t\tmessage: 'You open the chest to find a steel sword.'\n\t\t}\n\t]\n}\n```\n\n## Assets\nBackgrounds are static `jpg`s. Clickable areas are `png`s with transparent backgrounds. Clicks are registered when the png content (as opposed to the transparent background) is clicked, through the magic of [`getImageData`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechinworth%2Fadventurescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechinworth%2Fadventurescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechinworth%2Fadventurescript/lists"}