{"id":772137,"student_id":10,"content":"from game import *\nfrom random import *\n\nwords = ['apple', 'banana', 'cat', 'dog', 'eat']\nbullets = []\narr = []\nclock = -1\nset_backdrop('black')\nsign = create_sprite('bullet.png')\n\ndef loop():\n global clock\n clock += 1\n \n if clock % 300 == 0:\n s = create_sprite('a.png')\n s.move_to(random() * 1200, 0)\n s.toward(600, 700)\n s.word = 'apple'\n arr.append(s)\n \n target = None\n \n if target: sign.move_to(target)\n \n for s in arr:\n s.step_forward(0.5)\n draw_text(s.word, s.x + 50, s.y - 25, 'white', 30)\n \n for k in 'abcdefghijklmnopqrstuvwxyz':\n \n if key[k]: print(k)\n \n # if key[k] and target and target.word[0] == k:\n # print(k)\n \n # target.word = target.word[1:]\n # if target.word == '': target.destroy()\n \n # elif not target:\n # for s in arr:\n # if s.word[0] == k:\n # target = s\n # break\n\nforever(loop)","created_at":"2024-06-20T17:45:16.182+08:00","updated_at":"2024-06-20T18:07:58.694+08:00","name":"打字遊戲","language":"python","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/772137/b1473609c8ff025966040c0c957f525c.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":51,"hashid":"zpeszm5wg","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":17214867,"file_name":"bullet.png","project_id":772137,"asset_id":748974,"created_at":"2024-06-20T17:45:42.682+08:00","updated_at":"2024-06-20T17:45:42.682+08:00"},{"id":17214868,"file_name":"b.png","project_id":772137,"asset_id":748975,"created_at":"2024-06-20T17:45:42.684+08:00","updated_at":"2024-06-20T17:45:42.684+08:00"},{"id":17214869,"file_name":"a.png","project_id":772137,"asset_id":748976,"created_at":"2024-06-20T17:45:43.180+08:00","updated_at":"2024-06-20T17:45:43.180+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦