Commit 685c53aa authored by yu's avatar yu

1

parent 2d52c6ee
......@@ -56,7 +56,12 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this.replay();
})
pg.event.on('layer_coin_show_coin_end', () => {
pg.event.emit('layer_ending_show', { coin: 3 })
// pg.event.emit('layer_ending_show', { coin: 3 })
const midd = cc.find('middleLayer');
if (!midd) return this.log("no middleLayer");
let middleLayer = midd.getComponent('middleLayer');
middleLayer.saveGolds(3); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer.goNextPage(); // 跳转到下一页
})
pg.event.on("gameOver", () => { this.gameOver() })
......
export const defaultData = {
"points": "",
"questionScore": 0,
"questions": [{
"options": [{
"type": "img",
"image": "",
"audio": "",
"text": "",
"time": "",
"right": false
}, {
"type": "img",
"image": "",
"audio": "",
"text": "",
"time": "",
"right": false
}, {
"type": "img",
"image": "",
"audio": "",
"text": "",
"time": "",
"right": false
}
],
"type": "img"
}
],
"questions": [],
"bgItem": {
"url": "http://staging-teach.cdn.ireadabc.com/933163fae966edff0633a0bb97e5c5bc.jpg",
"rect": {
"x": 0,
"y": 110.63,
"width": 904,
"height": 470.73
"y": 85.66,
"width": 902,
"height": 469.69
}
},
"hotZoneItemArr": [{
"id": "1687246796178",
"hotZoneItemArr": [
{
"id": "1687750651003",
"index": 0,
"text": "low collar",
"audio_url": "http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8_l.mp3",
"text": "high collar",
"audio_url": "http://staging-teach.cdn.ireadabc.com/81c8ea51c42136db0fd61e78c38de7c9_l.mp3",
"itemType": "text",
"fontScale": 0.70625,
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.70625,
"mapScale": 0.7046875,
"dragDot": {
"x": 452,
"y": 346
"x": 451,
"y": 297
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 162.12,
"height": 35.31,
"x": 466.94,
"y": 104.71
"width": 169.77,
"height": 35.23,
"x": 36.11,
"y": 65.19
}
}, {
"id": "1687246797020",
},
{
"id": "1687750664688",
"index": 1,
"text": " high collar",
"audio_url": "http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8_l.mp3",
"text": "low collar",
"audio_url": "http://staging-teach.cdn.ireadabc.com/9de7c90341afc24bcd2a311f4d554bdc_l.mp3",
"itemType": "text",
"fontScale": 0.70625,
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.70625,
"mapScale": 0.7046875,
"dragDot": {
"x": 452,
"y": 346
"x": 451,
"y": 297
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 188.31,
"height": 35.31,
"x": 22.85,
"y": 67.71
"width": 156.28,
"height": 35.23,
"x": 467.86,
"y": 100.19
}
}, {
"id": "1687246797521",
},
{
"id": "1687750699335",
"index": 2,
"text": "long sleeve",
"audio_url": "http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8_l.mp3",
"audio_url": "http://staging-teach.cdn.ireadabc.com/7474d2ea3660833373b9d3dfb2ad9d07_l.mp3",
"itemType": "text",
"fontScale": 0.70625,
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.70625,
"mapScale": 0.7046875,
"dragDot": {
"x": 452,
"y": 346
"x": 451,
"y": 297
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 190.79,
"height": 35.31,
"x": 24.6,
"y": 197.71
"width": 182.88,
"height": 35.23,
"x": 13.56,
"y": 193.19
}
}, {
"id": "1687246798099",
},
{
"id": "1687750716437",
"index": 3,
"text": "short sleeve",
"audio_url": "http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8_l.mp3",
"audio_url": "http://staging-teach.cdn.ireadabc.com/172fad3743476ac9c668eb8a82d5eca1_l.mp3",
"itemType": "text",
"fontScale": 0.70625,
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.70625,
"mapScale": 0.7046875,
"dragDot": {
"x": 452,
"y": 346
"x": 451,
"y": 297
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 202.88,
"height": 35.31,
"x": 446.56,
"y": 190.71
"width": 196.83,
"height": 35.23,
"x": 462.59,
"y": 186.19
}
}
],
"questionText": "",
"npcTitle": "may",
"npcAudio": "",
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/36067f9e2415d59fa37c3795a3929087_l.mp3",
"npcAudioName": "bear_3.mp3"
}
"npcTitle": "Mind Map",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3",
"npcAudioName": "HY14位置匹配-将单词拖动到正确的位置.mp3"
}
......
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