Commit de3691c8 authored by liujiaxin's avatar liujiaxin

'111'

parent d701a351
...@@ -589,7 +589,7 @@ cc.Class({ ...@@ -589,7 +589,7 @@ cc.Class({
if (block.gIdx == '2') { if (block.gIdx == '2') {
const s1 = ((ground.width / block.imgSizeW) + (ground.height / block.imgSizeH)) / 2 const s1 = ((ground.width / block.imgSizeW) + (ground.height / block.imgSizeH)) / 2
const node = new cc.Node(); const node = new cc.Node();
node.parent = groundBg; node.parent = ground;
const spr = node.addComponent(cc.Sprite); const spr = node.addComponent(cc.Sprite);
getSpriteFrimeByUrl(block.pic_url, (sf) => { getSpriteFrimeByUrl(block.pic_url, (sf) => {
spr.spriteFrame = sf; spr.spriteFrame = sf;
......
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