{"id":9813,"student_id":10,"content":"setBackdrop(\"beige\");\nvar base = createSprite(\"base.png\");\nbase.x = 100 + 64;\nvar fake = createSprite(\"needle.png\"); // 假的用來騙人~\nfake.x += 200;\n\nvar level = 1;\nvar count = 0;\nvar needles = [];\n\nvar needle; // 那個正在飛的箭\nvar flying = false;\n\nnew_stage(level);\n\nforever(function(){\n print(level, 320, 185, \"#333333\", 100);\n print(count, 145, 205, \"beige\", 60);\n\n if(flying) {\n needle.x -= 10;\n if(needle.touched(base)) {\n needles.push(needle);\n flying = false;\n count--;\n }\n }\n if(count == 0) {\n level++;\n new_stage();\n }\n});\n\nwhen(\"click\", function () {\n if(!flying) {\n needle = createSprite(\"needle.png\");\n needle.x += 200;\n needle.on('touch', needles, stop);\n flying = true;\n }\n});\n\nfunction new_stage(){\n\n var defaults = (level-level%4)/4+2;\n count = (level-level%3)/3+2;\n \n for(var i = 0; i \u003c needles.length; i++){\n if(needles[i].level != level){\n needles[i].destroy();\n }\n }\n needles.length = 0;\n\n for(var i = 1; i \u003c= defaults; i++) {\n var needle = createSprite(\"needle.png\");\n needle.direction = i * 360/defaults;\n needles.push(needle);\n }\n}\n\nforever(function(){\n for(var i=0; i\u003cneedles.length; i++) {\n var n = needles[i];\n n.moveTo(164, 240);\n n.direction += 1;\n n.stepForward(95);\n }\n});","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-11T17:17:02.791+08:00","name":"💎kk💎","language":"javascript","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/9813/d1086455be02e0ffdbcaddc045355784.jpg"},"parent_id":9794,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":462,"hashid":"6rps99de","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":217728,"file_name":"0.png","project_id":9813,"asset_id":6,"created_at":"2017-08-23T11:03:19.041+08:00","updated_at":"2017-08-23T11:03:19.041+08:00"},{"id":217729,"file_name":"1.svg","project_id":9813,"asset_id":7,"created_at":"2017-08-23T11:03:19.045+08:00","updated_at":"2017-08-23T11:03:19.045+08:00"},{"id":217730,"file_name":"2.png","project_id":9813,"asset_id":8,"created_at":"2017-08-23T11:03:19.049+08:00","updated_at":"2017-08-23T11:03:19.049+08:00"},{"id":217731,"file_name":"0.wav","project_id":9813,"asset_id":9,"created_at":"2017-08-23T11:03:19.052+08:00","updated_at":"2017-08-23T11:03:19.052+08:00"},{"id":217732,"file_name":"1.wav","project_id":9813,"asset_id":10,"created_at":"2017-08-23T11:03:19.055+08:00","updated_at":"2017-08-23T11:03:19.055+08:00"},{"id":217733,"file_name":"needle.png","project_id":9813,"asset_id":26222,"created_at":"2017-08-23T11:03:19.059+08:00","updated_at":"2017-08-23T11:03:19.059+08:00"},{"id":217734,"file_name":"base.png","project_id":9813,"asset_id":26223,"created_at":"2017-08-23T11:03:19.062+08:00","updated_at":"2017-08-23T11:03:19.062+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦