Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
劳工
zeroing-libs
Commits
cc53f1ee
Commit
cc53f1ee
authored
Nov 06, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国庆弹球修改
parent
cf8e5248
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
gqtq-game.json
dist/customs/gqtq-game.json
+1
-1
main.js
src/custom/gqtq-game/debug/main.js
+9
-2
main.js.map
src/custom/gqtq-game/debug/main.js.map
+1
-1
GameView.ts
src/custom/gqtq-game/src/game/GameView.ts
+16
-3
No files found.
dist/customs/gqtq-game.json
View file @
cc53f1ee
This diff is collapsed.
Click to expand it.
src/custom/gqtq-game/debug/main.js
View file @
cc53f1ee
...
...
@@ -604,8 +604,15 @@
itext
.
text
=
"奖品"
+
i
;
itext
.
x
=
20
+
(
56
+
16
)
*
(
i
-
1
);
itext
.
y
=
516
;
this
.
addChild
(
itext
);
this
[
"prizetxt"
+
i
]
=
itext
;
var
img
=
new
engine
.
Image
();
img
.
width
=
56
;
img
.
height
=
56
;
img
.
x
=
20
+
(
56
+
16
)
*
(
i
-
1
);
img
.
y
=
516
;
img
.
source
=
""
;
this
.
addChild
(
img
);
this
[
"prizeimg"
+
i
]
=
img
;
}
var
cuizimask
=
new
engine
.
Graphics
();
cuizimask
.
beginFill
(
0xffffff
,
1
);
...
...
@@ -700,7 +707,7 @@
var
prizedata
=
props
.
prizedata
;
for
(
var
i
=
0
;
i
<
prizedata
.
length
;
i
++
)
{
var
idata
=
prizedata
[
i
];
this
[
"prize
txt"
+
(
i
+
1
)].
text
=
idata
;
this
[
"prize
img"
+
(
i
+
1
)].
source
=
idata
;
}
};
GameView
.
prototype
.
fallBall
=
function
()
{
...
...
src/custom/gqtq-game/debug/main.js.map
View file @
cc53f1ee
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/custom/gqtq-game/src/game/GameView.ts
View file @
cc53f1ee
...
...
@@ -65,9 +65,17 @@ export default class GameView extends engine.Container {
itext
.
text
=
"奖品"
+
i
;
itext
.
x
=
20
+
(
56
+
16
)
*
(
i
-
1
);
itext
.
y
=
516
;
this
.
addChild
(
itext
);
//
this.addChild(itext);
this
[
"prizetxt"
+
i
]
=
itext
;
let
img
=
new
engine
.
Image
();
img
.
width
=
56
;
img
.
height
=
56
;
img
.
x
=
20
+
(
56
+
16
)
*
(
i
-
1
);
img
.
y
=
516
;
img
.
source
=
""
;
this
.
addChild
(
img
);
this
[
"prizeimg"
+
i
]
=
img
;
}
...
...
@@ -198,7 +206,12 @@ export default class GameView extends engine.Container {
let
prizedata
=
props
.
prizedata
;
for
(
let
i
=
0
;
i
<
prizedata
.
length
;
i
++
)
{
let
idata
=
prizedata
[
i
];
this
[
"prizetxt"
+
(
i
+
1
)].
text
=
idata
;
// let iname = idata;
// if(idata.length>4){
// iname = idata.slice(0,3)+"..";
// }
this
[
"prizeimg"
+
(
i
+
1
)].
source
=
idata
;
// this["prizetxt" + (i + 1)].text = iname;
}
}
//球掉落
...
...
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