dewctl 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,7 +66,7 @@ the draft (step 2).
|
|
|
66
66
|
- **"I don't know", or "make it look nice".** Offer three or four recipes nearest to what the game is about, one
|
|
67
67
|
line each, and let the user choose. Never list all sixteen.
|
|
68
68
|
|
|
69
|
-
The recipes, each
|
|
69
|
+
The recipes, each with a prompt, colors, words and shapes on the
|
|
70
70
|
[style recipes](https://alpha.dewdrop.world/docs/recipes) page:
|
|
71
71
|
|
|
72
72
|
- **Clay:** matte plasticine with thumbprints, chunky rounded shapes, saturated colors, a tabletop set.
|
|
@@ -146,7 +146,7 @@ Two or three per medium, each changing shapes or colors. Skip what the user alre
|
|
|
146
146
|
- **Ink sketch, watercolor, picture book, colored pencil:** white paper, or cream? How much bare paper shows?
|
|
147
147
|
Color, or none? Outlines, or none? Fewer things far away keep the page open.
|
|
148
148
|
- **Stained glass:** a dark window frame around the view, or none? Thick lead, or thin? The recipe is jewel
|
|
149
|
-
colors over dark lead
|
|
149
|
+
colors over dark lead. A few big panes read as a window; fine detail reads as
|
|
150
150
|
hatching.
|
|
151
151
|
- **Neon cyberpunk:** rain, or dry? Which two neon colors? How much of the frame stays dark? Every glow is a mesh.
|
|
152
152
|
- **Noir:** black and white, or a tint? One light source per scene, so the shadows agree?
|
package/package.json
CHANGED
package/src/project.js
CHANGED
|
@@ -14,7 +14,7 @@ const ignored = new Set(['node_modules','dist','target']);
|
|
|
14
14
|
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
|
15
15
|
const GAME_NAME = /^[a-z][a-z0-9-]{0,47}$/;
|
|
16
16
|
export const DEWDROP = 'https://alpha.dewdrop.world';
|
|
17
|
-
// Dewdrop's address, or the one DEWDROP_PLATFORM names
|
|
17
|
+
// Dewdrop's address, or the one DEWDROP_PLATFORM names: an https:// origin, or plain http:// to this
|
|
18
18
|
// computer's own loopback address, which a credential never leaves. The slash an address bar adds is the same origin.
|
|
19
19
|
export function platformOrigin(value = process.env.DEWDROP_PLATFORM ?? DEWDROP) {
|
|
20
20
|
const url = URL.parse(value);
|
|
@@ -166,7 +166,7 @@ const SDK_RANGE='^0.6.0';
|
|
|
166
166
|
const CLI_RANGE=`^${JSON.parse(readFileSync(new URL('../package.json',import.meta.url),'utf8')).version}`;
|
|
167
167
|
// The games a new one can start from: Blank, which ships with this CLI, and the starter games in the public
|
|
168
168
|
// starter-templates repository, a folder each, at the commit this release pins.
|
|
169
|
-
const STARTERS={repo:'DewdropLabs/starter-templates',commit:'
|
|
169
|
+
const STARTERS={repo:'DewdropLabs/starter-templates',commit:'7fbfbd8ef6d1a1c830de0ac2634a126f73c8fa79'};
|
|
170
170
|
const TEMPLATES={
|
|
171
171
|
blank:['Blank','a cube and a style prompt, the smallest game'],
|
|
172
172
|
'golden-glide':['Golden Glide','flight over golden-hour countryside, in gouache'],
|
|
@@ -192,8 +192,8 @@ export async function chooseTemplate(input=process.stdin, output=process.stdout)
|
|
|
192
192
|
} finally { input.pause(); }
|
|
193
193
|
throw new Error('No game was chosen to start from.');
|
|
194
194
|
}
|
|
195
|
-
// A starter game's files, from the repository's tarball at the pinned commit (or the one DEWDROP_STARTERS names
|
|
196
|
-
//
|
|
195
|
+
// A starter game's files, from the repository's tarball at the pinned commit (or the one DEWDROP_STARTERS names): the
|
|
196
|
+
// regular files under the game's folder, by their paths in it, leaving out names starting with a dot.
|
|
197
197
|
async function download(template) {
|
|
198
198
|
const name=TEMPLATES[template][0];
|
|
199
199
|
let response,files;
|