Commit a8cb6846 authored by Tt's avatar Tt

按文字内容匹配

parent 02517c6b
......@@ -287,7 +287,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!targetData) {
this.onMeetFail(node);
} else {
if (node.data.index != targetData.index) {
if (node.data.text != targetData.text) {
this.onMeetFail(node);
} else {
targetItem.active = false;
......
export const defaultData =
{"npcTitle":"","npcAudio":"","npcAudioName":"开始音频.mp3","npcAudioEnd":"http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3","npcAudioEndName":"结束音频.mp3","questions":[{"options":[],"hotZoneFontObj":{"size":50,"name":"BRLNSR_1","color":"#8f3758"},"bgItem":{"url":"http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png","rect":{"x":175.26254180602007,"y":2.842170943040401e-14,"width":742.4749163879599,"height":443.99999999999994}},"hotZoneItemArr":[{"index":0,"text":"extinction","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":84.24,"y":-32,"width":200,"height":200}},{"index":1,"text":"endangered","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":92.24,"y":55,"width":200,"height":200}},{"index":2,"text":"global warming","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":448.24,"y":-12,"width":200,"height":200}},{"index":3,"text":"threaten","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":439.24,"y":93,"width":200,"height":200}}]}],"bgItem":"","hotZoneItemArr":[]}
{
"npcTitle": "", "npcAudio": "", "npcAudioName": "开始音频.mp3", "npcAudioEnd": "http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3", "npcAudioEndName": "结束音频.mp3", "questions": [{
"options": [], "hotZoneFontObj": { "size": 50, "name": "BRLNSR_1", "color": "#8f3758" }, "bgItem": { "url": "http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png", "rect": { "x": 175.26254180602007, "y": 2.842170943040401e-14, "width": 742.4749163879599, "height": 443.99999999999994 } },
"hotZoneItemArr": [
{
"index": 0, "text": "extinction", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 84.24, "y": -32, "width": 200, "height": 200 }
}, {
"index": 1, "text": "extinction", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 92.24, "y": 55, "width": 200, "height": 200 }
}, {
"index": 2, "text": "global warming", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 448.24, "y": -12, "width": 200, "height": 200 }
}, {
"index": 3, "text": "threaten", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 439.24, "y": 93, "width": 200, "height": 200 }
}]
}], "bgItem": "", "hotZoneItemArr": []
}
let mc = {
"npcTitle": "exit", "npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
"npcAudioName": "boom_dg28_drag.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