技能改spine 怪物增加

This commit is contained in:
2025-01-12 23:58:35 +08:00
parent 8d0c6e24be
commit 09f6b140bb
305 changed files with 63972 additions and 21951 deletions

View File

@@ -32,8 +32,11 @@ export class Skill extends ecs.Entity {
if(!SkillSet[uuid].with){node.parent = parent.parent;}
node.setPosition(pos)
if(group==BoxSet.MONSTER) node.setScale(v3(-1*node.scale.x,node.scale.y));
var sv = node.getComponent(SkillCom);
if(group==BoxSet.MONSTER) {
sv.scale=-1
node.setScale(v3(sv.scale*node.scale.x,node.scale.y));
}
// let angle=0
// if(SkillSet[uuid].angle){
// angle = Math.atan2(t_pos.y,t_pos.x) * 180 / Math.PI;