The goal of this tool is to automate the manual processes for creating and initializing a new Playdate console project.
More details can be found in the official Playdate C documentation.
- Download and install the Playdate SDK.
- Set the
PLAYDATE_SDK_PATH
environment variable based on your SDK install location. - Add
<path to sdk>/bin
to your Windows PATH environment variable. - Install Visual Studio with C tools.
- Install the GNU Arm Embedded Toolchain compiler. When prompted, add to your Windows PATH environment variable.
- Install CMake for Windows. When prompted, add to your Windows PATH environment variable.
After creating and initializing the project, the following steps will help you to set up Visual Studio for running and debugging your project using the Playdate Simulator included in the Playdate SDK:
- Use Visual Studio to open the
<ProjectName>.sln
file found in your new project'sbuild
directory. - Once your project is open in Visual Studio, click the drop-down button next to
Local Windows Debugger
and clickALL_BUILD Debug Properties
. - Navigate to the
Debugging
section. - Under
Command
, clear the existing text and paste in$(PLAYDATE_SDK_PATH)\bin\PlaydateSimulator.exe
. Then clickOk
to close the window. - On the left-hand panel called
Solution Explorer
, right-click on your project's name and clickSet as Startup Project
. - You should now be able to run and debug your project in the Playate simulator by clicking
Local Windows Debugger
(to run with the debugger) or the empty green arrow next to it (to run without the debugger).- Breakpoints should now work when set and running your project (with debugger) in the Playdate simulator.
- This tool currently only supports C project initialization for Windows Visual Studio with CMake.
- The CMake step can be skipped if you would like to only generate initial C project directories and files.
- This tool does not currently support Lua project initialization.
- If any of the prerequisites are skipped, this tool may not be able to complete the initialization step with CMake.
- Only alphanumeric characters are supported in project names.
- Only alphanumeric characters and slashes are supported in working directory paths.