Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
East_L215
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
East_L215
Commits
cbb980a3
Commit
cbb980a3
authored
Apr 15, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
016ed50a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
play.component.ts
src/app/play/play.component.ts
+5
-3
resources.js
src/app/play/resources.js
+2
-2
bg_card_1.png
src/assets/play/bg_card_1.png
+0
-0
bg_card_runway_1.png
src/assets/play/bg_card_runway_1.png
+0
-0
bg_card_runway_2.png
src/assets/play/bg_card_runway_2.png
+0
-0
No files found.
src/app/play/play.component.ts
View file @
cbb980a3
...
@@ -313,12 +313,12 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -313,12 +313,12 @@ export class PlayComponent implements OnInit, OnDestroy {
let
element
=
this
.
g_cartoon
.
createCartoonElementImageFunc
(
'
card-runway
'
,
"
bg_card_runway
"
,
(
w
,
h
)
=>
{
let
element
=
this
.
g_cartoon
.
createCartoonElementImageFunc
(
'
card-runway
'
,
"
bg_card_runway
"
,
(
w
,
h
)
=>
{
return
{
return
{
sx
:
this
.
g_canvasWidth
/
w
,
sx
:
this
.
g_canvasWidth
/
w
,
sy
:
3
00
*
this
.
g_mapScale
/
h
sy
:
3
12
*
this
.
g_mapScale
/
h
}
}
},
(
w
,
h
)
=>
{
},
(
w
,
h
)
=>
{
return
{
return
{
x
:
this
.
g_canvasWidth
/
2
,
x
:
this
.
g_canvasWidth
/
2
,
y
:
this
.
g_cartoon
.
getOrigin
().
y
+
(
h
/
2
)
*
this
.
g_mapScale
+
7
8
*
this
.
g_mapScale
y
:
this
.
g_cartoon
.
getOrigin
().
y
+
(
h
/
2
)
*
this
.
g_mapScale
+
7
2
*
this
.
g_mapScale
}
}
})
})
...
@@ -432,7 +432,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -432,7 +432,7 @@ export class PlayComponent implements OnInit, OnDestroy {
},
(
w
,
h
)
=>
{
},
(
w
,
h
)
=>
{
return
{
return
{
x
:
x
+
(
w
/
2
)
*
this
.
g_mapScale
+
14
*
this
.
g_mapScale
,
x
:
x
+
(
w
/
2
)
*
this
.
g_mapScale
+
14
*
this
.
g_mapScale
,
y
:
y
+
15
0
*
this
.
g_mapScale
y
:
y
+
15
6
*
this
.
g_mapScale
}
}
})
})
element
.
content
=
null
;
element
.
content
=
null
;
...
@@ -674,9 +674,11 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -674,9 +674,11 @@ export class PlayComponent implements OnInit, OnDestroy {
lightOn
(
line
,
row
){
lightOn
(
line
,
row
){
this
.
g_cartoon
.
getCartoonElementRef
(
`water-light-
${
line
}
-
${
row
}
-on`
).
visible
=
true
;
this
.
g_cartoon
.
getCartoonElementRef
(
`water-light-
${
line
}
-
${
row
}
-on`
).
visible
=
true
;
this
.
g_cartoon
.
getCartoonElementRef
(
`water-light-
${
line
}
-
${
row
}
-off`
).
visible
=
false
;
}
}
lightOff
(
line
,
row
){
lightOff
(
line
,
row
){
this
.
g_cartoon
.
getCartoonElementRef
(
`water-light-
${
line
}
-
${
row
}
-on`
).
visible
=
false
;
this
.
g_cartoon
.
getCartoonElementRef
(
`water-light-
${
line
}
-
${
row
}
-on`
).
visible
=
false
;
this
.
g_cartoon
.
getCartoonElementRef
(
`water-light-
${
line
}
-
${
row
}
-off`
).
visible
=
true
;
}
}
runWaterLights
(
totalLightCount
){
runWaterLights
(
totalLightCount
){
...
...
src/app/play/resources.js
View file @
cbb980a3
...
@@ -38,8 +38,8 @@ const localImages = {
...
@@ -38,8 +38,8 @@ const localImages = {
'
light-1
'
:
'
assets/play/light-1.png
'
,
'
light-1
'
:
'
assets/play/light-1.png
'
,
'
light-2
'
:
'
assets/play/light-2.png
'
,
'
light-2
'
:
'
assets/play/light-2.png
'
,
'
bg_title
'
:
'
assets/play/bg_title.png
'
,
'
bg_title
'
:
'
assets/play/bg_title.png
'
,
'
bg_card
'
:
'
assets/play/bg_card.png
'
,
'
bg_card
'
:
'
assets/play/bg_card
_1
.png
'
,
'
bg_card_runway
'
:
'
assets/play/bg_card_runway_
1
.png
'
,
'
bg_card_runway
'
:
'
assets/play/bg_card_runway_
2
.png
'
,
'
text_container
'
:
'
assets/play/text_container-1.png
'
,
'
text_container
'
:
'
assets/play/text_container-1.png
'
,
'
bg_selected_card
'
:
'
assets/play/bg_selected_card.png
'
,
'
bg_selected_card
'
:
'
assets/play/bg_selected_card.png
'
,
'
bg_1280_250
'
:
'
assets/play/bg_1280_250_1.png
'
,
'
bg_1280_250
'
:
'
assets/play/bg_1280_250_1.png
'
,
...
...
src/assets/play/bg_card_1.png
0 → 100644
View file @
cbb980a3
3.34 KB
src/assets/play/bg_card_runway_1.png
View replaced file @
016ed50a
View file @
cbb980a3
4.87 KB
|
W:
|
H:
5.51 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/play/bg_card_runway_2.png
0 → 100644
View file @
cbb980a3
5.5 KB
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