From ba4f3e971f91379c70be4eae6904be11446456f1 Mon Sep 17 00:00:00 2001 From: "pan@work" Date: Mon, 4 Nov 2024 16:32:59 +0800 Subject: [PATCH] =?UTF-8?q?hero=E5=92=8Cmon=E7=BB=9F=E4=B8=80=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=94=BB=E5=87=BB=E6=A8=A1=E5=BC=8F=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/game/common/SingletonModuleComp.ts | 8 ++++---- assets/script/game/hero/HeroViewComp.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index b978245c..79b7a51e 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -60,17 +60,17 @@ export class SingletonModuleComp extends ecs.Comp { monsters_dead:any = [] heros_dead:any = [] hero_pos:any=[ - {x:-320,y:BoxSet.GAME_LINE+70}, {x:-320,y:BoxSet.GAME_LINE}, - {x:-320,y:BoxSet.GAME_LINE-70}, + {x:-320,y:BoxSet.GAME_LINE}, + {x:-320,y:BoxSet.GAME_LINE}, {x:-320,y:BoxSet.GAME_LINE}, {x:-320,y:BoxSet.GAME_LINE}, {x:-320,y:BoxSet.GAME_LINE}, ] enemy_pos:any =[ - {x:320,y:BoxSet.GAME_LINE+70}, {x:320,y:BoxSet.GAME_LINE}, - {x:320,y:BoxSet.GAME_LINE-70}, + {x:320,y:BoxSet.GAME_LINE}, + {x:320,y:BoxSet.GAME_LINE}, {x:320,y:BoxSet.GAME_LINE}, {x:320,y:BoxSet.GAME_LINE}, {x:320,y:BoxSet.GAME_LINE}, diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index b4592a39..6ea11e08 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -316,6 +316,7 @@ export class HeroViewComp extends CCComp { pos.y=pos.y + y pos.x=pos.x + x skill.load(pos,this.box_group,this.node,skill_uuid,atk,t_pos); + console.log(this.scale+this.hero_name+"使用技能:"+skill_uuid); // this.tooltip(3,smc.skills[skill_uuid].name,this.skill_uuid); } to_add_buff(hero:any,s_uuid:number){