{"id":824990,"student_id":10,"content":"from game import *\nfrom random import *\n\nimgs = ['0.png', '1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png', '8.png', '9.png', '10.png', '11.png']\nblocks = []\ntarget = None\n\ndef onclick():\n global target\n for s in blocks:\n if s.touched(cursor):\n if target == None:\n target = s\n target.scale = 0.9\n else:\n swap(s, target)\n target.scale = 1\n target = None\n \ndef swap(a, b):\n tmp = a.costume_id\n a.costume_id = b.costume_id\n b.costume_id = tmp\n \nfor i in range(12):\n s = create_sprite(imgs)\n s.x = 150 + (i % 4) * 300\n s.y = 150 + (i // 4) * 300\n s.costume_id = i\n blocks.append(s)\n \nfor i in range(12):\n swap(blocks[i], blocks[randrange(12)])\n\non('click', onclick)","created_at":"2024-08-22T18:43:06.352+08:00","updated_at":"2024-08-23T15:56:37.774+08:00","name":"拼圖","language":"python","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/824990/53cdb6e078cc89f2312eee3cebaf0f43.jpg"},"parent_id":824982,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":31,"hashid":"rdvsd36k3","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":18167356,"file_name":"11.png","project_id":824990,"asset_id":769667,"created_at":"2024-08-22T18:43:20.191+08:00","updated_at":"2024-08-22T18:43:20.191+08:00"},{"id":18167357,"file_name":"10.png","project_id":824990,"asset_id":769668,"created_at":"2024-08-22T18:43:20.193+08:00","updated_at":"2024-08-22T18:43:20.193+08:00"},{"id":18167362,"file_name":"5.png","project_id":824990,"asset_id":769673,"created_at":"2024-08-22T18:43:21.272+08:00","updated_at":"2024-08-22T18:43:21.272+08:00"},{"id":18167363,"file_name":"4.png","project_id":824990,"asset_id":769674,"created_at":"2024-08-22T18:43:21.273+08:00","updated_at":"2024-08-22T18:43:21.273+08:00"},{"id":18167360,"file_name":"7.png","project_id":824990,"asset_id":769671,"created_at":"2024-08-22T18:43:20.964+08:00","updated_at":"2024-08-22T18:43:20.964+08:00"},{"id":18167361,"file_name":"6.png","project_id":824990,"asset_id":769672,"created_at":"2024-08-22T18:43:20.966+08:00","updated_at":"2024-08-22T18:43:20.966+08:00"},{"id":18167358,"file_name":"9.png","project_id":824990,"asset_id":769669,"created_at":"2024-08-22T18:43:20.569+08:00","updated_at":"2024-08-22T18:43:20.569+08:00"},{"id":18167359,"file_name":"8.png","project_id":824990,"asset_id":769670,"created_at":"2024-08-22T18:43:20.571+08:00","updated_at":"2024-08-22T18:43:20.571+08:00"},{"id":18167364,"file_name":"3.png","project_id":824990,"asset_id":769675,"created_at":"2024-08-22T18:43:21.523+08:00","updated_at":"2024-08-22T18:43:21.523+08:00"},{"id":18167365,"file_name":"2.png","project_id":824990,"asset_id":769676,"created_at":"2024-08-22T18:43:21.525+08:00","updated_at":"2024-08-22T18:43:21.525+08:00"},{"id":18167366,"file_name":"1.png","project_id":824990,"asset_id":769677,"created_at":"2024-08-22T18:43:21.810+08:00","updated_at":"2024-08-22T18:43:21.810+08:00"},{"id":18167367,"file_name":"0.png","project_id":824990,"asset_id":769678,"created_at":"2024-08-22T18:43:21.811+08:00","updated_at":"2024-08-22T18:43:21.811+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦