Commit 692a176f authored by liujiangnan's avatar liujiangnan

feat: 改名过流水线

parent c4cf837d
{"width":256,"imagePath":"L2BG2-下雪动效_tex.png","height":128,"name":"L2BG2-下雪动效","SubTexture":[{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17","x":124},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝","x":83},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_7","x":1},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_2","x":165},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_6","x":83},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_3","x":1},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_9","x":42},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_8","x":206},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_4","x":124},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17 拷贝 5_0","x":165},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_5","x":42}]}
\ No newline at end of file
{"width":256,"imagePath":"L2BG2_tex.png","height":128,"name":"L2BG2-下雪动效","SubTexture":[{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17","x":124},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝","x":83},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_7","x":1},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_2","x":165},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_6","x":83},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_3","x":1},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_9","x":42},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_8","x":206},{"width":39,"y":45,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_4","x":124},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17 拷贝 5_0","x":165},{"width":39,"y":1,"height":42,"name":"下雪效果9秒内循环/图层17_拷贝_5","x":42}]}
\ No newline at end of file
......@@ -11,7 +11,7 @@
"height": 128,
"platformSettings": {},
"subMetas": {
"L2BG2-下雪动效_tex": {
"L2BG2_tex": {
"ver": "1.0.4",
"uuid": "a8d48cce-7bc1-48a5-b57a-f0aaba3863d7",
"rawTextureUuid": "d575b0a8-c642-41cc-a562-3f5a5f752255",
......
{"SubTexture":[{"width":125,"y":1,"height":46,"name":"落叶/__29","x":1},{"width":107,"y":49,"height":44,"name":"落叶/__29(2)","x":1},{"width":44,"y":95,"height":54,"name":"落叶/__29(3)","x":1}],"width":128,"imagePath":"L2BG3天监树林落叶_tex.png","height":256,"name":"L2BG3天监树林落叶"}
\ No newline at end of file
{"SubTexture":[{"width":125,"y":1,"height":46,"name":"落叶/__29","x":1},{"width":107,"y":49,"height":44,"name":"落叶/__29(2)","x":1},{"width":44,"y":95,"height":54,"name":"落叶/__29(3)","x":1}],"width":128,"imagePath":"L2BG3_tex.png","height":256,"name":"L2BG3天监树林落叶"}
\ No newline at end of file
......@@ -11,7 +11,7 @@
"height": 256,
"platformSettings": {},
"subMetas": {
"L2BG3天监树林落叶_tex": {
"L2BG3_tex": {
"ver": "1.0.4",
"uuid": "7c38f396-2f8b-4bd0-97ca-c3390d895b7e",
"rawTextureUuid": "dfa2e615-6b63-4ef6-80a9-c0994ad63fa4",
......
......@@ -4,10 +4,10 @@ import {
asyncTweenTo,
onHomeworkFinish,
RandomInt,
} from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import { NetworkHelper } from "../script/NetworkHelper";
import { GameServer } from "../script/Server";
} from "../script/util_l2_boardgame2_tree";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_l2_boardgame2_tree";
import { NetworkHelper } from "../script/NetworkHelper_l2_boardgame2_tree";
import { GameServer } from "../script/Server_l2_boardgame2_tree";
let win: any = window;
let courseware = win.courseware;
......@@ -115,9 +115,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
addComponents() {
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => {
let itemData = node.getComponent("BoardGame2_ItemData");
let itemData = node.getComponent("l2_boardgame2_tree_ItemData");
if (!itemData) {
itemData = node.addComponent('BoardGame2_ItemData');
itemData = node.addComponent('l2_boardgame2_tree_ItemData');
let name = node.name;
console.log(name);
if (name == 'start' || name == 'end') {
......@@ -136,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
getJumpList() {
const jumpList = [];
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => {
const itemData = node.getComponent("BoardGame2_ItemData");
const itemData = node.getComponent("l2_boardgame2_tree_ItemData");
if (itemData.jump) {
const from = itemData.idx;
const to = itemData.jump;
......@@ -175,7 +175,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const loadingLayerNode = cc.instantiate(this.loadingLayerPrefab);
loadingLayerBase.addChild(loadingLayerNode);
this.loadingLayer = loadingLayerNode.getComponent("BoardGame_tree_LoadingLayer");
this.loadingLayer = loadingLayerNode.getComponent("LoadingLayer_l2_boardgame2_tree");
this.loadingLayer.setMaxPlayerNumber(2);
this.loadingLayer.onLoadFinished(() => {
this.playAudioByUrl(this.data.gameStartAudio);
......@@ -508,7 +508,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// console.log("startIdx = " + JSON.stringify(startIdx));
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData");
const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return targetNode;
......@@ -535,7 +535,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const startIdx = this._status[this._status.current];
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData");
const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return i;
}
......@@ -549,7 +549,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData");
const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
if (targetNode.getBoundingBox().intersects(node.getBoundingBox())) {
......@@ -774,7 +774,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const letterList = [];
for (let i = startIdx + 1; i < board.children.length - 1; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData");
const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
const nodeLetter = itemData.letter.toUpperCase();
if (!letterList.find((letter) => letter == nodeLetter)) {
letterList.push(nodeLetter);
......@@ -928,7 +928,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let idx = this.getNextRightIdx();
const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed");
const pieceBlue = cc.find("Canvas/bg/chessBoard/pieceBlue");
const riData = rightBlock.getComponent("BoardGame2_ItemData");
const riData = rightBlock.getComponent("l2_boardgame2_tree_ItemData");
if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump));
let idx = parseInt(riData.jump);//this.getNextRightIdx();
......@@ -954,7 +954,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pieceBlue["cantMove"] = false;
await this.pieceFindRightBlock(rightBlock, idx);
const riData = rightBlock.getComponent("BoardGame2_ItemData");
const riData = rightBlock.getComponent("l2_boardgame2_tree_ItemData");
if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump));
idx = parseInt(riData.jump);//this.getNextRightIdx();
......@@ -1314,7 +1314,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// for (let i = startIdx + 1; i < board.children.length; i++) {
// const targetNode = board.children[i];
// const itemData = targetNode.getComponent("BoardGame2_ItemData");
// const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
// const prograssbar = cc.find(
// `Canvas/bg/Life${color.toLowerCase()}/life_${color.toLowerCase()}/mask/prograssbar`
......
import { NetworkHelper } from "./NetworkHelper";
import { asyncDelay } from "./util";
import { NetworkHelper } from "./NetworkHelper_l2_boardgame2_tree";
import { asyncDelay } from "./util_l2_boardgame2_tree";
export class AI {
networkHelper: NetworkHelper;
......@@ -81,7 +81,7 @@ export class AI {
const startIdx = this._status[this._status.current];
for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData");
const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
if (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return i;
}
......
import { asyncPlayDragonBoneAnimation } from "./util";
import { asyncPlayDragonBoneAnimation } from "./util_l2_boardgame2_tree";
const { ccclass, property } = cc._decorator;
......
import { defaultData } from "../script/defaultData";
import { defaultData } from "../script/defaultData_l2_boardgame2_tree";
export class MyCocosSceneComponent extends cc.Component {
......
import { RandomInt } from "./util";
import { RandomInt } from "./util_l2_boardgame2_tree";
export class NetworkHelper {
_eventListeners: any = {};
......
import { asyncDelay, RandomInt } from "../script/util";
import { AI } from "./AI";
import { NetworkHelper } from "./NetworkHelper";
import { asyncDelay, RandomInt } from "../script/util_l2_boardgame2_tree";
import { AI } from "./AI_l2_boardgame2_tree";
import { NetworkHelper } from "./NetworkHelper_l2_boardgame2_tree";
export class GameServer {
playerList = [];
......@@ -224,7 +224,7 @@ export class GameServer {
const letterList = [];
for (let i = startIdx + 1; i < board.children.length - 1; i++) {
const targetNode = board.children[i];
const itemData = targetNode.getComponent("BoardGame2_ItemData");
const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
const nodeLetter = itemData.letter.toUpperCase();
if (!letterList.find((letter) => letter == nodeLetter)) {
letterList.push(nodeLetter);
......
......@@ -8,7 +8,7 @@
"genMipmaps": false,
"packable": true,
"width": 165,
"height": 211,
"height": 254,
"platformSettings": {},
"subMetas": {
"11": {
......
......@@ -11,7 +11,7 @@
"height": 208,
"platformSettings": {},
"subMetas": {
"bg_nice-try": {
"bg_nice_try": {
"ver": "1.0.4",
"uuid": "4afa0360-f0c8-4621-b03e-380547a1544b",
"rawTextureUuid": "dd02cfee-d5fc-40ac-998c-3b57972284f8",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment