From b4ff851edfa04640a6053a5b371d700f70c75b03 Mon Sep 17 00:00:00 2001 From: wizguin <16276645+wizguin@users.noreply.github.com> Date: Sun, 23 Jan 2022 22:33:13 +0000 Subject: [PATCH] Added phasereditor2d-launcher --- README.md | 6 ++++++ package-lock.json | 41 ++++++++++++++++++++++++++++++++++++-- package.json | 2 ++ phasereditor2d.config.json | 7 +++++++ 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 phasereditor2d.config.json diff --git a/README.md b/README.md index a4bdfb26..c4066f7b 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,12 @@ npm install npm run dev ``` +* Running [Phaser Editor](https://phasereditor2d.com/) for scene editing. + +```console +npm run editor +``` + * Building the client for production. ```console diff --git a/package-lock.json b/package-lock.json index 9efae0bf..8518149f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "yukon", - "version": "1.1.5-beta", + "version": "1.1.6-beta", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "yukon", - "version": "1.1.5-beta", + "version": "1.1.6-beta", "license": "MIT", "devDependencies": { "@babel/core": "^7.15.0", @@ -14,6 +14,7 @@ "babel-loader": "^8.2.2", "core-js": "^3.16.4", "javascript-obfuscator": "^3.0.0", + "phasereditor2d-launcher": "^3.32.0", "socket.io-client": "^4.4.1", "webpack": "^5.51.1", "webpack-cli": "^4.8.0", @@ -2161,6 +2162,15 @@ "acorn": "^8" } }, + "node_modules/adm-zip": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.9.tgz", + "integrity": "sha512-s+3fXLkeeLjZ2kLjCBwQufpI5fuN+kIGBxu6530nVQZGVol0d7Y/M88/xw9HGGUcJjKf8LutN3VPRUBq6N7Ajg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -5327,6 +5337,18 @@ "node": ">=8" } }, + "node_modules/phasereditor2d-launcher": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/phasereditor2d-launcher/-/phasereditor2d-launcher-3.32.0.tgz", + "integrity": "sha512-hOYj6W6WTkp8d/wpxVTnHAGT2kw8VA2pyTIFDKI8HKLR9p0/ypWP5IMsy/jZQxcDN1i+LJYAC2lSiQSE9SnU7Q==", + "dev": true, + "dependencies": { + "adm-zip": "^0.5.5" + }, + "bin": { + "phasereditor2d-launcher": "cli.js" + } + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -8749,6 +8771,12 @@ "dev": true, "requires": {} }, + "adm-zip": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.9.tgz", + "integrity": "sha512-s+3fXLkeeLjZ2kLjCBwQufpI5fuN+kIGBxu6530nVQZGVol0d7Y/M88/xw9HGGUcJjKf8LutN3VPRUBq6N7Ajg==", + "dev": true + }, "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -11128,6 +11156,15 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true }, + "phasereditor2d-launcher": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/phasereditor2d-launcher/-/phasereditor2d-launcher-3.32.0.tgz", + "integrity": "sha512-hOYj6W6WTkp8d/wpxVTnHAGT2kw8VA2pyTIFDKI8HKLR9p0/ypWP5IMsy/jZQxcDN1i+LJYAC2lSiQSE9SnU7Q==", + "dev": true, + "requires": { + "adm-zip": "^0.5.5" + } + }, "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", diff --git a/package.json b/package.json index 553e101f..4f32a9d1 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "A rewrite of the Club Penguin client in HTML5", "scripts": { "dev": "webpack serve", + "editor": "phasereditor2d-launcher -project .", "build": "webpack --mode production", "build-crumbs": "node ./utils/build-crumbs.js" }, @@ -23,6 +24,7 @@ "babel-loader": "^8.2.2", "core-js": "^3.16.4", "javascript-obfuscator": "^3.0.0", + "phasereditor2d-launcher": "^3.32.0", "socket.io-client": "^4.4.1", "webpack": "^5.51.1", "webpack-cli": "^4.8.0", diff --git a/phasereditor2d.config.json b/phasereditor2d.config.json new file mode 100644 index 00000000..56c57bb9 --- /dev/null +++ b/phasereditor2d.config.json @@ -0,0 +1,7 @@ +{ + "skip": [ + "assets/media/clothing", + "assets/media/furniture" + ], + "playUrl": "http://localhost:8080" +}