Skip to content

neesarg-yb/playdate_c_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Visual Studio C Project using Playdate SDK 1.7.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published