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
a7b8c4c0
Commit
a7b8c4c0
authored
Jul 13, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaa
parent
ede8aa48
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
318 additions
and
221 deletions
+318
-221
index.html
src/custom/getAwayFromCloud/debug/index.html
+4
-2
main.js
src/custom/getAwayFromCloud/debug/main.js
+173
-123
main.js.map
src/custom/getAwayFromCloud/debug/main.js.map
+1
-1
meta.json
src/custom/getAwayFromCloud/meta.json
+6
-0
GameTest.ts
src/custom/getAwayFromCloud/src/game/GameTest.ts
+111
-94
Human.ts
src/custom/getAwayFromCloud/src/game/Human.ts
+1
-1
Moist.ts
src/custom/getAwayFromCloud/src/game/Moist.ts
+22
-0
No files found.
src/custom/getAwayFromCloud/debug/index.html
View file @
a7b8c4c0
...
@@ -35,8 +35,10 @@
...
@@ -35,8 +35,10 @@
<body>
<body>
<div
id=
"game-container"
class=
"game-container"
></div>
<div
id=
"game-container"
class=
"game-container"
></div>
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/editor/zeroing/libs/engine.1de84ff79dba19e949088de63aa75af51a515e5c.js"
></script>
<!-- <script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/engine.1de84ff79dba19e949088de63aa75af51a515e5c.js"></script>
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/editor/zeroing/libs/svga.fd3923ae6e664251ca7981801a65809cc5f36bc3.js"
></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/editor/zeroing/libs/svga.fd3923ae6e664251ca7981801a65809cc5f36bc3.js"></script> -->
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/editor/zeroing/libs/engine.cba09e24bd26909e1a67685a889d4799f4c2597a.js"
></script>
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/editor/zeroing/libs/svga.bbb584f45f3ee647d0611653cb854c5d5bb8fb47.js"
></script>
<!-- <script src="//yun.duiba.com.cn/editor/zeroing/libs/engine.ebc906f6b50b8da0a669f77027981d5f3cb560ce.js"></script> -->
<!-- <script src="//yun.duiba.com.cn/editor/zeroing/libs/engine.ebc906f6b50b8da0a669f77027981d5f3cb560ce.js"></script> -->
<!-- <script src="http://localhost:4002/debug/engine.js"></script>
<!-- <script src="http://localhost:4002/debug/engine.js"></script>
<script src="http://localhost:4003/debug/engine-svga.js"></script> -->
<script src="http://localhost:4003/debug/engine-svga.js"></script> -->
...
...
src/custom/getAwayFromCloud/debug/main.js
View file @
a7b8c4c0
This diff is collapsed.
Click to expand it.
src/custom/getAwayFromCloud/debug/main.js.map
View file @
a7b8c4c0
This diff is collapsed.
Click to expand it.
src/custom/getAwayFromCloud/meta.json
View file @
a7b8c4c0
...
@@ -49,6 +49,12 @@
...
@@ -49,6 +49,12 @@
"uuid"
:
"7f1ef018-79ab-42bf-ac85-0208e36e2928"
,
"uuid"
:
"7f1ef018-79ab-42bf-ac85-0208e36e2928"
,
"ext"
:
".svga"
"ext"
:
".svga"
},
},
{
"name"
:
"雨滴动效"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/85feef80df5c2c7728da817e488987d09ba0aab3.svga"
,
"uuid"
:
"973ed8a7-bfeb-42dd-84fb-e062d150073e"
,
"ext"
:
".svga"
},
{
{
"name"
:
"背景"
,
"name"
:
"背景"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/d0e22ae58b6e8519b969ed207197a31820790349.png"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/d0e22ae58b6e8519b969ed207197a31820790349.png"
,
...
...
src/custom/getAwayFromCloud/src/game/GameTest.ts
View file @
a7b8c4c0
This diff is collapsed.
Click to expand it.
src/custom/getAwayFromCloud/src/game/Human.ts
View file @
a7b8c4c0
...
@@ -34,7 +34,7 @@ export default class Human extends engine.Container{
...
@@ -34,7 +34,7 @@ export default class Human extends engine.Container{
this
.
addEventListener
(
engine
.
Event
.
ENTER_FRAME
,()
=>
{
this
.
addEventListener
(
engine
.
Event
.
ENTER_FRAME
,()
=>
{
let
dt
=
Date
.
now
()
-
pt
;
let
dt
=
Date
.
now
()
-
pt
;
aaa
+=
dt
;
aaa
+=
dt
;
this
.
anchorX
=
this
.
width
this
.
anchorX
=
this
.
width
+
this
.
width
/
2
this
.
anchorY
=
this
.
height
;
this
.
anchorY
=
this
.
height
;
if
(
aaa
>
90
&&
aaa
<=
100
){
if
(
aaa
>
90
&&
aaa
<=
100
){
this
.
scaleY
=
0.99
;
this
.
scaleY
=
0.99
;
...
...
src/custom/getAwayFromCloud/src/game/Moist.ts
View file @
a7b8c4c0
...
@@ -8,6 +8,8 @@ export default class Moist extends engine.Container{
...
@@ -8,6 +8,8 @@ export default class Moist extends engine.Container{
moistCover
:
any
=
new
engine
.
Sprite
(
getTexture
(
'024d67e9-ed7f-4481-94ca-a15bd5226cad'
))
moistCover
:
any
=
new
engine
.
Sprite
(
getTexture
(
'024d67e9-ed7f-4481-94ca-a15bd5226cad'
))
txt
=
new
engine
.
TextInput
();
txt
=
new
engine
.
TextInput
();
hintpic
:
engine
.
Sprite
=
new
engine
.
Sprite
(
getTexture
(
'ed0e8931-2557-4527-bcfc-9071f90d5737'
))
hintpic
:
engine
.
Sprite
=
new
engine
.
Sprite
(
getTexture
(
'ed0e8931-2557-4527-bcfc-9071f90d5737'
))
addPercent
:
number
constructor
(){
constructor
(){
super
();
super
();
this
.
percent
=
0
;
this
.
percent
=
0
;
...
@@ -32,6 +34,23 @@ export default class Moist extends engine.Container{
...
@@ -32,6 +34,23 @@ export default class Moist extends engine.Container{
this
.
moistCover
.
anchorY
=
416
;
this
.
moistCover
.
anchorY
=
416
;
this
.
moistBg
.
addChild
(
this
.
moistCover
)
this
.
moistBg
.
addChild
(
this
.
moistCover
)
this
.
moistCover
.
scaleY
=
percent
;
this
.
moistCover
.
scaleY
=
percent
;
let
ld
=
Date
.
now
();
// let time
// this.addEventListener(engine.Event.ENTER_FRAME,()=>{
// let dt = Date.now() - ld;
// time += dt;
// if(time >= 100){
// // this.moistCover.scaleY =
// }
// })
let
t
=
engine
.
Tween
.
get
(
this
.
moistCover
);
// t.set({alpha:1,scaleY:this.percent})
// .to({alpha:1,scaleY:percent - 0.08},100)
// .to({alpha:1,scaleY:percent - 0.06},100)
// .to({alpha:1,scaleY:percent - 0.04},100)
// .to({alpha:1,scaleY:percent - 0.02},100)
// .to({alpha:1,scaleY:percent},100)
}
}
stopScale
(){
stopScale
(){
...
@@ -48,4 +67,7 @@ export default class Moist extends engine.Container{
...
@@ -48,4 +67,7 @@ export default class Moist extends engine.Container{
}
}
}
}
updatePercent
(
percent
){
this
.
percent
=
percent
;
}
}
}
\ No newline at end of file
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