{"id":16713,"student_id":295,"content":"var dice = createSprite([\"1.png\",\"2.png\",\"3.png\",\"4.png\",\"5.png\",\"6.png\"]);\nvar x;\nvar time = 0;\nwhen('click', function () {\n time = 24;\n x = Math.random()*6;\n x = Math.floor(x);\n dice.costumeId = x;\n});\n\nforever(function () {\n if(time\u003e0){\n dice.nextCostume();\n time -= 1\n }\n print(x);\n});\n\n\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\nvar dice = createSprite([\"1.png\",\"2.png\",\"3.png\",\"4.png\",\"5.png\",\"6.png\"]);\nvar ran = 0;\nvar flag = 0;\ndice.when('click', function () {\n flag = 24;\n ran = Math.random()*6;\n ran = Math.floor(ran);\n dice.costumeId = ran;\n});\n\nforever(function () {\n if(flag\u003e0){\n flag-=1;\n dice.nextCostume();\n }\n print(ran);\n});\n*/","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-10T22:04:14.990+08:00","name":"dice","language":"javascript","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/16713/0d8ccb2d7f76b352a431d9ff77a6ffe6.jpg"},"parent_id":10723,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":125,"hashid":"p93sk2gg","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":343569,"file_name":"1.png","project_id":16713,"asset_id":23145,"created_at":"2017-12-02T09:47:24.883+08:00","updated_at":"2017-12-02T09:47:24.883+08:00"},{"id":343570,"file_name":"2.png","project_id":16713,"asset_id":23146,"created_at":"2017-12-02T09:47:24.890+08:00","updated_at":"2017-12-02T09:47:24.890+08:00"},{"id":343571,"file_name":"3.png","project_id":16713,"asset_id":23147,"created_at":"2017-12-02T09:47:24.892+08:00","updated_at":"2017-12-02T09:47:24.892+08:00"},{"id":343572,"file_name":"4.png","project_id":16713,"asset_id":23148,"created_at":"2017-12-02T09:47:24.899+08:00","updated_at":"2017-12-02T09:47:24.899+08:00"},{"id":343573,"file_name":"5.png","project_id":16713,"asset_id":23149,"created_at":"2017-12-02T09:47:24.900+08:00","updated_at":"2017-12-02T09:47:24.900+08:00"},{"id":343574,"file_name":"6.png","project_id":16713,"asset_id":23150,"created_at":"2017-12-02T09:47:24.902+08:00","updated_at":"2017-12-02T09:47:24.902+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦