Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
a83b0f51
Commit
a83b0f51
authored
Sep 28, 2020
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: project/src/canvas/game/src/Main.ts
parent
55068487
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
Main.ts
project/src/canvas/game/src/Main.ts
+1
-1
XxlScene.ts
project/src/canvas/game/src/xiaoxiaole/XxlScene.ts
+2
-7
No files found.
project/src/canvas/game/src/Main.ts
View file @
a83b0f51
...
...
@@ -126,7 +126,7 @@ export class Main {
this
.
loadImageTextures
(
resCanvasList
).
then
(
res
=>
{
// changeScene(OpenAni)
changeScene
(
Csd
Scene
)
changeScene
(
Xxl
Scene
)
})
await
InitLottie
.
initLottieList
(
resLottieList
);
...
...
project/src/canvas/game/src/xiaoxiaole/XxlScene.ts
View file @
a83b0f51
...
...
@@ -119,9 +119,6 @@ export class XxlScene extends Scene {
this
.
objectPool
=
new
ObjectPool
()
let
that
=
this
;
(
function
init
()
{
...
...
@@ -185,7 +182,6 @@ export class XxlScene extends Scene {
let
t2
=
l2
>>
1
if
(
l1
&
1
)
{
//遍历奇数行每行的父母节点
for
(
let
offset
=
0
;
offset
<=
t1
;
offset
++
)
{
if
(
offset
)
{
//右移
...
...
@@ -226,11 +222,10 @@ export class XxlScene extends Scene {
}
}
}
else
{
//遍历偶数行每行的父母节点
for
(
let
offset
=
0
;
offset
<
t1
;
offset
++
)
{
//右移
let
fatherrightindex
=
this
.
hexIndices
[
i
-
1
][
t2
-
1
+
offset
]
let
motherrightindex
=
this
.
hexIndices
[
i
-
1
][
t2
+
offset
]
let
fatherrightindex
=
this
.
hexIndices
[
i
-
1
][
t2
+
offset
]
let
motherrightindex
=
this
.
hexIndices
[
i
-
1
][
t2
+
1
+
offset
]
let
nowrightindex
=
this
.
hexIndices
[
i
][
t1
+
offset
]
let
nowright
=
this
.
ItemMap
.
get
(
nowrightindex
)
nowright
.
father
=
this
.
ItemMap
.
get
(
fatherrightindex
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment