Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.52 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.52 KB

Playdate Hello World - Visual Studio C Project

SDK & Development Tools

  1. Get Playdate SDK 1.7.0 & Simulator
  2. Have Visual Studio 2019 installed
  3. gcc-arm-none-eabi compiler download here
  4. Install CMake link

Note: Make sure to mark Add PATH variables during the cmake & gcc installations

SDK Installation Locations

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.

Repo Structure

/build: Visual Studio Solution files
/src: C code
/docs: Other project related documentation

Output

/.pdx: Game package get created on compilation (you'd run this on Playdate Simulator)
/build/Debug & /build/Release: Output from VS compilation

Building for Playdate Simulator

Simply use Visual Studio to build .pdx files. That would run on simulator just fine.

Building for Playdate Console

To do so, I have only had success with nmake. Here are the steps,

  1. Open x64 Native Tools Command Prompt for VS 2019 from Start Menu
  2. Go to build directory of the project
  3. Execute command cmake .. -G "NMake Makefiles" --toolchain="SDK_PATH\C_API\buildsupport\arm.cmake"
  4. Execute command nmake

Note: I had to make sure that Source/ folder was created before running make steps.