create-playdate v3.4.0
create-playdate
Generate a Playdate Lua SDK project, which you can then manage with npm, yarn or pnpm
Quick Start
There's nothing to pre-install (except Node.js). Run this command in your terminal and answer the handful of prompts:
npm create playdate@latestAlternative usage methods
Global installation
If you want to pre-install the generator, you can run:
npm install --global create-playdateThen, run this command to generate a project:
create-playdateI wouldn't recommend this though, as it'll be up to you to update the generator manually, whereas npm create playdate@latest (or yarn create playdate / pnpm create playdate) will always ensure you run latest version.
API ▸ create function
The project generator can be called from within your own Node.js codebase. First, add the package dependency:
npm install create-playdateThen, import the create function into your code, and call it with an object containing the cwd you want to generate a project in and a name for the game. Optionally, you can also include the name of the author and zero or more editors.
import { create } from 'create-playdate';
create({
cwd: '/Users/someone-cool/playdate-games/my-game',
name: 'My Game',
author: 'Someone Cool',
editors: ['vscode'] // (and/or 'nova')
});Attributions
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago