This commit is contained in:
2024-08-02 17:06:21 +08:00
parent 52cefb71b4
commit d5f2f65ee6
22 changed files with 920 additions and 75 deletions

View File

@@ -58,7 +58,7 @@ export class MapViewComp extends CCComp {
this.scene.node.active = true
if (smc.monsters.length>0){
let monster = ecs.getEntity<Monster>(Monster);
let pos:Vec3 = v3(BoxSet.RIGHT_END,-60)
let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE)
let speed =smc.monsters[0].speed
let camp = -1
let prefab_path = smc.monsters[0].prefab_path
@@ -70,7 +70,7 @@ export class MapViewComp extends CCComp {
if(smc.heros.length>0) {
console.log("heros load")
let monster = ecs.getEntity<Monster>(Monster);
let pos = v3(BoxSet.LETF_END,-60)
let pos = v3(BoxSet.HERO_START,BoxSet.GAME_LINE)
let speed =smc.heros[0].speed
let camp = 1
let prefab_path = smc.heros[0].prefab_path