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 @@ ...@@ -11,7 +11,7 @@
"height": 128, "height": 128,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"L2BG2-下雪动效_tex": { "L2BG2_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "a8d48cce-7bc1-48a5-b57a-f0aaba3863d7", "uuid": "a8d48cce-7bc1-48a5-b57a-f0aaba3863d7",
"rawTextureUuid": "d575b0a8-c642-41cc-a562-3f5a5f752255", "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天监树林落叶"} {"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 \ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 256, "height": 256,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"L2BG3天监树林落叶_tex": { "L2BG3_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "7c38f396-2f8b-4bd0-97ca-c3390d895b7e", "uuid": "7c38f396-2f8b-4bd0-97ca-c3390d895b7e",
"rawTextureUuid": "dfa2e615-6b63-4ef6-80a9-c0994ad63fa4", "rawTextureUuid": "dfa2e615-6b63-4ef6-80a9-c0994ad63fa4",
......
...@@ -4,10 +4,10 @@ import { ...@@ -4,10 +4,10 @@ import {
asyncTweenTo, asyncTweenTo,
onHomeworkFinish, onHomeworkFinish,
RandomInt, RandomInt,
} from "../script/util"; } from "../script/util_l2_boardgame2_tree";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_l2_boardgame2_tree";
import { NetworkHelper } from "../script/NetworkHelper"; import { NetworkHelper } from "../script/NetworkHelper_l2_boardgame2_tree";
import { GameServer } from "../script/Server"; import { GameServer } from "../script/Server_l2_boardgame2_tree";
let win: any = window; let win: any = window;
let courseware = win.courseware; let courseware = win.courseware;
...@@ -115,9 +115,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -115,9 +115,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
addComponents() { addComponents() {
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => { 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) { if (!itemData) {
itemData = node.addComponent('BoardGame2_ItemData'); itemData = node.addComponent('l2_boardgame2_tree_ItemData');
let name = node.name; let name = node.name;
console.log(name); console.log(name);
if (name == 'start' || name == 'end') { if (name == 'start' || name == 'end') {
...@@ -136,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -136,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
getJumpList() { getJumpList() {
const jumpList = []; const jumpList = [];
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => { 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) { if (itemData.jump) {
const from = itemData.idx; const from = itemData.idx;
const to = itemData.jump; const to = itemData.jump;
...@@ -175,7 +175,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -175,7 +175,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const loadingLayerNode = cc.instantiate(this.loadingLayerPrefab); const loadingLayerNode = cc.instantiate(this.loadingLayerPrefab);
loadingLayerBase.addChild(loadingLayerNode); loadingLayerBase.addChild(loadingLayerNode);
this.loadingLayer = loadingLayerNode.getComponent("BoardGame_tree_LoadingLayer"); this.loadingLayer = loadingLayerNode.getComponent("LoadingLayer_l2_boardgame2_tree");
this.loadingLayer.setMaxPlayerNumber(2); this.loadingLayer.setMaxPlayerNumber(2);
this.loadingLayer.onLoadFinished(() => { this.loadingLayer.onLoadFinished(() => {
this.playAudioByUrl(this.data.gameStartAudio); this.playAudioByUrl(this.data.gameStartAudio);
...@@ -508,7 +508,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -508,7 +508,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// console.log("startIdx = " + JSON.stringify(startIdx)); // console.log("startIdx = " + JSON.stringify(startIdx));
for (let i = startIdx + 1; i < board.children.length; i++) { for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[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 (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return targetNode; return targetNode;
...@@ -535,7 +535,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -535,7 +535,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const startIdx = this._status[this._status.current]; const startIdx = this._status[this._status.current];
for (let i = startIdx + 1; i < board.children.length; i++) { for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[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 (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return i; return i;
} }
...@@ -549,7 +549,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -549,7 +549,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let i = startIdx + 1; i < board.children.length; i++) { for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[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 (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
if (targetNode.getBoundingBox().intersects(node.getBoundingBox())) { if (targetNode.getBoundingBox().intersects(node.getBoundingBox())) {
...@@ -774,7 +774,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -774,7 +774,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const letterList = []; const letterList = [];
for (let i = startIdx + 1; i < board.children.length - 1; i++) { for (let i = startIdx + 1; i < board.children.length - 1; i++) {
const targetNode = board.children[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(); const nodeLetter = itemData.letter.toUpperCase();
if (!letterList.find((letter) => letter == nodeLetter)) { if (!letterList.find((letter) => letter == nodeLetter)) {
letterList.push(nodeLetter); letterList.push(nodeLetter);
...@@ -928,7 +928,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -928,7 +928,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let idx = this.getNextRightIdx(); let idx = this.getNextRightIdx();
const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed"); const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed");
const pieceBlue = cc.find("Canvas/bg/chessBoard/pieceBlue"); 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 != "") { if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump)); rightBlock = this.jumpBlock(parseInt(riData.jump));
let idx = parseInt(riData.jump);//this.getNextRightIdx(); let idx = parseInt(riData.jump);//this.getNextRightIdx();
...@@ -954,7 +954,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -954,7 +954,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pieceBlue["cantMove"] = false; pieceBlue["cantMove"] = false;
await this.pieceFindRightBlock(rightBlock, idx); await this.pieceFindRightBlock(rightBlock, idx);
const riData = rightBlock.getComponent("BoardGame2_ItemData"); const riData = rightBlock.getComponent("l2_boardgame2_tree_ItemData");
if (riData.jump != "") { if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump)); rightBlock = this.jumpBlock(parseInt(riData.jump));
idx = parseInt(riData.jump);//this.getNextRightIdx(); idx = parseInt(riData.jump);//this.getNextRightIdx();
...@@ -1314,7 +1314,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1314,7 +1314,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// for (let i = startIdx + 1; i < board.children.length; i++) { // for (let i = startIdx + 1; i < board.children.length; i++) {
// const targetNode = board.children[i]; // const targetNode = board.children[i];
// const itemData = targetNode.getComponent("BoardGame2_ItemData"); // const itemData = targetNode.getComponent("l2_boardgame2_tree_ItemData");
// const prograssbar = cc.find( // const prograssbar = cc.find(
// `Canvas/bg/Life${color.toLowerCase()}/life_${color.toLowerCase()}/mask/prograssbar` // `Canvas/bg/Life${color.toLowerCase()}/life_${color.toLowerCase()}/mask/prograssbar`
......
import { NetworkHelper } from "./NetworkHelper"; import { NetworkHelper } from "./NetworkHelper_l2_boardgame2_tree";
import { asyncDelay } from "./util"; import { asyncDelay } from "./util_l2_boardgame2_tree";
export class AI { export class AI {
networkHelper: NetworkHelper; networkHelper: NetworkHelper;
...@@ -81,7 +81,7 @@ export class AI { ...@@ -81,7 +81,7 @@ export class AI {
const startIdx = this._status[this._status.current]; const startIdx = this._status[this._status.current];
for (let i = startIdx + 1; i < board.children.length; i++) { for (let i = startIdx + 1; i < board.children.length; i++) {
const targetNode = board.children[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 (itemData.letter.toLowerCase() == this._status.letter.toLowerCase()) {
return i; return i;
} }
......
import { asyncPlayDragonBoneAnimation } from "./util"; import { asyncPlayDragonBoneAnimation } from "./util_l2_boardgame2_tree";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
......
import { defaultData } from "../script/defaultData"; import { defaultData } from "../script/defaultData_l2_boardgame2_tree";
export class MyCocosSceneComponent extends cc.Component { export class MyCocosSceneComponent extends cc.Component {
......
import { RandomInt } from "./util"; import { RandomInt } from "./util_l2_boardgame2_tree";
export class NetworkHelper { export class NetworkHelper {
_eventListeners: any = {}; _eventListeners: any = {};
......
import { asyncDelay, RandomInt } from "../script/util"; import { asyncDelay, RandomInt } from "../script/util_l2_boardgame2_tree";
import { AI } from "./AI"; import { AI } from "./AI_l2_boardgame2_tree";
import { NetworkHelper } from "./NetworkHelper"; import { NetworkHelper } from "./NetworkHelper_l2_boardgame2_tree";
export class GameServer { export class GameServer {
playerList = []; playerList = [];
...@@ -224,7 +224,7 @@ export class GameServer { ...@@ -224,7 +224,7 @@ export class GameServer {
const letterList = []; const letterList = [];
for (let i = startIdx + 1; i < board.children.length - 1; i++) { for (let i = startIdx + 1; i < board.children.length - 1; i++) {
const targetNode = board.children[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(); const nodeLetter = itemData.letter.toUpperCase();
if (!letterList.find((letter) => letter == nodeLetter)) { if (!letterList.find((letter) => letter == nodeLetter)) {
letterList.push(nodeLetter); letterList.push(nodeLetter);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 165, "width": 165,
"height": 211, "height": 254,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"11": { "11": {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 208, "height": 208,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_nice-try": { "bg_nice_try": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "4afa0360-f0c8-4621-b03e-380547a1544b", "uuid": "4afa0360-f0c8-4621-b03e-380547a1544b",
"rawTextureUuid": "dd02cfee-d5fc-40ac-998c-3b57972284f8", "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