Commit 11da389a authored by yu's avatar yu

1

parent 7e47d40f
...@@ -146,6 +146,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent { ...@@ -146,6 +146,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
let op = Game.getIns().opdata; let op = Game.getIns().opdata;
op.forEach((dt, idx) => { op.forEach((dt, idx) => {
let ch = this.layout_op.children[idx]; let ch = this.layout_op.children[idx];
if (!ch) return;
ch.active = true; ch.active = true;
let desc = cc.find("desc", ch); let desc = cc.find("desc", ch);
desc.getComponent(cc.Label).string = dt.text; desc.getComponent(cc.Label).string = dt.text;
...@@ -284,7 +285,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent { ...@@ -284,7 +285,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this.playLocalAudio("right").then(async () => { this.playLocalAudio("right").then(async () => {
await asyncDelay(0.3); await asyncDelay(0.1);
pg.audio.playAudioByUrl(data.audio).then(async () => { pg.audio.playAudioByUrl(data.audio).then(async () => {
if (this.checkRoundEnd()) { if (this.checkRoundEnd()) {
await asyncDelay(0.5); await asyncDelay(0.5);
......
export const defaultData = { export const defaultData = {
"points": "", "points": "",
"questionScore": 0, "questionScore": 0,
"questions": [], "questions": [],
"bgItem": { "bgItem": {
"url": "http://staging-teach.cdn.ireadabc.com/bf9f3958a388f3e10e79f50ab786f5ef.png", "url": "http://teach.cdn.ireadabc.com/0c33ade57a0c9eae26e6a61dd2c165b0.png",
"rect": { "rect": {
"x": 0, "x": 53.37,
"y": 42.52, "y": 0,
"width": 902, "width": 795.25,
"height": 424.95 "height": 510
} }
}, },
"hotZoneItemArr": [ "hotZoneItemArr": [
{ {
"id": "1689504307224", "id": "1689340832806",
"index": 0, "index": 0,
"text": "the blue and green face", "text": "monkey",
"audio_url": "http://teach.cdn.ireadabc.com/5da468cbe299d7b0d3f77a59701123c5_l.mp3",
"itemType": "text", "itemType": "text",
"fontScale": 0.7046875, "fontScale": 0.7046875,
"imgScale": 1, "imgScale": 1,
...@@ -24,23 +25,24 @@ export const defaultData = { ...@@ -24,23 +25,24 @@ export const defaultData = {
"mapScale": 0.7046875, "mapScale": 0.7046875,
"dragDot": { "dragDot": {
"x": 451, "x": 451,
"y": 255.00000000000003 "y": 190
}, },
"gIdx": "0", "gIdx": "0",
"fontSize": 50, "fontSize": 50,
"fontName": "ahronbd-1", "fontName": "ahronbd-1",
"ontColor": "#8f3758", "ontColor": "#8f3758",
"rect": { "rect": {
"width": 390.95, "width": 126.12,
"height": 35.23, "height": 35.23,
"x": 56.53, "x": 109.86,
"y": 44.86 "y": 20.96
} }
}, },
{ {
"id": "1689504345672", "id": "1689340855171",
"index": 1, "index": 1,
"text": "the gold face", "text": "rooster",
"audio_url": "http://teach.cdn.ireadabc.com/777bb3cb89ef8cf7723b4cc9c18697b3_l.mp3",
"itemType": "text", "itemType": "text",
"fontScale": 0.7046875, "fontScale": 0.7046875,
"imgScale": 1, "imgScale": 1,
...@@ -49,23 +51,24 @@ export const defaultData = { ...@@ -49,23 +51,24 @@ export const defaultData = {
"mapScale": 0.7046875, "mapScale": 0.7046875,
"dragDot": { "dragDot": {
"x": 451, "x": 451,
"y": 255.00000000000003 "y": 190
}, },
"gIdx": "0", "gIdx": "0",
"fontSize": 50, "fontSize": 50,
"fontName": "ahronbd-1", "fontName": "ahronbd-1",
"ontColor": "#8f3758", "ontColor": "#8f3758",
"rect": { "rect": {
"width": 217.16, "width": 116.86,
"height": 35.23, "height": 35.23,
"x": 118.42, "x": 95.02,
"y": 193.86 "y": 104.85
} }
}, },
{ {
"id": "1689504365755", "id": "1689340877965",
"index": 2, "index": 2,
"text": "the black face", "text": "dog",
"audio_url": "http://teach.cdn.ireadabc.com/25dc3b18d7036db7a90b77486b1bba51_l.mp3",
"itemType": "text", "itemType": "text",
"fontScale": 0.7046875, "fontScale": 0.7046875,
"imgScale": 1, "imgScale": 1,
...@@ -74,23 +77,24 @@ export const defaultData = { ...@@ -74,23 +77,24 @@ export const defaultData = {
"mapScale": 0.7046875, "mapScale": 0.7046875,
"dragDot": { "dragDot": {
"x": 451, "x": 451,
"y": 255.00000000000003 "y": 190
}, },
"gIdx": "0", "gIdx": "0",
"fontSize": 50, "fontSize": 50,
"fontName": "ahronbd-1", "fontName": "ahronbd-1",
"ontColor": "#8f3758", "ontColor": "#8f3758",
"rect": { "rect": {
"width": 233.29, "width": 62.11,
"height": 35.23, "height": 35.23,
"x": 116.35, "x": 104.21,
"y": 341.86 "y": 197.11
} }
}, },
{ {
"id": "1689504375545", "id": "1689340888104",
"index": 3, "index": 3,
"text": "the red face", "text": "pig",
"audio_url": "http://teach.cdn.ireadabc.com/cb8d3a47041b6dd66995fb4277f14d44_l.mp3",
"itemType": "text", "itemType": "text",
"fontScale": 0.7046875, "fontScale": 0.7046875,
"imgScale": 1, "imgScale": 1,
...@@ -99,23 +103,24 @@ export const defaultData = { ...@@ -99,23 +103,24 @@ export const defaultData = {
"mapScale": 0.7046875, "mapScale": 0.7046875,
"dragDot": { "dragDot": {
"x": 451, "x": 451,
"y": 255.00000000000003 "y": 190
}, },
"gIdx": "0", "gIdx": "0",
"fontSize": 50, "fontSize": 50,
"fontName": "ahronbd-1", "fontName": "ahronbd-1",
"ontColor": "#8f3758", "ontColor": "#8f3758",
"rect": { "rect": {
"width": 199.82, "width": 50.48,
"height": 35.23, "height": 35.23,
"x": 569.09, "x": 108.01,
"y": 81.86 "y": 279.32
} }
}, },
{ {
"id": "1689504389861", "id": "1689340894217",
"index": 4, "index": 4,
"text": "the white face", "text": "rat",
"audio_url": "http://teach.cdn.ireadabc.com/468579a967328c9a0f37d04e4aae8169_l.mp3",
"itemType": "text", "itemType": "text",
"fontScale": 0.7046875, "fontScale": 0.7046875,
"imgScale": 1, "imgScale": 1,
...@@ -124,23 +129,100 @@ export const defaultData = { ...@@ -124,23 +129,100 @@ export const defaultData = {
"mapScale": 0.7046875, "mapScale": 0.7046875,
"dragDot": { "dragDot": {
"x": 451, "x": 451,
"y": 255.00000000000003 "y": 190
}, },
"gIdx": "0", "gIdx": "0",
"fontSize": 50, "fontSize": 50,
"fontName": "ahronbd-1", "fontName": "ahronbd-1",
"ontColor": "#8f3758", "ontColor": "#8f3758",
"rect": { "rect": {
"width": 234.03, "width": 45.06,
"height": 35.23, "height": 35.23,
"x": 549.98, "x": 114.43,
"y": 301.86 "y": 362.59
} }
} },
{
"id": "1689340915577",
"index": 6,
"text": "sheep",
"audio_url": "http://teach.cdn.ireadabc.com/c27083d96698ba7fe7e056646c87be0e_l.mp3",
"itemType": "text",
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.7046875,
"dragDot": {
"x": 451,
"y": 190
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 97.13,
"height": 35.23,
"x": 583.55,
"y": 22.27
}
},
{
"id": "1689340922854",
"index": 7,
"text": "horse",
"audio_url": "http://teach.cdn.ireadabc.com/e88527f312200740345d23cb20c3b26e_l.mp3",
"itemType": "text",
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.7046875,
"dragDot": {
"x": 451,
"y": 190
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 90.44,
"height": 35.23,
"x": 612.69,
"y": 110.22
}
},
{
"id": "1689340931161",
"index": 8,
"text": "snake",
"audio_url": "http://teach.cdn.ireadabc.com/a4f23671190a8a847bccd0796f0537e2_l.mp3",
"itemType": "text",
"fontScale": 0.7046875,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.7046875,
"dragDot": {
"x": 451,
"y": 190
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 95.37,
"height": 35.23,
"x": 611.59,
"y": 193.48
}
},
], ],
"npcTitle": "HY14", "npcTitle": "Mind Map",
"npcAudio": "", "npcAudio": "http://teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3",
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3",
"npcAudioName": "HY14位置匹配-将单词拖动到正确的位置.mp3", "npcAudioName": "HY14位置匹配-将单词拖动到正确的位置.mp3",
"questionText": "" "questionText": ""
} }
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