{"id":252309,"student_id":10,"content":"import game\nimport game\n\nroad = game.create_sprite('road.jpg') #道路\np1 = game.create_sprite('r_0.png', 'r_1.png') #1號運動員\np2 = game.create_sprite('g_0.png', 'g_1.png') #2號運動員\np3 = game.create_sprite('b_0.png', 'b_1.png') #3號運動員\np1_rank = game.create_sprite('1.png', '2.png', '3.png') #1號運動員名次\np2_rank = game.create_sprite('1.png', '2.png', '3.png') #2號運動員名次\np3_rank = game.create_sprite('1.png', '2.png', '3.png') #3號運動員名次\n\np1.move_to(600, 340)\np2.move_to(600, 450)\np3.move_to(600, 560)\np1_rank.move_to(1200, 430)\np2_rank.move_to(1200, 540)\np3_rank.move_to(1200, 650)\n\np1_rank.hidden = True\np2_rank.hidden = True\np3_rank.hidden = True\n\nroad.x += 1200\norder = 0 #到達終點的人數\n\ndef p1_right():\n if p1.custume_id == 0:\n p1.custume_id = 1\n p1.x += 30\n\ndef p1_left():\n if p1.custume_id == 1:\n p1.custume_id = 0\n p1.x += 30\n\ndef p2_right():\n if p2.custume_id == 0:\n p2.custume_id = 1\n p2.x += 30\n\ndef p2_left():\n global p2\n if p2.custume_id == 1:\n p2.custume_id = 0\n p2.x += 30\n \ndef p3_right():\n if p3.custume_id == 0:\n p3.custume_id = 1\n p3.x += 30\n\ndef p3_left():\n if p3.custume_id == 1:\n p3.custume_id = 0\n p3.x += 30\n\n \ndef loop():\n global order\n\n\ngame.on('keydown', 'q', p1_right)\ngame.on('keydown', 'w', p1_left)\ngame.on('keydown', 'v', p2_right)\ngame.on('keydown', 'b', p2_left)\ngame.on('keydown', 'o', p3_right)\ngame.on('keydown', 'p', p3_left)\ngame.forever(loop)\n\n","created_at":"2021-05-12T10:46:09.021+08:00","updated_at":"2022-11-02T15:48:25.117+08:00","name":"運動會系列_短跑競賽_除錯模擬","language":"python","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/252309/d62beabee79bd8f8e7b540ed139a2eff.jpg"},"parent_id":206826,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":184,"hashid":"qmds8g935","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4771812,"file_name":"bgm.mp3","project_id":252309,"asset_id":284958,"created_at":"2021-05-12T10:46:09.027+08:00","updated_at":"2021-05-12T10:46:09.027+08:00"},{"id":4771813,"file_name":"applause.wav","project_id":252309,"asset_id":284957,"created_at":"2021-05-12T10:46:09.028+08:00","updated_at":"2021-05-12T10:46:09.028+08:00"},{"id":4771814,"file_name":"y_1.png","project_id":252309,"asset_id":284920,"created_at":"2021-05-12T10:46:09.029+08:00","updated_at":"2021-05-12T10:46:09.029+08:00"},{"id":4771815,"file_name":"y_0.png","project_id":252309,"asset_id":284919,"created_at":"2021-05-12T10:46:09.030+08:00","updated_at":"2021-05-12T10:46:09.030+08:00"},{"id":4771816,"file_name":"5.png","project_id":252309,"asset_id":284945,"created_at":"2021-05-12T10:46:09.031+08:00","updated_at":"2021-05-12T10:46:09.031+08:00"},{"id":4771817,"file_name":"4.png","project_id":252309,"asset_id":284944,"created_at":"2021-05-12T10:46:09.032+08:00","updated_at":"2021-05-12T10:46:09.032+08:00"},{"id":4771818,"file_name":"3.png","project_id":252309,"asset_id":284943,"created_at":"2021-05-12T10:46:09.033+08:00","updated_at":"2021-05-12T10:46:09.033+08:00"},{"id":4771819,"file_name":"2.png","project_id":252309,"asset_id":284942,"created_at":"2021-05-12T10:46:09.035+08:00","updated_at":"2021-05-12T10:46:09.035+08:00"},{"id":4771820,"file_name":"1.png","project_id":252309,"asset_id":284941,"created_at":"2021-05-12T10:46:09.036+08:00","updated_at":"2021-05-12T10:46:09.036+08:00"},{"id":4771821,"file_name":"r_1.png","project_id":252309,"asset_id":284940,"created_at":"2021-05-12T10:46:09.037+08:00","updated_at":"2021-05-12T10:46:09.037+08:00"},{"id":4771822,"file_name":"r_0.png","project_id":252309,"asset_id":284939,"created_at":"2021-05-12T10:46:09.038+08:00","updated_at":"2021-05-12T10:46:09.038+08:00"},{"id":4771823,"file_name":"p_1.png","project_id":252309,"asset_id":284938,"created_at":"2021-05-12T10:46:09.039+08:00","updated_at":"2021-05-12T10:46:09.039+08:00"},{"id":4771824,"file_name":"p_0.png","project_id":252309,"asset_id":284937,"created_at":"2021-05-12T10:46:09.040+08:00","updated_at":"2021-05-12T10:46:09.040+08:00"},{"id":4771825,"file_name":"g_1.png","project_id":252309,"asset_id":284936,"created_at":"2021-05-12T10:46:09.042+08:00","updated_at":"2021-05-12T10:46:09.042+08:00"},{"id":4771826,"file_name":"g_0.png","project_id":252309,"asset_id":284935,"created_at":"2021-05-12T10:46:09.043+08:00","updated_at":"2021-05-12T10:46:09.043+08:00"},{"id":4771827,"file_name":"road.jpg","project_id":252309,"asset_id":284934,"created_at":"2021-05-12T10:46:09.044+08:00","updated_at":"2021-05-12T10:46:09.044+08:00"},{"id":4771828,"file_name":"b_1.png","project_id":252309,"asset_id":284916,"created_at":"2021-05-12T10:46:09.045+08:00","updated_at":"2021-05-12T10:46:09.045+08:00"},{"id":4771829,"file_name":"b_0.png","project_id":252309,"asset_id":284915,"created_at":"2021-05-12T10:46:09.046+08:00","updated_at":"2021-05-12T10:46:09.046+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦