Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SSIWB2504
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
SSIWB2504
Commits
ca2ac22b
Commit
ca2ac22b
authored
Aug 05, 2025
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换泡泡
parent
da018b33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
play.component.ts
src/app/play/play.component.ts
+12
-12
resources.js
src/app/play/resources.js
+1
-1
pao_pao_da_png.png
src/assets/game/pao_pao_da_png.png
+0
-0
No files found.
src/app/play/play.component.ts
View file @
ca2ac22b
...
@@ -698,7 +698,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -698,7 +698,7 @@ export class PlayComponent implements OnInit, OnDestroy {
const
type
=
'
big
'
const
type
=
'
big
'
const
data
=
this
.
g_formData
.
questions
[
0
];
const
data
=
this
.
g_formData
.
questions
[
0
];
const
fish
=
this
.
createFish
(
type
,
data
);
const
fish
=
this
.
createFish
(
type
,
data
);
const
paopao
=
this
.
brokePaopao
(
fish
);
//
const paopao = this.brokePaopao(fish);
}
}
initVsView
()
{
initVsView
()
{
...
@@ -829,7 +829,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -829,7 +829,7 @@ export class PlayComponent implements OnInit, OnDestroy {
chuan
.
ref
.
scaleX
=
this
.
g_mapScale
;
chuan
.
ref
.
scaleX
=
this
.
g_mapScale
;
chuan
.
ref
.
scaleY
=
this
.
g_mapScale
;
chuan
.
ref
.
scaleY
=
this
.
g_mapScale
;
chuan
.
ref
.
x
=
0
chuan
.
ref
.
x
=
0
chuan
.
ref
.
y
=
-
38
chuan
.
ref
.
y
=
-
70
*
this
.
g_mapScale
;
cat
.
ref
.
addChild
(
chuan
.
ref
);
cat
.
ref
.
addChild
(
chuan
.
ref
);
this
.
render
(
cat
.
ref
,
zIndexMap
.
card
);
this
.
render
(
cat
.
ref
,
zIndexMap
.
card
);
...
@@ -853,7 +853,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -853,7 +853,7 @@ export class PlayComponent implements OnInit, OnDestroy {
cat
[
'
child_tong_right
'
].
ref
.
visible
=
false
;
cat
[
'
child_tong_right
'
].
ref
.
visible
=
false
;
break
;
break
;
case
'
left
'
:
case
'
left
'
:
cat
.
ref
.
x
=
this
.
g_canvasWidth
/
2
-
5
00
*
this
.
g_mapScale
;
cat
.
ref
.
x
=
this
.
g_canvasWidth
/
2
-
4
00
*
this
.
g_mapScale
;
cat
.
ref
.
y
=
this
.
g_canvasHeight
+
30
*
this
.
g_mapScale
;
cat
.
ref
.
y
=
this
.
g_canvasHeight
+
30
*
this
.
g_mapScale
;
cat
[
'
child_mao_hui_zuo
'
].
ref
.
visible
=
false
;
cat
[
'
child_mao_hui_zuo
'
].
ref
.
visible
=
false
;
cat
[
'
child_mao_hui_pa
'
].
ref
.
visible
=
false
;
cat
[
'
child_mao_hui_pa
'
].
ref
.
visible
=
false
;
...
@@ -861,7 +861,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -861,7 +861,7 @@ export class PlayComponent implements OnInit, OnDestroy {
cat
[
'
child_tong_right
'
].
ref
.
visible
=
false
;
cat
[
'
child_tong_right
'
].
ref
.
visible
=
false
;
break
;
break
;
case
'
right
'
:
case
'
right
'
:
cat
.
ref
.
x
=
this
.
g_canvasWidth
/
2
+
5
00
*
this
.
g_mapScale
;
cat
.
ref
.
x
=
this
.
g_canvasWidth
/
2
+
4
00
*
this
.
g_mapScale
;
cat
.
ref
.
y
=
this
.
g_canvasHeight
+
30
*
this
.
g_mapScale
;
cat
.
ref
.
y
=
this
.
g_canvasHeight
+
30
*
this
.
g_mapScale
;
cat
[
'
child_mao_ju_zuo
'
].
ref
.
visible
=
false
;
cat
[
'
child_mao_ju_zuo
'
].
ref
.
visible
=
false
;
cat
[
'
child_mao_ju_pa
'
].
ref
.
visible
=
false
;
cat
[
'
child_mao_ju_pa
'
].
ref
.
visible
=
false
;
...
@@ -889,7 +889,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -889,7 +889,7 @@ export class PlayComponent implements OnInit, OnDestroy {
pao_pao_da_png
.
ref
.
scaleX
=
this
.
g_mapScale
;
pao_pao_da_png
.
ref
.
scaleX
=
this
.
g_mapScale
;
pao_pao_da_png
.
ref
.
scaleY
=
this
.
g_mapScale
;
pao_pao_da_png
.
ref
.
scaleY
=
this
.
g_mapScale
;
pao_pao_da_png
.
ref
.
x
=
0
pao_pao_da_png
.
ref
.
x
=
0
pao_pao_da_png
.
ref
.
y
=
-
38
pao_pao_da_png
.
ref
.
y
=
-
70
*
this
.
g_mapScale
;
fish
.
ref
.
addChild
(
pao_pao_da_png
.
ref
);
fish
.
ref
.
addChild
(
pao_pao_da_png
.
ref
);
// 创建船节点 - 作为钓鱼台,放在最下方
// 创建船节点 - 作为钓鱼台,放在最下方
...
@@ -898,7 +898,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -898,7 +898,7 @@ export class PlayComponent implements OnInit, OnDestroy {
pao_pao_po_ani
.
ref
.
scaleX
=
this
.
g_mapScale
;
pao_pao_po_ani
.
ref
.
scaleX
=
this
.
g_mapScale
;
pao_pao_po_ani
.
ref
.
scaleY
=
this
.
g_mapScale
;
pao_pao_po_ani
.
ref
.
scaleY
=
this
.
g_mapScale
;
pao_pao_po_ani
.
ref
.
x
=
0
pao_pao_po_ani
.
ref
.
x
=
0
pao_pao_po_ani
.
ref
.
y
=
-
48
pao_pao_po_ani
.
ref
.
y
=
-
90
*
this
.
g_mapScale
;
fish
.
ref
.
addChild
(
pao_pao_po_ani
.
ref
);
fish
.
ref
.
addChild
(
pao_pao_po_ani
.
ref
);
// 一条小鱼
// 一条小鱼
const
colors
=
[
'
huang
'
,
'
ju
'
,
'
lan
'
,
'
lv
'
]
const
colors
=
[
'
huang
'
,
'
ju
'
,
'
lan
'
,
'
lv
'
]
...
@@ -907,8 +907,8 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -907,8 +907,8 @@ export class PlayComponent implements OnInit, OnDestroy {
xiao_yu
.
ref
.
init
(
this
.
g_cartoon
.
images
.
get
(
nameYu
));
xiao_yu
.
ref
.
init
(
this
.
g_cartoon
.
images
.
get
(
nameYu
));
xiao_yu
.
ref
.
scaleX
=
this
.
g_mapScale
;
xiao_yu
.
ref
.
scaleX
=
this
.
g_mapScale
;
xiao_yu
.
ref
.
scaleY
=
this
.
g_mapScale
;
xiao_yu
.
ref
.
scaleY
=
this
.
g_mapScale
;
xiao_yu
.
ref
.
x
=
4
0
*
this
.
g_mapScale
;
xiao_yu
.
ref
.
x
=
2
0
*
this
.
g_mapScale
;
xiao_yu
.
ref
.
y
=
8
0
*
this
.
g_mapScale
;
xiao_yu
.
ref
.
y
=
9
0
*
this
.
g_mapScale
;
fish
.
ref
.
addChild
(
xiao_yu
.
ref
);
fish
.
ref
.
addChild
(
xiao_yu
.
ref
);
fish
[
'
child_xiao_yu
'
]
=
xiao_yu
;
fish
[
'
child_xiao_yu
'
]
=
xiao_yu
;
...
@@ -921,7 +921,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -921,7 +921,7 @@ export class PlayComponent implements OnInit, OnDestroy {
imageElement
.
ref
.
init
(
img
);
imageElement
.
ref
.
init
(
img
);
// 设置图片位置居中
// 设置图片位置居中
imageElement
.
ref
.
x
=
0
;
imageElement
.
ref
.
x
=
0
;
imageElement
.
ref
.
y
=
-
70
;
imageElement
.
ref
.
y
=
-
100
*
this
.
g_mapScale
;
// 根据背景卡片尺寸调整图片大小,保持适当的边距,应用屏幕适配参数
// 根据背景卡片尺寸调整图片大小,保持适当的边距,应用屏幕适配参数
const
padding
=
20
;
// 边距
const
padding
=
20
;
// 边距
const
maxWidth
=
itemWidth
-
padding
*
2
;
const
maxWidth
=
itemWidth
-
padding
*
2
;
...
@@ -937,11 +937,11 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -937,11 +937,11 @@ export class PlayComponent implements OnInit, OnDestroy {
fish
[
'
child_image
'
]
=
imageElement
fish
[
'
child_image
'
]
=
imageElement
}
}
if
(
type
==
'
big
'
)
{
if
(
type
==
'
big
'
)
{
fish
.
ref
.
scaleX
=
this
.
g_mapScale
*
1.5
;
fish
.
ref
.
scaleY
=
this
.
g_mapScale
*
1.5
;
}
else
{
fish
.
ref
.
scaleX
=
this
.
g_mapScale
;
fish
.
ref
.
scaleX
=
this
.
g_mapScale
;
fish
.
ref
.
scaleY
=
this
.
g_mapScale
;
fish
.
ref
.
scaleY
=
this
.
g_mapScale
;
}
else
{
fish
.
ref
.
scaleX
=
this
.
g_mapScale
*
0.7
;
fish
.
ref
.
scaleY
=
this
.
g_mapScale
*
0.7
;
}
}
this
.
render
(
fish
.
ref
,
zIndexMap
.
card
);
this
.
render
(
fish
.
ref
,
zIndexMap
.
card
);
fish
[
'
child_paopao_bg
'
]
=
pao_pao_da_png
;
fish
[
'
child_paopao_bg
'
]
=
pao_pao_da_png
;
...
...
src/app/play/resources.js
View file @
ca2ac22b
...
@@ -170,7 +170,7 @@ const localImagesSize = {
...
@@ -170,7 +170,7 @@ const localImagesSize = {
'
lan_se_xiao_yu
'
:
{
width
:
92
,
height
:
52
},
'
lan_se_xiao_yu
'
:
{
width
:
92
,
height
:
52
},
'
lan_se_xiao_yu___dan_ren_mo_shi
'
:
{
width
:
121
,
height
:
67
},
'
lan_se_xiao_yu___dan_ren_mo_shi
'
:
{
width
:
121
,
height
:
67
},
'
lv_se_xiao_yu
'
:
{
width
:
80
,
height
:
59
},
'
lv_se_xiao_yu
'
:
{
width
:
80
,
height
:
59
},
'
pao_pao_da_png
'
:
{
width
:
401
,
height
:
316
},
'
pao_pao_da_png
'
:
{
width
:
374
,
height
:
312
},
'
shan_guang
'
:
{
width
:
400
,
height
:
388
},
'
shan_guang
'
:
{
width
:
400
,
height
:
388
},
'
yu_gan
'
:
{
width
:
25
,
height
:
188
},
'
yu_gan
'
:
{
width
:
25
,
height
:
188
},
'
yu_xiang_zi
'
:
{
width
:
67
,
height
:
53
},
'
yu_xiang_zi
'
:
{
width
:
67
,
height
:
53
},
...
...
src/assets/game/pao_pao_da_png.png
View replaced file @
da018b33
View file @
ca2ac22b
16.2 KB
|
W:
|
H:
14.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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