Commit c85320c1 authored by Chen Jiping's avatar Chen Jiping

fix:修复显示问题

parent 07f4a6aa
...@@ -780,7 +780,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -780,7 +780,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let card = new Card(); let card = new Card();
card.init(this.images, this.mapScale); card.init(this.images, this.mapScale);
card.bg.x = 380 * this.mapScale; card.bg.x = 380 * this.mapScale;
card.bg.y = this.canvasHeight - 80 * this.mapScale; card.bg.y = this.canvasHeight - 70 * this.mapScale;
card.bg['renderZ'] = 8; card.bg['renderZ'] = 8;
card['id'] = 0; card['id'] = 0;
this.renderArr.push(card.bg); this.renderArr.push(card.bg);
...@@ -791,7 +791,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -791,7 +791,7 @@ export class PlayComponent implements OnInit, OnDestroy {
card = new Card(); card = new Card();
card.init(this.images, this.mapScale); card.init(this.images, this.mapScale);
card.bg.x = 820 * this.mapScale; card.bg.x = 820 * this.mapScale;
card.bg.y = this.canvasHeight - 60 * this.mapScale; card.bg.y = this.canvasHeight - 50 * this.mapScale;
card.bg['renderZ'] = 9; card.bg['renderZ'] = 9;
card['id'] = 1; card['id'] = 1;
this.renderArr.push(card.bg); this.renderArr.push(card.bg);
...@@ -802,7 +802,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -802,7 +802,7 @@ export class PlayComponent implements OnInit, OnDestroy {
card = new Card(); card = new Card();
card.init(this.images, this.mapScale); card.init(this.images, this.mapScale);
card.bg.x = 100 * this.mapScale; card.bg.x = 100 * this.mapScale;
card.bg.y = this.canvasHeight + 60 * this.mapScale; card.bg.y = this.canvasHeight + 110 * this.mapScale;
card.bg['renderZ'] = 19; card.bg['renderZ'] = 19;
card['id'] = 1; card['id'] = 1;
this.renderArr.push(card.bg); this.renderArr.push(card.bg);
...@@ -812,7 +812,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -812,7 +812,7 @@ export class PlayComponent implements OnInit, OnDestroy {
card = new Card(); card = new Card();
card.init(this.images, this.mapScale); card.init(this.images, this.mapScale);
card.bg.x = 570 * this.mapScale; card.bg.x = 570 * this.mapScale;
card.bg.y = this.canvasHeight + 110 * this.mapScale; card.bg.y = this.canvasHeight + 125 * this.mapScale;
card.bg['renderZ'] = 19; card.bg['renderZ'] = 19;
card['id'] = 1; card['id'] = 1;
this.renderArr.push(card.bg); this.renderArr.push(card.bg);
...@@ -948,7 +948,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -948,7 +948,7 @@ export class PlayComponent implements OnInit, OnDestroy {
card.holeId = holeIndex; card.holeId = holeIndex;
card.id = cardIndex; card.id = cardIndex;
card.baseY = pos.y; card.baseY = pos.y;
card.targetY = pos.y - card.bg.height - 30 * this.mapScale; card.targetY = pos.y - card.bg.height - 10 * this.mapScale;
card.bg.renderZ = pos.z; card.bg.renderZ = pos.z;
this.sortRenderZ(this.renderArr); this.sortRenderZ(this.renderArr);
......
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