@homie-rocks/studio 0.2.0
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.
- package/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +40 -0
- package/bin/homie-studio.mjs +166 -0
- package/lib/build.mjs +86 -0
- package/lib/check.mjs +123 -0
- package/lib/cloudflare.mjs +155 -0
- package/lib/directory.mjs +19 -0
- package/lib/scaffold.mjs +254 -0
- package/lib/studio.mjs +102 -0
- package/lib/version.mjs +17 -0
- package/netplay/NETPLAY.md +575 -0
- package/netplay/netplay.ts +1309 -0
- package/package.json +44 -0
- package/starters/gem-rush/game.json +9 -0
- package/starters/gem-rush/index.html +17 -0
- package/starters/gem-rush/src/main.ts +719 -0
- package/worker/index.mjs +349 -0
- package/worker/pages.mjs +205 -0
- package/worker/room.mjs +659 -0
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@homie-rocks/studio",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "A game studio on its own Cloudflare: scaffold, multiplayer starters on the netplay contract, the site Worker with public rooms (Table/Lobby Durable Objects, D1, R2), deploy, and the homie.rocks directory.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"homepage": "https://homie.rocks/studio/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/homie-rocks/homie.git",
|
|
11
|
+
"directory": "packages/studio"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"homie-studio": "bin/homie-studio.mjs"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
"./netplay": {
|
|
18
|
+
"types": "./netplay/netplay.ts",
|
|
19
|
+
"default": "./netplay/netplay.ts"
|
|
20
|
+
},
|
|
21
|
+
"./worker": "./worker/index.mjs",
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/",
|
|
26
|
+
"lib/",
|
|
27
|
+
"netplay/",
|
|
28
|
+
"worker/",
|
|
29
|
+
"starters/",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"NOTICE"
|
|
33
|
+
],
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=22"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"esbuild": "0.28.1",
|
|
39
|
+
"puppeteer-core": "25.8.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"test": "node --test test/*.test.mjs"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "gem-rush",
|
|
3
|
+
"name": "Gem Rush",
|
|
4
|
+
"blurb": "Grab gems, knock rivals away. Sixty-second rounds that never stop, and everyone who presses Play is in the same room.",
|
|
5
|
+
"players": { "min": 1, "max": 8 },
|
|
6
|
+
"roundSeconds": 60,
|
|
7
|
+
"entry": "src/main.ts",
|
|
8
|
+
"netplay": { "v": 1, "public": true, "movement": "owner" }
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no">
|
|
6
|
+
<title>Gem Rush</title>
|
|
7
|
+
<link rel="icon" href="data:,">
|
|
8
|
+
<style>
|
|
9
|
+
html, body { margin: 0; height: 100%; background: #04060c; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
|
|
10
|
+
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<canvas id="c"></canvas>
|
|
15
|
+
<script type="module" crossorigin src="./assets/main.js"></script>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|