- Get Playdate SDK 1.7.0 & Simulator
- Have Visual Studio 2019 installed
- gcc-arm-none-eabi compiler download here
- Install CMake link
Note: Make sure to mark Add PATH variables during the cmake & gcc installations
SDK is installed at C:\Program Files (x86)\Playdate
CMake is at C:\Program Files\CMake\bin\cmake.exe
Note: There are still some references hardcoded from VS solution to those locations.
/build: Visual Studio Solution files
/src: C code
/docs: Other project related documentation
/.pdx: Game package get created on compilation (you'd run this on Playdate Simulator)
/build/Debug & /build/Release: Output from VS compilation
Simply use Visual Studio to build .pdx files. That would run on simulator just fine.
To do so, I have only had success with nmake. Here are the steps,
- Open x64 Native Tools Command Prompt for VS 2019 from Start Menu
- Go to build directory of the project
- Execute command
cmake .. -G "NMake Makefiles" --toolchain="SDK_PATH\C_API\buildsupport\arm.cmake"
- Execute command
nmake
Note: I had to make sure that Source/ folder was created before running make steps.