Skip to content

VS Code template with tasks for building and running in Playdate simulator. Modified to use C API and build system.

License

Notifications You must be signed in to change notification settings

rlnsy/playdate-vscode-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playdate VS Code Template (Mac)

Build and run projects in the Playdate simulator with a key shortcut.

Requirements

Get Started

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.

  1. Clone or download the repo.
  2. In VS Code, choose Run > Run Without Debugging to launch the project in the Playdate simulator.
  3. Assign a keyboard shortcut to the Run Without Debugging option to build and run with a keypress.

Output

Build files get output to HelloWorld.pdx. There are some additional build files, like CMake logs, in the build directory.

Creating Your Own Project

  1. Do a global project replace for "HelloWorld" and "hello_world", replacing it with your own program name.
  2. Modify or add the appropriate information in Source/pdxinfo.
  3. Write the app code.

Automatic Test and Build

  1. Install watchman (brew install watchman)
  2. make watch

Writing and Running Tests

  1. Write tests under lib/__tests__- watcher will automatically run them when files change.
  2. make test to compile and run only tests.

About

VS Code template with tasks for building and running in Playdate simulator. Modified to use C API and build system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.3%
  • Makefile 8.1%
  • CMake 6.6%