You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty excited about this library - and the instructions worked perfectly!
However I'm running into an issue (that may be my misunderstanding of how to use PlaydateKit!)
When I use setUpdateFunction on a sprite - the closure defaults to passing me a variable called sprite (which makes perfect sense - I probably want access to that sprite to do something with it) - but the type is OpaquePointer...
Is there a way to cast this into a PlaydateKit Sprite? What is the best way to use this?
The text was updated successfully, but these errors were encountered:
I was waiting on some fixes to embedded swift, and currently the draw function can't be overridden/set due to a bug in the swift compiler, but it looks like the issues blocking the update function were fixed so I'll try to merge this PR later today.
I'm pretty excited about this library - and the instructions worked perfectly!
However I'm running into an issue (that may be my misunderstanding of how to use PlaydateKit!)
When I use
setUpdateFunction
on a sprite - the closure defaults to passing me a variable calledsprite
(which makes perfect sense - I probably want access to that sprite to do something with it) - but the type isOpaquePointer
...Is there a way to cast this into a PlaydateKit
Sprite
? What is the best way to use this?The text was updated successfully, but these errors were encountered: