Yes, Panic already provides a piece of software called Playdate Simulator, but...
- It's geared towards testing your own games rather than playing other people's.
- It can't run device builds of games written in C.
- It doesn't allow communication via the simulated Playdate's USB port.
I decided to try and fix this with new, open-source software.
- Run
git clone --recursive https://github.com/scratchminer/pd-emu.git
to clone this repo and its submodules. pip install -r requirements.txt
should install all the dependencies except Lupa and Lua.cd lupa && make
should build the forks of both Lupa and Lua without having to runsetup.py
.- Use your favorite Python package manager to install the wheel in the
lupa/dist
directory.
You can't actually run this emulator now (since I have yet to add the Playdate API).
What you can do now is dump Playdate applications (directories with a PDX extension) from the command line.
To dump a PDX:
cd
to the root directory of this repopython3 -m loaders.pdx (path to PDX) (dump location)
See my fork of unluac for instructions.
2024 scratchminer
Not affiliated with Panic at all, just a neat little side project I've been doing for a while.