{"id":19553095,"url":"https://github.com/jjohannes/playdate-sprite-match","last_synced_at":"2026-05-13T08:06:28.414Z","repository":{"id":118412907,"uuid":"540317546","full_name":"jjohannes/playdate-sprite-match","owner":"jjohannes","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-27T10:12:50.000Z","size":730,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T07:27:05.165Z","etag":null,"topics":["example","gradle","gradle-plugin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/jjohannes.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-23T06:58:05.000Z","updated_at":"2022-11-06T15:08:43.000Z","dependencies_parsed_at":"2023-11-06T00:30:49.813Z","dependency_job_id":null,"html_url":"https://github.com/jjohannes/playdate-sprite-match","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jjohannes/playdate-sprite-match","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjohannes%2Fplaydate-sprite-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjohannes%2Fplaydate-sprite-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjohannes%2Fplaydate-sprite-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjohannes%2Fplaydate-sprite-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjohannes","download_url":"https://codeload.github.com/jjohannes/playdate-sprite-match/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjohannes%2Fplaydate-sprite-match/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285397095,"owners_count":27164669,"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-11-20T02:00:05.334Z","response_time":54,"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":["example","gradle","gradle-plugin"],"created_at":"2024-11-11T04:21:29.833Z","updated_at":"2025-11-20T08:02:38.796Z","avatar_url":"https://github.com/jjohannes.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![The Sprite Match Game](game.gif)\n\n# Custom Gradle-based Build System\n\nThis is an example of how to create a custom build system based on [Gradle](https://github.com/gradle/gradle).\nIt only uses the Gradle core without any existing plugins.\n\n## The Build System\n\n![The Build System](build-system.png)\n\nThe build system is implemented as a Gradle Plugin.\nIt can be used to develop Games for the [playdate handheld game system](https://play.date/) that are based on existing 1-bit picture assets from [Kenney](https://www.kenney.nl/).\nThis repository contains a [simple picture matching game](source/main.lua) where you have to find a picture in a list using the Crank to scroll through the list.\nThe build system itself could be used to develop other picture-based games using Kenney's assets.\n\nThat's why the build system (the Gradle plugin) is called **playdate-picture-game**.\nIt automates the following tasks:\n\n- Selecting a Playdate version that is downloaded and installed (only works on Mac right now)\n- Selecting an asset pack from Kenney's website that is downloaded and processed to match the playdate's _image table_ format\n- Combining your sources and the image so that they fit the playdate project structure and then calling the playdate compiler\n\n## Advantage of using Gradle\n\nBy doing this setup in Gradle, you automatically get:\n\n- Downloading and caching of dependencies (SDK, assets)\n- Incremental building (only tasks for which things change are executed)\n- Local Build Cache\n- Remote Build Cache\n- Parallel execution\n- Build Scans to analyse the build\n\n## Usage\n\n- Build everything with `./gradlew :compilePlaydate` (see [limitations](#limitations-of-this-example) below if you get an error)\n- You can add `--console=plain` and/or `--scan` to see what's happening in the build\n- Run the build multiple times to see incremental building and caching in action\n- Adjust the dependencies - asset pack, SDK version - in  [build.gradle.kts](build.gradle.kts)\n- Adjust the game source in [source/main.lua](source/main.lua)\n- Run the game in the playdate simulator (free to use, part of SDK) by starting  \n  `build/dist/playdate-sprite-match.pdx`\n- Explore the _Build System Implementation_ (Gradle Plugin Implementation) in [gradle/playdate-picture-game/src/main/kotlin](gradle/playdate-picture-game/src/main/kotlin)\n  (Check [my Understanding Gradle videos](https://www.youtube.com/c/onepieceSoftware) for information on the Gradle concepts used)\n\n## Limitations of this example\n\nThe `installPlaydateSdk` task currently **only work on Mac (OS X)** and **needs to use `sudo`** to call the `installer` tool.\nIt only works if you run as administrator account with the allowance to run `sudo` without typing your password again.\nYou can configure that using `visudo`. If you don't want to or can't do that you can still see the example in action if you remove the _sudo installer_ call from [PlaydateSdkInstall.kt](gradle/playdate-picture-game/src/main/kotlin/software/onepiece/playdate/gradle/tasks/PlaydateSdkInstall.kt#L26) and install the SDK manually.\nThe rest of the example still works.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjohannes%2Fplaydate-sprite-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjohannes%2Fplaydate-sprite-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjohannes%2Fplaydate-sprite-match/lists"}