Files
cat/correct/2502회 CAT 3급 B형 수시2.json

370 lines
12 KiB
JSON

{
"1-1": {
"type": "scene",
"ele": "$..objects[?(@.name=='꽃밭')]",
"points": 2,
"desc": "배경 이름 변경"
},
"1-3": {
"type": "scene",
"ele": "$..objects[?(@.name=='당근')]",
"points": 2,
"desc": "물체 이름 변경"
},
"1-4": {
"type": "scene",
"ele": "$..objects[?(@.name=='하트')]",
"points": 2,
"desc": "물체 이름 변경"
},
"1-5": {
"type": "scene",
"ele": "$..objects[?(@.name=='토끼')]",
"points": 2,
"desc": "물체 이름 변경"
},
"1-6": {
"type": "scene",
"ele": "$..objects[?(@.name=='상자')]",
"points": 2,
"desc": "물체 이름 변경"
},
"2": {
"type": "script",
"ele": "$.objects[?(@.name=='당근')].script",
"blocks": [
{
"ele": "$[0][0].type",
"answer": "when_run_button_click",
"points": 2.57,
"desc": "시작하기 버튼을 눌렀을 때"
},
{
"ele": "$[0][1].params[0].params[0]",
"points": 2.57,
"answer": "45",
"desc": "크기 지정"
},
{
"ele": "$[0][2]['params']",
"points": 2.57,
"answer": [
"FORWARD",
null
],
"desc": "물체 앞으로 보내기"
},
{
"ele": "$[0][3].type",
"points": 2.57,
"answer": "hide",
"desc": "숨기기"
},
{
"ele": "$[0][4].params[0]",
"answer": null,
"points": 2.57,
"desc": "반복하기 (계속)"
},
{
"ele": "$[0][4].statements[0][?@.type=='locate_xy'].params[*].params",
"answer": [
"0",
"-100"
],
"points": 2.57,
"desc": "x:0, y:-100 으로 이동"
},
{
"ele": "$[0][4].statements[0][1].type",
"points": 2.57,
"answer": "show",
"desc": "모양보이기"
},
{
"ele": "$[0][4].statements[0][2].params[0].params[0]",
"answer": "32",
"points": 2.57,
"desc": "스페이스(32) 를 눌렀을 때"
},
{
"ele": "$[0][4].statements[0][2].statements[0][0].params[0].params[0]",
"answer": "0.2",
"points": 2.57,
"desc": "0.2초 기다리기"
},
{
"type": "list",
"ele": [
"$[0][4].statements[0][2].statements[0][1].params[0].params[0]",
"$[0][4].statements[0][2].statements[0][1].params[1]"
],
"answer": [
"0.5",
"mouse"
],
"points": 2.57,
"desc": "0.5초 동안 마우스 좌표 위치로 이동"
},
{
"type": "list",
"ele": [
"$[0][4].statements[0][3].type",
"$[0][4].statements[0][3].params[0].type"
],
"answer": [
"_if",
"reach_something"
],
"points": 2.57,
"desc": "if reach something"
},
{
"ele": "$[0][4].statements[0][3].statements[0][0].params[*].params",
"answer": [
"냠냠!",
"0.5"
],
"points": 2.57,
"desc": "dialog_time 냠냠!을 0.5초"
},
{
"type": "list",
"ele": [
"$[0][4].statements[0][4].type",
"$[0][4].statements[0][4].params[0].type",
"$[0][4].statements[0][4].params[0].params[1]"
],
"answer": [
"_if",
"reach_something",
"wall"
],
"points": 2.57,
"desc": "if reach something wall"
},
{
"type": "list",
"ele": [
"$[0][4].statements[0][4].statements[0][0].type",
"$[0][4].statements[0][4].statements[0][0].params[0]"
],
"answer": [
"stop_object",
"all"
],
"points": 2.57,
"desc": "모든 오브젝트 정지"
}
]
},
"3": {
"type": "script",
"ele": "$.objects[?name=~'하트'].script",
"blocks": [
{
"ele": "$[0][0].type",
"answer": "when_run_button_click",
"points": 2.57,
"desc": "시작하기 버튼을 눌렀을 때"
},
{
"ele": "$[0][1].params[0].params[0]",
"answer": "50",
"points": 2.57,
"desc": "크기 지정"
},
{
"ele": "$[0][2].params[0]",
"answer": "FRONT",
"points": 2.57,
"desc": "맨 앞으로 보내기"
},
{
"ele": "$[0][3].params[0]",
"answer": null,
"points": 2.57,
"desc": "반복하기 (계속)"
},
{
"type": "list",
"ele": [
"$[0][3].statements[0][0].type",
"$[0][3].statements[0][0].params[0]"
],
"answer": [
"locate",
"mouse"
],
"points": 2.57,
"desc": "마우스 위치로 이동"
},
{
"type": "list",
"ele": [
"$[0][3].statements[0][1].type",
"$[0][3].statements[0][1].params[0]",
"$[0][3].statements[0][1].params[1].params[0]"
],
"answer": [
"add_effect_amount",
"color",
"0.5"
],
"points": 2.57,
"desc": "Add Color effect 0.5 duration"
}
]
},
"4": {
"type": "script",
"ele": "$.objects[?(@.name=='토끼')].script",
"blocks": [
{
"ele": "$[0][0].type",
"answer": "when_run_button_click",
"points": 2.57,
"desc": "시작하기 버튼을 눌렀을 때"
},
{
"ele": "$[0][1].params[0].params[0]",
"answer": "90",
"points": 2.57,
"desc": "크기 지정"
},
{
"ele": "$[0][2].params[*].params",
"answer": [
"0",
"60"
],
"points": 2.57,
"desc": "x:0, y:60 으로 이동"
},
{
"ele": "$[0][3].params[0]",
"answer": null,
"points": 2.57,
"desc": "계속 반복하기"
},
{
"type": "list",
"ele": [
"$[0][3].statements[0][0].params[0].params[0]",
"$[0][3].statements[0][0].params[1].params[*].params[0]",
"$[0][3].statements[0][0].params[2].params[0]"
],
"answer": [
"2",
"-200",
"200",
"60"
],
"points": 2.57,
"desc": "2초 동안 무작위로 x:-200~200, y:60"
},
{
"type": "list",
"ele": [
"$[0][3].statements[0][1].type",
"$[0][3].statements[0][1].params[0].type"
],
"answer": [
"_if",
"reach_something"
],
"points": 2.57,
"desc": "if reach something"
},
{
"ele": "$[0][3].statements[0][1].statements[0][0].params[0].params[0]",
"answer": "10",
"points": 2.57,
"desc": "크기 지정"
},
{
"type": "list",
"ele": [
"$[0][3].statements[0][1].statements[0][1].type",
"$[0][3].statements[0][1].statements[0][1].params[0].params[0].type",
"$[0][3].statements[0][1].statements[0][1].params[0].params[0].params[3]",
"$[0][3].statements[0][1].statements[0][1].params[0].params[1]",
"$[0][3].statements[0][1].statements[0][1].params[0].params[2].params[0]"
],
"answer": [
"_if",
"coordinate_object",
"size",
"EQUAL",
"120"
],
"points": 2.57,
"desc": "비교 오브젝트의 크기가 120과 같을 때"
},
{
"ele": "$[0][3].statements[0][1].statements[0][1].statements[0][0].params[*].params",
"answer": [
"미션 성공!",
"2"
],
"points": 2.57,
"desc": "dialog_time 미션 성공!을 2초"
},
{
"type": "list",
"ele": [
"$[0][3].statements[0][1].statements[0][1].statements[0][1].type",
"$[0][3].statements[0][1].statements[0][1].statements[0][1].params[0]"
],
"answer": [
"stop_object",
"all"
],
"points": 2.57,
"desc": "모든 오브젝트 정지"
}
]
},
"5": {
"type": "script",
"ele": "$.objects[?name=~'상자'].script",
"blocks": [
{
"ele": "$[0][0].type",
"answer": "when_run_button_click",
"points": 2.57,
"desc": "시작하기 버튼을 눌렀을 때"
},
{
"ele": "$[0][1].params[0]",
"points": 2.57,
"answer": "FORWARD",
"desc": "물체 앞으로 보내기"
},
{
"ele": "$[0][2].params[*].params",
"answer": [
"0",
"-100"
],
"points": 2.57,
"desc": "x:0, y:-100 으로 이동"
},
{
"ele": "$[0][3].params[0].params[0]",
"points": 2.57,
"answer": "90",
"desc": "크기 지정"
},
{
"ele": "$[0][4].params[*].params",
"answer": [
"시작!",
"0.5"
],
"points": 2.57,
"desc": "dialog_time 시작!을 0.5초"
}
]
}
}