{"id":16085,"student_id":888,"content":"var startTime = Date.now();\nvar btns = [];\nvar index = 1;\nfor (var i=0; i\u003c50; i++) {\n var btn = createSprite([\"gray.jpg\", \"orange.jpg\"]);\n btn.x = i%10*50 + 90;\n btn.y = Math.floor(i/10)*50 + 185;\n btn.number = i + 1;\n btn.on('click', function () {\n if (this.number == index) {\n this.costumeId = 1;\n index++;\n }\n });\n btns.push(btn);\n}\n\nfor (var i=0; i\u003c100; i++) {\n var a = Math.floor(Math.random()*50);\n var b = Math.floor(Math.random()*50);\n var tmp = btns[a].number;\n btns[a].number = btns[b].number;\n btns[b].number = tmp;\n}\n\nforever(function(){\n for(var i=0; i\u003cbtns.length; i++) {\n var btn = btns[i];\n print(btn.number, btn.number \u003e 9 ? btn.x - 9 : btn.x - 4, btn.y - 7, 'black');\n }\n var countDown = 60 - Math.floor((Date.now() - startTime)/1000);\n print(countDown + 's', 280, 50, 'black', 70);\n if (countDown \u003c 1) {\n stop();\n }\n});","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-02T08:20:36.989+08:00","name":"1-50 in 60 sec","language":"javascript","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/16085/ecbd7cc45ae958d2904bd48757e58786.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":447,"hashid":"882sqrmz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":332309,"file_name":"orange.jpg","project_id":16085,"asset_id":38921,"created_at":"2017-11-23T22:22:09.803+08:00","updated_at":"2017-11-23T22:22:09.803+08:00"},{"id":332310,"file_name":"gray.jpg","project_id":16085,"asset_id":38922,"created_at":"2017-11-23T22:22:09.816+08:00","updated_at":"2017-11-23T22:22:09.816+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦