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
4db3d343
Commit
4db3d343
authored
Jul 13, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
a7b8c4c0
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
754 additions
and
155 deletions
+754
-155
getAwayFromCloud.json
dist/customs/getAwayFromCloud.json
+33
-13
package-lock.json
package-lock.json
+576
-0
index.html
src/custom/getAwayFromCloud/debug/index.html
+2
-2
main.js
src/custom/getAwayFromCloud/debug/main.js
+31
-25
main.js.map
src/custom/getAwayFromCloud/debug/main.js.map
+1
-1
GameTest.ts
src/custom/getAwayFromCloud/src/game/GameTest.ts
+111
-114
No files found.
dist/customs/getAwayFromCloud.json
View file @
4db3d343
This diff is collapsed.
Click to expand it.
package-lock.json
0 → 100644
View file @
4db3d343
This diff is collapsed.
Click to expand it.
src/custom/getAwayFromCloud/debug/index.html
View file @
4db3d343
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"
en
"
>
<html
lang=
"
zh
"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
...
...
src/custom/getAwayFromCloud/debug/main.js
View file @
4db3d343
...
@@ -110,6 +110,7 @@
...
@@ -110,6 +110,7 @@
};
};
return
Moist
;
return
Moist
;
}(
engine
.
Container
));
}(
engine
.
Container
));
//# sourceMappingURL=Moist.js.map
var
TimeCounter
=
(
function
(
_super
)
{
var
TimeCounter
=
(
function
(
_super
)
{
tslib
.
__extends
(
TimeCounter
,
_super
);
tslib
.
__extends
(
TimeCounter
,
_super
);
...
@@ -254,6 +255,9 @@
...
@@ -254,6 +255,9 @@
point3
.
y
=
100
;
point3
.
y
=
100
;
point3
.
endFill
();
point3
.
endFill
();
this
.
rightHand
.
addChild
(
point3
);
this
.
rightHand
.
addChild
(
point3
);
window
[
'p1'
]
=
point1
;
window
[
'p2'
]
=
point2
;
window
[
'p3'
]
=
point3
;
this
.
timeCounter
=
new
TimeCounter
();
this
.
timeCounter
=
new
TimeCounter
();
this
.
addChild
(
this
.
timeCounter
);
this
.
addChild
(
this
.
timeCounter
);
var
ld
=
Date
.
now
();
var
ld
=
Date
.
now
();
...
@@ -298,17 +302,15 @@
...
@@ -298,17 +302,15 @@
this
.
addEventListener
(
engine
.
Event
.
ENTER_FRAME
,
function
addFrame
()
{
this
.
addEventListener
(
engine
.
Event
.
ENTER_FRAME
,
function
addFrame
()
{
var
_this
=
this
;
var
_this
=
this
;
var
dt
=
Date
.
now
()
-
ld
;
var
dt
=
Date
.
now
()
-
ld
;
a
+=
dt
;
b
+=
dt
;
b
+=
dt
;
timer
+=
dt
;
timer
+=
dt
;
if
(
timer
>=
3000
)
{
if
(
timer
>=
3000
)
{
if
(
a
>
200
)
{
a
+=
dt
;
if
(
a
>
10
)
{
a
=
0
;
a
=
0
;
if
(
this
.
moists
.
percent
<
1
&&
this
.
timeCounter
.
time
>
0
)
{
if
(
this
.
moists
.
percent
<
1
&&
this
.
timeCounter
.
time
>
0
)
{
var
drip
=
new
engine
.
Sprite
(
getTexture
(
"07f74bf6-416f-445e-98d5-021efe4c9fdc"
));
var
drip
=
new
engine
.
Sprite
(
getTexture
(
"07f74bf6-416f-445e-98d5-021efe4c9fdc"
));
drip
.
x
=
drip
.
x
=
Math
.
random
()
*
(
this
.
humanbeing
.
x
+
160
)
+
(
this
.
humanbeing
.
x
-
160
);
Math
.
random
()
*
(
this
.
humanbeing
.
x
+
160
)
+
(
this
.
humanbeing
.
x
-
160
);
drip
.
y
=
Math
.
random
()
*
100
+
300
;
drip
.
y
=
Math
.
random
()
*
100
+
300
;
this
.
dripArray
.
push
(
drip
);
this
.
dripArray
.
push
(
drip
);
this
.
addChild
(
drip
);
this
.
addChild
(
drip
);
...
@@ -361,34 +363,39 @@
...
@@ -361,34 +363,39 @@
}
}
this
.
angle
=
Math
.
asin
(
this
.
D
/
2
/
this
.
R
)
*
57.18
;
this
.
angle
=
Math
.
asin
(
this
.
D
/
2
/
this
.
R
)
*
57.18
;
this
.
rightHand
.
name
=
"aaa"
;
this
.
rightHand
.
name
=
"aaa"
;
if
(
this
.
stage
.
height
>
1334
)
;
var
sa
=
this
.
worldMatrix
.
a
;
var
k12
=
(
point1
.
worldMatrix
.
ty
-
point2
.
worldMatrix
.
ty
)
/
var
sd
=
this
.
worldMatrix
.
d
;
(
point1
.
worldMatrix
.
tx
-
point2
.
worldMatrix
.
tx
);
var
p1x
=
point1
.
worldMatrix
.
tx
/
sa
;
var
k23
=
(
point2
.
worldMatrix
.
ty
-
point3
.
worldMatrix
.
ty
)
/
var
p2x
=
point2
.
worldMatrix
.
tx
/
sa
;
(
point2
.
worldMatrix
.
tx
-
point3
.
worldMatrix
.
tx
);
var
p3x
=
point3
.
worldMatrix
.
tx
/
sa
;
var
px1
=
point1
.
worldMatrix
.
tx
;
var
p1y
=
point1
.
worldMatrix
.
ty
/
sd
;
var
px2
=
point2
.
worldMatrix
.
tx
;
var
p2y
=
point2
.
worldMatrix
.
ty
/
sd
;
var
px3
=
point3
.
worldMatrix
.
tx
;
var
p3y
=
point3
.
worldMatrix
.
ty
/
sd
;
var
k12
=
(
p1y
-
p2y
)
/
(
p1x
-
p2x
);
var
k23
=
(
p2y
-
p3y
)
/
(
p2x
-
p3x
);
var
px1
=
p1x
;
var
px2
=
p2x
;
var
px3
=
p3x
;
var
maxX
=
px1
>=
px2
?
(
px1
>=
px3
?
px1
:
px3
)
:
px2
>=
px3
?
px2
:
px3
;
var
maxX
=
px1
>=
px2
?
(
px1
>=
px3
?
px1
:
px3
)
:
px2
>=
px3
?
px2
:
px3
;
var
minX
=
px1
>=
px2
?
(
px2
>=
px3
?
px3
:
px2
)
:
px1
>=
px3
?
px3
:
px1
;
var
minX
=
px1
>=
px2
?
(
px2
>=
px3
?
px3
:
px2
)
:
px1
>=
px3
?
px3
:
px1
;
var
x2
=
(
middleX
+
this
.
R
)
<
maxX
?
(
middleX
+
this
.
R
)
:
maxX
;
var
x2
=
(
middleX
+
this
.
R
)
<
maxX
?
(
middleX
+
this
.
R
)
:
maxX
;
var
_loop_2
=
function
(
drip
)
{
var
_loop_2
=
function
(
drip
)
{
var
b12
=
point1
.
worldMatrix
.
ty
-
var
dx
=
drip
.
worldMatrix
.
tx
/
sa
;
point1
.
worldMatrix
.
tx
*
k12
-
50
;
var
dy
=
drip
.
worldMatrix
.
ty
/
sd
;
var
b
23
=
point2
.
worldMatrix
.
ty
-
var
b
12
=
p1y
-
p1x
*
k12
-
50
;
point2
.
worldMatrix
.
t
x
*
k23
-
50
;
var
b23
=
p2y
-
p2
x
*
k23
-
50
;
var
y12
=
k12
*
d
rip
.
x
+
b12
;
var
y12
=
k12
*
dx
+
b12
;
var
y23
=
k23
*
d
rip
.
x
+
b23
;
var
y23
=
k23
*
dx
+
b23
;
if
(
d
rip
.
x
>=
minX
&&
drip
.
x
<
maxX
)
{
if
(
d
x
>=
minX
&&
d
x
<
maxX
)
{
if
(
d
rip
.
x
<
px2
)
{
if
(
dx
<
px2
)
{
if
(
d
rip
.
y
>=
y12
)
{
if
(
dy
>=
y12
)
{
var
index_2
=
this_2
.
dripArray
.
indexOf
(
drip
);
var
index_2
=
this_2
.
dripArray
.
indexOf
(
drip
);
this_2
.
removeChild
(
drip
);
this_2
.
removeChild
(
drip
);
this_2
.
dripArray
=
this_2
.
dripArray
.
filter
(
function
(
ele
,
i
)
{
return
i
!=
index_2
;
});
this_2
.
dripArray
=
this_2
.
dripArray
.
filter
(
function
(
ele
,
i
)
{
return
i
!=
index_2
;
});
}
}
}
}
if
(
d
rip
.
x
>=
px2
)
{
if
(
dx
>=
px2
)
{
if
(
d
rip
.
y
>=
y23
)
{
if
(
dy
>=
y23
)
{
var
index_3
=
this_2
.
dripArray
.
indexOf
(
drip
);
var
index_3
=
this_2
.
dripArray
.
indexOf
(
drip
);
this_2
.
removeChild
(
drip
);
this_2
.
removeChild
(
drip
);
this_2
.
dripArray
=
this_2
.
dripArray
.
filter
(
function
(
ele
,
i
)
{
return
i
!=
index_3
;
});
this_2
.
dripArray
=
this_2
.
dripArray
.
filter
(
function
(
ele
,
i
)
{
return
i
!=
index_3
;
});
...
@@ -456,7 +463,6 @@
...
@@ -456,7 +463,6 @@
};
};
return
GameTest
;
return
GameTest
;
}(
engine
.
Container
));
}(
engine
.
Container
));
//# sourceMappingURL=GameTest.js.map
var
props
=
{};
var
props
=
{};
function
prepareProps
()
{
function
prepareProps
()
{
...
...
src/custom/getAwayFromCloud/debug/main.js.map
View file @
4db3d343
This diff is collapsed.
Click to expand it.
src/custom/getAwayFromCloud/src/game/GameTest.ts
View file @
4db3d343
This diff is collapsed.
Click to expand it.
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