From 1f9ad7a27b8788083863000426ba2367c47d0899 Mon Sep 17 00:00:00 2001 From: JazzTap Date: Wed, 29 Oct 2025 17:27:42 -0700 Subject: [PATCH 01/12] point to public server --- editor/script/system/multiplayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/script/system/multiplayer.js b/editor/script/system/multiplayer.js index 840267d..dbf04fe 100644 --- a/editor/script/system/multiplayer.js +++ b/editor/script/system/multiplayer.js @@ -11,7 +11,7 @@ import { BrowserWebSocketClientAdapter } from "https://esm.sh/@automerge/automer import { Resources } from "../generated/resources.js" import { Store } from "../store.js" -export const DEBUG_LOCAL = true +export const DEBUG_LOCAL = false export const serverURL = DEBUG_LOCAL ? "http://localhost:3030" : "https://duck-composed-closely.ngrok-free.app" export const updateText = AutomergeRepo.updateText From 6c4eddcc332872e5520d21259d2050d80e16bd1b Mon Sep 17 00:00:00 2001 From: JazzTap Date: Fri, 13 Mar 2026 12:43:57 -0700 Subject: [PATCH 02/12] update from main --- .gitignore | 3 +- README.md | 16 +++- editor/index.html | 4 + editor/script/card.js | 8 +- editor/script/dialog_editor.js | 8 +- editor/script/editor.js | 49 +++++----- editor/script/engine/transition.js | 9 +- editor/script/inventory.js | 8 +- editor/script/paint.js | 15 +-- editor/script/room_markers.js | 27 +++--- editor/script/system/multiplayer.js | 137 ++++++++++++++++++++++++---- 11 files changed, 205 insertions(+), 79 deletions(-) diff --git a/.gitignore b/.gitignore index a72697b..73b2e9c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ dist/* build/* cache/* experiments/node_modules/* -.amrg/* \ No newline at end of file +.amrg/* +.node-persist/* \ No newline at end of file diff --git a/README.md b/README.md index 1ee3bad..8a4e4b4 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,25 @@ ## make a game with bitsy ``` +git submodule update --init +cd automerge-repo-sync-server +npm install +cd .. npm install npm run dev ``` -or -``` -npm run client && server -``` -Server runs on `localhost:3000` by default. Open the client at `localhost:8080`. +Open the client at `localhost:8080`. Server runs on `localhost:3000` by default. The address bar will now have your instance string, e.g. `http://localhost:8080/?instance=4CDQ9qsgqS4bQ1gfxUwFhy8q5WHX` Copy this address to another client to join the shared session. +Or, use the public multiplayer-bitsy server. +``` +git checkout public-demo +npm install --only=prod +npm run client +``` ## credits [bitsy](https://github.com/le-doux/bitsy) by Adam LeDoux and contributors diff --git a/editor/index.html b/editor/index.html index d634ee3..4599651 100644 --- a/editor/index.html +++ b/editor/index.html @@ -51,6 +51,10 @@
+
+
+
+