{"id":707290,"student_id":10,"content":"from game import *\n\nset_backdrop('black')\n\nis_moving = False\nstart_x = 0\nstart_y = 0\n\nmoving = []\n\nfor x in range(8):\n for y in range(8):\n b = create_sprite('block.png')\n b.x = x * 100 + 50\n b.y = y * 100 + 50\n b.opacity = 0.5\n \n\nb1 = [(0, 0), (1, 0), (2, 0), (1, 1)]\n\n\ndef loadBlocks():\n for pos in b1:\n x, y = pos\n b = create_sprite('block.png')\n b.x = x * 100 + 50\n b.y = y * 100 + 50\n moving.append(b)\n \ndef loop():\n global is_moving\n if key.isDown:\n is_moving = True\n start_x = cursor.x\n start_y = cursor.y\n else:\n is_moving = False\n \n \n \n\nloadBlocks()\n\n\nforever(loop)","created_at":"2024-03-08T17:45:30.784+08:00","updated_at":"2024-03-08T17:59:16.939+08:00","name":"1010","language":"python","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/707290/e9827b2ffb2d913773188ecd4a55110c.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":52,"hashid":"gk4sn9mdy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":15823350,"file_name":"block.png","project_id":707290,"asset_id":725118,"created_at":"2024-03-08T17:48:04.022+08:00","updated_at":"2024-03-08T17:48:04.022+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦