{"id":28138,"student_id":86,"content":"setBackdrop('bg.jpg');\nvar clock = 0;\nvar balloons = [];\nvar score = 0;\n\nforever(function(){\n print(\"得分:\" + score, 10, 10, \"red\", 30);\n if (clock % 20 === 0) {\n var balloon = createSprite([\"a_10.png\", \"a_50.png\", \"a_100.png\", \"m_2.png\", \"e_2.png\", \"a_5.png\", \"a_1.png\", \"0.png\"]);\n balloon.costumeId = Math.floor(Math.random() * 8);\n balloons.push(balloon);\n balloon.x = Math.random() * 640;\n balloon.y = 550;\n }\n clock += 1;\n for (var num = 0; num \u003c balloons.length; num += 1) {\n balloons[num].y -= 2;\n if (cursor.isDown \u0026\u0026 balloons[num].touched(cursor)) {\n balloons[num].destroy();\n if (balloons[num].costumeId === 0) {\n score += 10;\n }\n if (balloons[num].costumeId === 1) {\n score += 50;\n }\n if (balloons[num].costumeId === 2) {\n score += 100;\n }\n if (balloons[num].costumeId === 3) {\n score *= 2;\n }\n if (balloons[num].costumeId === 4) {\n score /= 2;\n }\n if (balloons[num].costumeId === 5) {\n score += 5;\n }\n if (balloons[num].costumeId === 6) {\n score += 1;\n }\n if (balloons[num].costumeId === 7) {\n score -= score;\n }\n }\n }\n});","created_at":"2018-05-05T16:10:42.098+08:00","updated_at":"2019-11-07T04:25:21.249+08:00","name":"射氣球","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/28138/83e0f4c89de1a5f75f15f753bd983388.jpg"},"parent_id":11105,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":124,"hashid":"vngsrw2e","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":518049,"file_name":"bg.jpg","project_id":28138,"asset_id":29311,"created_at":"2018-05-05T16:10:42.105+08:00","updated_at":"2018-05-05T16:10:42.105+08:00"},{"id":518050,"file_name":"target.png","project_id":28138,"asset_id":29312,"created_at":"2018-05-05T16:10:42.106+08:00","updated_at":"2018-05-05T16:10:42.106+08:00"},{"id":518051,"file_name":"0.png","project_id":28138,"asset_id":29313,"created_at":"2018-05-05T16:10:42.108+08:00","updated_at":"2018-05-05T16:10:42.108+08:00"},{"id":518052,"file_name":"a_1.png","project_id":28138,"asset_id":29314,"created_at":"2018-05-05T16:10:42.110+08:00","updated_at":"2018-05-05T16:10:42.110+08:00"},{"id":518053,"file_name":"a_5.png","project_id":28138,"asset_id":29315,"created_at":"2018-05-05T16:10:42.112+08:00","updated_at":"2018-05-05T16:10:42.112+08:00"},{"id":518054,"file_name":"e_2.png","project_id":28138,"asset_id":29316,"created_at":"2018-05-05T16:10:42.114+08:00","updated_at":"2018-05-05T16:10:42.114+08:00"},{"id":518055,"file_name":"m_2.png","project_id":28138,"asset_id":29317,"created_at":"2018-05-05T16:10:42.116+08:00","updated_at":"2018-05-05T16:10:42.116+08:00"},{"id":518056,"file_name":"a_100.png","project_id":28138,"asset_id":29318,"created_at":"2018-05-05T16:10:42.117+08:00","updated_at":"2018-05-05T16:10:42.117+08:00"},{"id":518057,"file_name":"a_50.png","project_id":28138,"asset_id":29319,"created_at":"2018-05-05T16:10:42.119+08:00","updated_at":"2018-05-05T16:10:42.119+08:00"},{"id":518058,"file_name":"a_10.png","project_id":28138,"asset_id":29320,"created_at":"2018-05-05T16:10:42.120+08:00","updated_at":"2018-05-05T16:10:42.120+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦