{"id":70946,"student_id":234,"content":"var coins = [];\nvar skulls = [];\nvar coinss = 0;\nvar move = false;\nfor (var i = 0; i \u003c 30; i++) {\n var coin = createSprite(\"coin.png\");\n coin.x = Math.floor(Math.random()*640);\n coin.y = Math.floor(Math.random()*480);\n coins.push(coin);\n}\nfor (var i = 0; i \u003c 10; i++) {\n var skull = createSprite(\"skull.png\");\n skull.x = Math.floor(Math.random()*640);\n skull.y = Math.floor(Math.random()*480);\n skulls.push(skull);\n}\nsetTimeout(function() {\n for (var i = 0; i \u003c 10; i++) {\n skulls[i].opacity = 0.01;\n }\n for (var ii = 0; ii \u003c 30; ii++) {\n coins[ii].opacity = 0.01;\n }\n move = true;\n}, 3000);\nforever(function() {\n if (move === true) {\n circle.y = cursor.y; \n circle.x = cursor.x;\n }else{\n circle.y = 0;\n circle.x = 0;\n }\n print(\"coins = \" + coinss, 10, 10, \"blue\", 30);\n for (var ii = 0; ii \u003c coins.length; ii++) {\n if (circle.touched(coins[ii]) \u0026\u0026 cursor.isDown) {\n coinss = coinss + 1;\n coins[ii].opacity = 1;\n coins[ii].destroy();\n }\n }\n for (var i = 0; i \u003c skulls.length; i++) {\n if (circle.touched(skulls[i]) \u0026\u0026 cursor.isDown) {\n skulls[i].opacity = 1;\n stop();\n }\n }\n\n});","created_at":"2019-06-01T13:34:23.452+08:00","updated_at":"2019-10-08T06:50:16.489+08:00","name":"鑽石挖挖挖 副本","language":"javascript","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/70946/61177c297f68b553b45cc1ab0b90e768.jpg"},"parent_id":11645,"plugin":"setBackdrop('bg.png');\nvar circle = createSprite(\"circle_2.png\");\ncircle.layer = -1;\n\nforever(function(){\n circle.moveTo(cursor);\n if (cursor.isDown) {\n var shadow = createSprite(\"circle.png\");\n shadow.layer = -1;\n shadow.moveTo(circle);\n }\n});","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":75,"hashid":"wdks9jyz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1241423,"file_name":"coin.png","project_id":70946,"asset_id":30796,"created_at":"2019-06-01T13:34:23.457+08:00","updated_at":"2019-06-01T13:34:23.457+08:00"},{"id":1241424,"file_name":"skull.png","project_id":70946,"asset_id":30797,"created_at":"2019-06-01T13:34:23.458+08:00","updated_at":"2019-06-01T13:34:23.458+08:00"},{"id":1241425,"file_name":"bg.png","project_id":70946,"asset_id":30798,"created_at":"2019-06-01T13:34:23.459+08:00","updated_at":"2019-06-01T13:34:23.459+08:00"},{"id":1241426,"file_name":"circle_2.png","project_id":70946,"asset_id":30799,"created_at":"2019-06-01T13:34:23.460+08:00","updated_at":"2019-06-01T13:34:23.460+08:00"},{"id":1241427,"file_name":"circle.png","project_id":70946,"asset_id":30800,"created_at":"2019-06-01T13:34:23.461+08:00","updated_at":"2019-06-01T13:34:23.461+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦