Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building separate apps; SpriteGame example #1

Merged
merged 28 commits into from Mar 25, 2022
Merged

Conversation

mossprescott
Copy link
Owner

Switched to SPM for builds, with a legitimate swift-pd/Playdate package you can include as a dependency in a separate package.

Still using a dumb bash script for builds, but at least I can now include more than a single trivial example.

Ported the example C game "SpriteGame", along with the Bitmap, Sprite, and input APIs it required. That was fairly involved and turned up a lot of fun issues with refcounting, capturing closures vs C function pointers, and so on. Anyway a lot of stuff is there now so the next app should port more easily.

@mossprescott mossprescott merged commit 9b02e5e into master Mar 25, 2022
@mossprescott mossprescott deleted the spm branch March 25, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant