{"id":23571,"student_id":1444,"content":"var coins = [];\nvar skulls = [];\nvar score = [];\nfor (var i = 0;i \u003c 30;i++)\n{\n var coin = createSprite(\"coin.png\");\n coin.x = Math.random()*640;\n coin.y = Math.random()*480;\n coins.push(coin);\n}\nfor (var i = 0;i \u003c 10;i++)\n{\n var skull = createSprite(\"skull.png\");\n skull.x = Math.random()*640;\n skull.y = Math.random()*480;\n skulls.push(skull);\n}\nsetTimeout(function(){\n for (var i = 0 ; i \u003c coins.length ; i++)\n {\n coins[i].opacity = 0.1;\n }\n for (var i = 0 ; i \u003c skulls.length ; i++)\n {\n skulls[i].opacity = 0.1;\n }\n},3000);\nforever(function() {\n for (var i = 0 ; i \u003c coins.length ; i++)\n {\n if (circle.touched(coins[i]) \u0026\u0026 cursor.isDown)\n {\n coins[i].opacity = 1;\n // score[i].push(coins[i]);\n } \n }\n for (var i = 0;i \u003c skulls.length ; i++)\n {\n if (circle.touched(skulls[i]) \u0026\u0026 cursor.isDown)\n {\n skulls[i].opacity = 1;\n stop();\n }\n }\n print (\"score : \"+score.length,10,10,\"red\",20);\n});","created_at":"2018-03-04T22:42:21.897+08:00","updated_at":"2019-11-11T10:37:48.945+08:00","name":"鑽石挖挖挖","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/23571/df1cd5b65e86594f1d6e0963fdb269d0.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":110,"hashid":"ej9s9rqq","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":449242,"file_name":"coin.png","project_id":23571,"asset_id":30796,"created_at":"2018-03-04T22:42:21.905+08:00","updated_at":"2018-03-04T22:42:21.905+08:00"},{"id":449243,"file_name":"skull.png","project_id":23571,"asset_id":30797,"created_at":"2018-03-04T22:42:21.908+08:00","updated_at":"2018-03-04T22:42:21.908+08:00"},{"id":449244,"file_name":"bg.png","project_id":23571,"asset_id":30798,"created_at":"2018-03-04T22:42:21.910+08:00","updated_at":"2018-03-04T22:42:21.910+08:00"},{"id":449245,"file_name":"circle_2.png","project_id":23571,"asset_id":30799,"created_at":"2018-03-04T22:42:21.911+08:00","updated_at":"2018-03-04T22:42:21.911+08:00"},{"id":449246,"file_name":"circle.png","project_id":23571,"asset_id":30800,"created_at":"2018-03-04T22:42:21.914+08:00","updated_at":"2018-03-04T22:42:21.914+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦