游戏位置改变

This commit is contained in:
2024-09-02 10:50:59 +08:00
parent f367d1817a
commit 2062ff3b36
7 changed files with 901 additions and 201 deletions

View File

@@ -81,11 +81,11 @@ export class MapMonsterComp extends CCComp {
switch (x) {
case 1:
monster_layer = scene.entityLayer1!.node!;
pos.y=pos.y+5;
pos.y=pos.y+200;
break;
case 2:
monster_layer= scene.entityLayer2!.node!;
pos.y=pos.y-5;
pos.y=pos.y+100;
default:
break;
}