Commit ca2ac22b authored by Tt's avatar Tt

更换泡泡

parent da018b33
...@@ -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 - 500 * this.g_mapScale; cat.ref.x = this.g_canvasWidth / 2 - 400 * 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 + 500 * this.g_mapScale; cat.ref.x = this.g_canvasWidth / 2 + 400 * 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 = 40 * this.g_mapScale; xiao_yu.ref.x = 20 * this.g_mapScale;
xiao_yu.ref.y = 80 * this.g_mapScale; xiao_yu.ref.y = 90 * 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;
......
...@@ -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

16.2 KB | W: | H:

src/assets/game/pao_pao_da_png.png

14.1 KB | W: | H:

src/assets/game/pao_pao_da_png.png
src/assets/game/pao_pao_da_png.png
src/assets/game/pao_pao_da_png.png
src/assets/game/pao_pao_da_png.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment