{"id":323351,"student_id":10,"content":"Game.set({width: 1200, height: 900})\n\nlet board = createSprite('board.png');\nboard.layer = 2;\n\nlet arr = [];\n\nfor (let x = 0; x \u003c 12; x++) {\n for (let y = 0; y \u003c 9; y++) {\n let block = createSprite('block.png');\n block.x = x * 100 + 50;\n block.y = y * 100 + 50;\n block.opacity = 0;\n if (x % 2 == 0) block.y += 50;\n \n if (x == 0 || y == 0 || x == 11 || y == 8 || y == 7) block.opacity = 0.5;\n \n arr.push(block);\n \n }\n}\n\nforever(function(){\n arr.forEach(b =\u003e {\n if (b.opacity == 0) {\n b.opacity = 1;\n if (b.touched(cursor) \u0026\u0026 cursor.isDown) {\n b.opacity = 1;\n } else {\n b.opacity = 0; \n } \n }\n })\n})\n\n\n\n","created_at":"2021-12-08T11:01:11.369+08:00","updated_at":"2021-12-08T15:19:33.657+08:00","name":"企鵝叩叮","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/323351/a32da810687b57c71b644b72f7e0dfe7.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":171,"hashid":"yeysvk84d","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":6755352,"file_name":"block.png","project_id":323351,"asset_id":446436,"created_at":"2021-12-08T11:02:53.657+08:00","updated_at":"2021-12-08T11:02:53.657+08:00"},{"id":6755919,"file_name":"board.png","project_id":323351,"asset_id":446455,"created_at":"2021-12-08T15:18:36.499+08:00","updated_at":"2021-12-08T15:18:36.499+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦