Getting Started with Playdate
The Panic Playdate is a tiny, just-for-fun indie game console. This post will discuss getting started with the Panic Playdate. It will cover downloading the SDK, installing it, and running the examples. macOS will be used, but the steps should be largely the same for other platforms. This post assumes familiarity with the command line.
Note that command line familiarity is not needed for Playdate development. Downloading the SDK is enough to get started if Pulp is sufficient for your needs. For most developers, Lua knowledge and a Playdate-integrated editor, like Nova (link to Playdate Extensions), will be enough to make their Playdate development dreams come true. (Dedication to see a project to completion is also required.)
Software Versions
Instructions
Installation
First, download the latest Playdate SDK (link to all versions) from the Playdate Developer Page. Update the path, set the SDK path, and consider adding an alias for the Playdate simulator.
Pulp
Pulp is a web-based game editor for the Playdate. The target audience is entry-level game developers and people who want to rapidly prototype. All development and testing can be done in the browser. Pulp has a lot of limitations, but it is also easy to learn! (Links to documentation for Pulp and PulpScript.) Pulp is a good choice for people who are not ready to learn to program.
Entire games can be exported and imported in JSON format. To run a game developed with Pulp in the simulator, click the “DOWNLOAD PDX” button, and then pass the PDX file to the simulator.
Lua Examples
The Lua scripting language can also be used to develop Playdate games. The target audience is moderately sophisticated developers. Lua is a popular scripting language commonly used in game development, and the Lua API is not as restricted as Pulp’s web-based development model. (Link to Lua documentation.) Lua is generally the best choice for projects with a programmer.
Regular project-based Lua examples can be run as follows.
Single file Lua examples can be run as follows.
C API Examples
Sophisticated developers can use the C API to make software for the Playdate. Many professional AAA game developers use C++, but C is the language they used in the past. (Link to C API documentation.) Only use the C API if you know why you need to use it.
The C API examples can be run as follows.
More Information
Consider visiting the Playdate Developer Page and Playdate Developer Forums for more information!
References:
- Lua Home Page
- Nova Homepage
- Nova, Playdate Extensions
- Playdate C API Documentation
- Playdate Developer Forum
- Playdate Developer Page
- Playdate Homepage
- Playdate Lua Documentation
- Playdate Pulp
- Playdate Pulp Documentation
- Playdate Pulp Tutorials
- Playdate PulpScript Documentation
- Playdate SDK, All Downloads
- Playdate SDK, Latest