3.4.0 • Published 10 months ago

create-playdate v3.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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@latest

Alternative usage methods

Global installation

If you want to pre-install the generator, you can run:

npm install --global create-playdate

Then, run this command to generate a project:

create-playdate

I 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-playdate

Then, 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

  • Template structure & main.lua contents suggested by Panic
  • Project inspired by potch's Playdate package.json
3.4.0

10 months ago

3.3.2

10 months ago

3.3.1

10 months ago

3.3.0

10 months ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.2.5

1 year ago

3.2.4

1 year ago

3.2.3

1 year ago

1.2.0

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

1.1.5

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago