{"id":68566,"student_id":2002,"content":"var coins = [];\nvar skulls = [];\nvar score = 0;\ncircle.opacity = 0;\nfor (var i = 0; i \u003c 30; i++) {\n var coin = createSprite(\"coin.png\");\n coins.push(coin);\n coin.x = Math.random()*640;\n coin.y = Math.random()*480;\n}\nfor (var i = 0; i \u003c 10; i++) {\n var skull = createSprite(\"skull.png\");\n skulls.push(skull);\n skull.x = Math.random()*640;\n skull.y = Math.random()*480;\n}\n\nforever(function() {\n print(score, 20, 20, \"red\", 20);\n if (start === \"yes\") {\n bg.layer = 1;\n }\n for (var i = 0; i \u003c 30; i++) {\n if (circle.touched(coins[i]) \u0026\u0026 cursor.isDown \u0026\u0026 coins[i].opacity \u003c 1) {\n coins[i].opacity = 1;\n score += 1;\n }\n }\n for (var i = 0; i \u003c 10; i++) {\n if (circle.touched(skulls[i]) \u0026\u0026 cursor.isDown) {\n skulls[i].opacity = 1;\n stop();\n }\n }\n});\nsetTimeout(function() {\n for (var i = 0; i \u003c 30; i++) {\n coins[i].opacity = 0;\n\n }\n for (var i = 0; i \u003c 10; i++) {\n skulls[i].opacity = 0;\n circle.opacity = 1;\n }\n}, 1000);","created_at":"2019-05-18T16:02:05.553+08:00","updated_at":"2019-10-03T08:31:16.883+08:00","name":"鑽石挖挖挖 副本","language":"javascript","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/68566/b2fe381e31aac33f71c05a129a5c7f1c.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":63,"hashid":"gk4smwyk","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1201315,"file_name":"coin.png","project_id":68566,"asset_id":30796,"created_at":"2019-05-18T16:02:05.558+08:00","updated_at":"2019-05-18T16:02:05.558+08:00"},{"id":1201316,"file_name":"skull.png","project_id":68566,"asset_id":30797,"created_at":"2019-05-18T16:02:05.559+08:00","updated_at":"2019-05-18T16:02:05.559+08:00"},{"id":1201317,"file_name":"bg.png","project_id":68566,"asset_id":30798,"created_at":"2019-05-18T16:02:05.560+08:00","updated_at":"2019-05-18T16:02:05.560+08:00"},{"id":1201318,"file_name":"circle_2.png","project_id":68566,"asset_id":30799,"created_at":"2019-05-18T16:02:05.561+08:00","updated_at":"2019-05-18T16:02:05.561+08:00"},{"id":1201319,"file_name":"circle.png","project_id":68566,"asset_id":30800,"created_at":"2019-05-18T16:02:05.562+08:00","updated_at":"2019-05-18T16:02:05.562+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦