You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/sdk/README.md
+72-34Lines changed: 72 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,30 @@
1
-
# @puzzmo/sdk
1
+
# Puzzmo Game Infra
2
2
3
-
SDK for building games on the Puzzmo platform. Handles communication between your game and the Puzzmo host (puzzmo.com, embeds, native apps).
3
+
Over the years we have a pretty refined route for making web games: prototype in HTML with no concern for code quality, share with people you like, then migrate it to a "real" codebase.
4
+
5
+
LLMs have changed this, and we're finding that the 'prototype in HTML' phase is getting close enough to production quality that it does not always warrant a a multi-month conversion to React/TypeScript/Redux to ensure the codebase can live forever.
6
+
7
+
So, after shipping two full games with this pipeline, we've knocked enough kinks out that it's ready for a more public space.
8
+
9
+
So, how do you make a game? Well first, you need a game - we can't help there! However, once you do, then you can start migrating it to run on Puzzmo by: `yarn create puzzmo game`.
10
+
11
+
## @puzzmo/sdk
12
+
13
+
This repo is the SDK for building games on the Puzzmo platform. Handles communication between your game and Puzzmo.
14
+
15
+
There are a few parts here!
16
+
17
+
1. The SDK, e.g. the runtime API for launching a game, completing it and other essentials
18
+
2. The simulator, which provides the same message sending infrastructure Puzzmo.com will send to your game
19
+
3. App integration information, e.g. how to make custom thumbnails for your puzzles (and more)
20
+
4. Vite plugins which can help you get up and running faster
4
21
5
22
## Install
6
23
7
24
```bash
8
25
npm install @puzzmo/sdk
26
+
27
+
yarn add @puzzmo/sdk
9
28
```
10
29
11
30
## Quick Start
@@ -43,33 +62,33 @@ Creates an SDK instance. Options:
This and the editor bundle are separate JavaScript files from your main game.
146
+
147
+
There are Vite plugins to make this easy, but otherwise, they should be files in your upload named `app-bundle.js` and `editor-bundle.js` with ESM exports which match the shapes of the TypeScript types.
148
+
149
+
## Editor Integration
112
150
113
-
For games that support puzzle editing in Puzzmo Workshop:
151
+
For games that support puzzle editing in Puzzmo Workshop, you will need an Editor Bundle:
0 commit comments