Commit a83b0f51 authored by spc's avatar spc

modified: project/src/canvas/game/src/Main.ts

parent 55068487
...@@ -126,7 +126,7 @@ export class Main { ...@@ -126,7 +126,7 @@ export class Main {
this.loadImageTextures(resCanvasList).then(res => { this.loadImageTextures(resCanvasList).then(res => {
// changeScene(OpenAni) // changeScene(OpenAni)
changeScene(CsdScene) changeScene(XxlScene)
}) })
await InitLottie.initLottieList(resLottieList); await InitLottie.initLottieList(resLottieList);
......
...@@ -119,9 +119,6 @@ export class XxlScene extends Scene { ...@@ -119,9 +119,6 @@ export class XxlScene extends Scene {
this.objectPool = new ObjectPool() this.objectPool = new ObjectPool()
let that = this; let that = this;
(function init() { (function init() {
...@@ -185,7 +182,6 @@ export class XxlScene extends Scene { ...@@ -185,7 +182,6 @@ export class XxlScene extends Scene {
let t2 = l2 >> 1 let t2 = l2 >> 1
if (l1 & 1) { if (l1 & 1) {
//遍历奇数行每行的父母节点
for (let offset = 0; offset <= t1; offset++) { for (let offset = 0; offset <= t1; offset++) {
if (offset) { if (offset) {
//右移 //右移
...@@ -226,11 +222,10 @@ export class XxlScene extends Scene { ...@@ -226,11 +222,10 @@ export class XxlScene extends Scene {
} }
} }
} else { } else {
//遍历偶数行每行的父母节点
for (let offset = 0; offset < t1; offset++) { for (let offset = 0; offset < t1; offset++) {
//右移 //右移
let fatherrightindex = this.hexIndices[i - 1][t2 - 1 + offset] let fatherrightindex = this.hexIndices[i - 1][t2 + offset]
let motherrightindex = this.hexIndices[i - 1][t2 + offset] let motherrightindex = this.hexIndices[i - 1][t2 + 1 + offset]
let nowrightindex = this.hexIndices[i][t1 + offset] let nowrightindex = this.hexIndices[i][t1 + offset]
let nowright = this.ItemMap.get(nowrightindex) let nowright = this.ItemMap.get(nowrightindex)
nowright.father = this.ItemMap.get(fatherrightindex) nowright.father = this.ItemMap.get(fatherrightindex)
......
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