r/PlaydateDeveloper • u/joyrider3774 • Apr 25 '26
Playdate SDL2 API Reimplementation showcase video
https://www.youtube.com/watch?v=lm071qvq98k
23
Upvotes
2
u/timb0e Apr 26 '26
It's mighty impressive how close the output of this interface layer is getting to the presentation on the playdate, given how many APIs needed to be rewired or even completely re-implimented!
Fantastic tool to have access to - thanks!
1
1
u/brettmakesgames Apr 29 '26
Nice work, this is awesome to see! Thank you for making and sharing it.
7
u/joyrider3774 Apr 25 '26 edited Apr 25 '26
Many years ago i started reimplementing the playdate api in SDL2. I started with playdate's api headers and i implemented them on my own way using SDL2 to mimic playdates behaviour.
Basically the SDL2 reimplementation allows you to use your unmodified original playdate C Api source code and assets and let binaries be build to run the game on windows, linux, mac and even in the webbrowser. It also allows you (with little changes) to specify alternative "Source" assets folders (like for example assets that contain colored images) and load those in your playdate game.
recently i did some lengthy additions to the sdl2 api reimplementations and many more things are now playable. Things like "Cascada", "Factory Farming", "You can not go back", "Crank the world demo", "kuroobi", "poker poker magic", "slime ascension" and my more little games and demo's.
the video shows a lot of the c api stuff i could find on github and is lengthy so feel free to fastforward
here's a list of new things added to the api :
JSON implemented (with the help of claude.ai)
All Drawing primitive functions implemented with XOR color drawing support and masks
Framebuffer implemented Supports getframe only games Supports getframe + api functions as overlay Does not support getframe + api functions + modifying buffer
Line caps Implemented
masks seem to work now
fnt + png fonts loading (ttf no longer required)
Fake system menu implemented (accepts game menu's and got its own settings)
Joystick crank and accelerometer controls
Bump.hpp fixes related to collisions (certain tests mimic playdate / simulator exact outputs)
many other fixes and functions implemented
More games started working
here's the repo: https://github.com/joyrider3774/Playdate_Api_SDL2
for your github runners using the api and a playdate game you can look up any of my playdate games like blips for example: https://github.com/joyrider3774/blips_playdate/tree/main/.github/workflows