This PR contains the work done to update the library and the attached example project to use the Swift 6.4 computer as a minimum supported version and also, to use the latest features introduced in it. Reviewed-on: #1 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
1007 B
1007 B
PlaydateKit
Swift bindings to the Playdate C API.
Overview
The firmware hands your game a PlaydateAPI*: a struct of function
pointers. This module wraps it with per-subsystem namespaces, wrapper types
that own their C objects, closures instead of function-pointer/userdata
pairs, OptionSets and enums instead of raw constants, and typed throws.
Call Playdate/initialize(with:) from your game's eventHandler before
anything else; see doc:GettingStarted.
The module uses only the Embedded Swift subset, so the same code compiles
for the Playdate Simulator and the device (armv7em-none-none-eabi).
Topics
Essentials
- doc:GettingStarted
PlaydateSystemEventPlaydateError
System and display
SystemDisplay
Drawing
GraphicsRect
Sprites
Sprite
Audio
Sound
Storage
FileJSON
Connectivity
NetworkScoreboardsAccessReply
Lua interop
Lua