{"id":27055099,"url":"https://github.com/cadin/panels-nonlinear-example","last_synced_at":"2025-04-05T09:18:55.239Z","repository":{"id":192718425,"uuid":"687141506","full_name":"cadin/panels-nonlinear-example","owner":"cadin","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-11T22:41:58.000Z","size":367,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T23:31:46.981Z","etag":null,"topics":["playdate"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/cadin.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":"2023-09-04T17:58:15.000Z","updated_at":"2025-01-11T22:42:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e7ed446-df20-43d1-951a-b1997a1fdad2","html_url":"https://github.com/cadin/panels-nonlinear-example","commit_stats":null,"previous_names":["cadin/panels-nonlinear-example"],"tags_count":0,"template":false,"template_full_name":"cadin/panels-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadin%2Fpanels-nonlinear-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadin%2Fpanels-nonlinear-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadin%2Fpanels-nonlinear-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadin%2Fpanels-nonlinear-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cadin","download_url":"https://codeload.github.com/cadin/panels-nonlinear-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312252,"owners_count":20918398,"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":["playdate"],"created_at":"2025-04-05T09:18:54.623Z","updated_at":"2025-04-05T09:18:55.204Z","avatar_url":"https://github.com/cadin.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Panels Nonlinear Story Example\n\nAn example project demonstrating how to create a branching, choose-your-own adventure comic with [Panels](https://github.com/cadin/panels).\n\n## Setup\n\nThis project includes the Panels framework as a git submodule. Be sure to properly [initialize the submodule](https://www.w3docs.com/snippets/git/how-to-clone-including-submodules.html) when cloning the repo.\n\nIf you're not using git, you can download this code as a ZIP file. In that case you'll also need to download the code from the [Panels repo](https://github.com/cadin/panels) and place it in the `source/libraries/panels/` folder of this template.\n\n## Usage\n\nTo create a branching choice in your comic, define multiple options in the `advanceControls` table for your sequence.\n\nEach option can define an `input` trigger, a `target` sequence, and `x` and `y` positions for the button graphics.\n\n## Documentation\n\nDocumentation for these new features can be found in the Panels docs:\n\n### [📄 Creating Comics with Branching Storylines](//cadin.github.io/panels/docs/nonlinear-comics.html)\n\n## Examples\n\nThis project includes some example sequences to help you get started:\n\n1. **[Basic Example](https://github.com/cadin/panels-nonlinear-example/blob/main/source/comicData/s01.lua)**  \n   Add two branching options to the end of the sequence.\n2. **[Anchored Controls](https://github.com/cadin/panels-nonlinear-example/blob/main/source/comicData/s02.lua)**  \n   By default, a sequence's advance buttons float above the panels. This example shows how they can be anchored to the scroll position of the last panel.\n3. **[Hidden Controls](https://github.com/cadin/panels-nonlinear-example/blob/main/source/comicData/s03.lua)**  \n   Hide Panel's built in button graphics in order to display your own text or graphics for the user.\n4. **[Directional Controls](https://github.com/cadin/panels-nonlinear-example/blob/main/source/comicData/s04.lua)**  \n   Let the user choose a physical direction to move in.\n5. **[Custom Functions](https://github.com/cadin/panels-nonlinear-example/blob/main/source/comicData/s05.lua)**  \n   Use a custom render function to draw interactive content (like a mini-game). Use the `targetSequenceFunction` to define a target sequence based on any custom-defined criteria.\n\nLook in the `comicData/` folder to find data tables for each sequence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadin%2Fpanels-nonlinear-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcadin%2Fpanels-nonlinear-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadin%2Fpanels-nonlinear-example/lists"}