var exit_spawns = this.getEntitiesByType(EntityExitSpawn).shuffle();
for (var j = 0; j < exit_spawns.length; j++) {
if (j === 0) this.exit = this.spawnEntity(EntityExit, exit_spawns[j].pos.x, exit_spawns[j].pos.y);
exit_spawns[j].kill();
}
时间: 2024-11-08 19:09:28