Build and run projects in the Playdate simulator with a key shortcut.
- VS Code
- C/C++ Extension
- CMake Extension
- Playdate SDK
- CMake (
brew install cmake
) - cmocka (
brew install cmocka
) - for testing
This is a template repo.
You can generate your own separate repositories from this template with the same directory structure, branches, and files. Click "Use this template" to create your own repo.
- Clone or download the repo.
- In VS Code, choose Run > Run Without Debugging to launch the project in the Playdate simulator.
- Assign a keyboard shortcut to the Run Without Debugging option to build and run with a keypress.
Build files get output to HelloWorld.pdx
. There are some additional build files, like CMake logs, in the build
directory.
- Do a global project replace for "HelloWorld" and "hello_world", replacing it with your own program name.
- Modify or add the appropriate information in
Source/pdxinfo
. - Write the app code.
- Install watchman (
brew install watchman
) make watch
- Write tests under
lib/__tests__
- watcher will automatically run them when files change. make test
to compile and run only tests.