From 149b90344e43c0b3f84f3dbaf878cd1a0cbdce07 Mon Sep 17 00:00:00 2001 From: chicrobot Date: Sun, 18 Jan 2026 02:55:07 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(VJ)=20=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E7=82=B9=E8=A7=A6=E6=8E=A7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3f10a4eb4ad919552e4b3b2a4e527becc75171e2. --- config/gameConfig.js | 10 ---------- scenes/testScenes/AttackSkillTestScene.js | 8 ++++---- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/config/gameConfig.js b/config/gameConfig.js index 8c72703..9aee610 100644 --- a/config/gameConfig.js +++ b/config/gameConfig.js @@ -8,16 +8,6 @@ export default { height: window.innerHeight, // 游戏背景颜色:使用十六进制颜色值设置为天蓝色 backgroundColor: '#87ceeb', - // 输入系统配置 - input: { - // 启用多点触控支持 - multiTouch: true, - // 触摸事件捕获配置 - touch: { - // 捕获触摸事件,防止事件冒泡 - capture: true - } - }, // 物理引擎配置 physics: { // 默认使用的物理引擎:'arcade'是Phaser内置的轻量级物理引擎 diff --git a/scenes/testScenes/AttackSkillTestScene.js b/scenes/testScenes/AttackSkillTestScene.js index d72207a..61925ad 100644 --- a/scenes/testScenes/AttackSkillTestScene.js +++ b/scenes/testScenes/AttackSkillTestScene.js @@ -184,7 +184,7 @@ export default class AttackSkillTestScene extends Phaser.Scene { isActive: false, base: null, knob: null, - activePointer: null, + pointer: null, centerX: 0, centerY: 0, radius: 50, @@ -393,7 +393,7 @@ export default class AttackSkillTestScene extends Phaser.Scene { // 鼠标移动事件 this.input.on('pointermove', (ptr) => { // 只有在技能轮盘激活时才处理 - if (!this.skillWheel.isActive || this.skillWheel.activePointer !== ptr) { + if (!this.skillWheel.isActive || this.skillWheel.pointer !== ptr) { return; } @@ -419,7 +419,7 @@ export default class AttackSkillTestScene extends Phaser.Scene { // 鼠标释放事件 this.input.on('pointerup', (ptr) => { // 只有在技能轮盘激活时才处理 - if (!this.skillWheel.isActive || this.skillWheel.activePointer !== ptr) { + if (!this.skillWheel.isActive || this.skillWheel.pointer !== ptr) { return; } @@ -451,7 +451,7 @@ export default class AttackSkillTestScene extends Phaser.Scene { startSkillCast(pointer) { // 设置技能轮盘状态 this.skillWheel.isActive = true; - this.skillWheel.activePointer = pointer; + this.skillWheel.pointer = pointer; // 显示旋钮和轮盘基础 this.skillWheel.knob.setVisible(true);