{"id":197265,"student_id":12205,"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":"2020-10-23T19:30:36.609+08:00","updated_at":"2020-10-23T19:30:36.609+08:00","name":"1-50 in 60 sec 副本","language":"javascript","screenshot":{"url":null},"parent_id":16085,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":45,"hashid":"d5msvw66z","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3384461,"file_name":"gray.jpg","project_id":197265,"asset_id":38922,"created_at":"2020-10-23T19:30:36.616+08:00","updated_at":"2020-10-23T19:30:36.616+08:00"},{"id":3384462,"file_name":"orange.jpg","project_id":197265,"asset_id":38921,"created_at":"2020-10-23T19:30:36.618+08:00","updated_at":"2020-10-23T19:30:36.618+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦