Playbit is a framework for creating cross-platform Playdate games from a single Lua codebase.
MIT License
Playbit is a framework for creating cross-platform Playdate games from a single Lua codebase. To accomplish this, it has two key components:
⚠ IMPORTANT: This project is in active development and has not reached a stable 1.0 release yet. Use in a production environment at your own risk.
If you're looking for a framework for creating cross-platform Playdate games from a single Lua codebase, then that's Playbit's primary goal!
However Playbit's features also can help improve your workflow when working on Playdate-only games too. For example:
math.abs(num)
in a performance critical area (function calls can add up!) you can inline the method with a macro.Additionally, if you're not creating a cross-platform game, all Playdate SDK functions are available to you since Playbit doesn't need to emulate them for Love2D.
Additionally, a core aspect of Playbit is the the implementation of Playdate API in Love2D. It's still a work-in-progress; more functions will be added over time. The following are currently available, with noted caveats:
playdate.graphics
fillRect()
, line()
, circ()
, etccopy
, fillWhite
, fillBlack
playdate.image
playdate.imagetable
playdate.easingFunctions
playdate.font
playdate.sound
sampleplayer
and fileplayer
playdate
namespace
getCurrentTimeMilliseconds()
This list is not comprehensive. For complete details on currently implemented SDK functions, review the source code and review open issues.
Documentation can be found in the docs folder. If you're new, it's recommended that you first read Getting Started.
If you want to jump straight in, create a new repository using the Playbit template.