{"id":9812,"student_id":1486,"content":"setBackdrop(\"bg.jpg\");\nvar balloon = createSprite(\"balloon.png\");\n\nvar stage = 0;\nvar clock = 0;\nvar nails = [];\n\nballoon.forever(function(){\n clock++;\n if(clock%180 == 0){\n var rand = Math.floor(Math.random()*7);\n while(rand--){\n var nail = createSprite(\"nail.png\");\n nail.x = Math.floor(Math.random()*360);\n nail.y = 0;\n nail.direction = Math.floor(Math.random() * (225 - 135)) + 135;\n nail.forever(function(){\n if(this.y \u003e 420){\n this.destroy();\n }\n this.stepForward(10); \n });;\n nails.push(nail);\n }\n balloon.scale += 0.05;\n }\n if(this.x - this.width/2 \u003c 0){\n this.x = this.width/2;\n }\n if(this.x + this.width/2 \u003e 640){\n this.x = 640-this.width/2;\n }\n this.y = 400;\n});\nwhen(\"holding\", \"left\", function () { balloon.x -= 5; });\nwhen(\"holding\", \"right\", function () { balloon.x += 5; });\n\nballoon.on(\"touch\", nails, function(){\n stop();\n});","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-02T09:22:36.887+08:00","name":"Pop It","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/9812/3389b607886ee3de5bde5c4e4308b9fd.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":348,"hashid":"36ysmm55","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":217721,"file_name":"0.png","project_id":9812,"asset_id":6,"created_at":"2017-08-23T10:45:22.452+08:00","updated_at":"2017-08-23T10:45:22.452+08:00"},{"id":217722,"file_name":"1.svg","project_id":9812,"asset_id":7,"created_at":"2017-08-23T10:45:22.455+08:00","updated_at":"2017-08-23T10:45:22.455+08:00"},{"id":217723,"file_name":"2.png","project_id":9812,"asset_id":8,"created_at":"2017-08-23T10:45:22.459+08:00","updated_at":"2017-08-23T10:45:22.459+08:00"},{"id":217724,"file_name":"0.wav","project_id":9812,"asset_id":9,"created_at":"2017-08-23T10:45:22.463+08:00","updated_at":"2017-08-23T10:45:22.463+08:00"},{"id":217725,"file_name":"1.wav","project_id":9812,"asset_id":10,"created_at":"2017-08-23T10:45:22.467+08:00","updated_at":"2017-08-23T10:45:22.467+08:00"},{"id":217726,"file_name":"balloon.png","project_id":9812,"asset_id":26307,"created_at":"2017-08-23T11:02:44.160+08:00","updated_at":"2017-08-23T11:02:44.160+08:00"},{"id":217766,"file_name":"nail.png","project_id":9812,"asset_id":26347,"created_at":"2017-08-23T11:22:26.749+08:00","updated_at":"2017-08-23T11:22:26.749+08:00"},{"id":217772,"file_name":"bg.jpg","project_id":9812,"asset_id":26349,"created_at":"2017-08-23T11:30:14.469+08:00","updated_at":"2017-08-23T11:30:14.469+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦