This commit is contained in:
2024-07-18 22:53:13 +08:00
parent dca11ad5b5
commit 4cd06064fe
129 changed files with 2440 additions and 6754 deletions

View File

@@ -43,14 +43,27 @@ export class MapViewComp extends CCComp {
if (pos == null) {
this.scene.node.active = true
smc.own = ecs.getEntity<Role>(Role);
smc.own.load(this.aStarToVec3("0,0"), true);
smc.own.load(this.aStarToVec3("-360,-60"), false);
// smc.own.loadJoystick();
// 测试玩家
var test = ecs.getEntity<Role>(Role);
test.load(this.aStarToVec3("-300,0"), false);
test.load(this.aStarToVec3("-270,-60"), false);
var test1 = ecs.getEntity<Role>(Role);
test1.load(this.aStarToVec3("-180,-60"), false);
var test2 = ecs.getEntity<Role>(Role);
test2.load(this.aStarToVec3("-300,300"), false);
test2.load(this.aStarToVec3("-90,-60"), false);
// var test3 = ecs.getEntity<Role>(Role);
// test3.load(this.aStarToVec3("0,-60"), false);
var test4 = ecs.getEntity<Role>(Role);
test4.load(this.aStarToVec3("90,-60"), true,"monster");
var test5 = ecs.getEntity<Role>(Role);
test5.load(this.aStarToVec3("180,-60"), true,"magic");
var test6 = ecs.getEntity<Role>(Role);
test6.load(this.aStarToVec3("270,-60"), true,"heath");
var test7 = ecs.getEntity<Role>(Role);
test7.load(this.aStarToVec3("360,-60"), true);
}
else {
this.scene.setPlayer(pos);