{"id":455050,"student_id":10,"content":"import game #載入遊戲套件\n\ngame.set_backdrop('bg_0.png') #設定起始背景\nplayer = game.create_sprite('p_0.png', 'p_1.png', 'p_2.png', 'p_3.png') #可愛的叩叮們\nplayer.y = 700\n\nclock = 0 #紀錄遊戲迴圈次數\n\n#遊戲主迴圈\ndef loop():\n global clock\n \n clock += 1\n game.draw_text(clock)\n \n if clock == 180:\n player.costume_id = 1\n game.set_backdrop('bg_1.png')\n\n\n#向左移動\ndef pull_left():\n pass\n\n#向右移動\ndef pull_right():\n pass\n\n\ngame.forever(loop) #重複不斷執行遊戲迴圈\ngame.on('keyup', 'enter', pull_right) #按下放開 enter 鍵時執行 pull_right\ngame.on('keyup', 'space', pull_left) #按下放開 空白按鍵時執行 pull_left\n\n\n","created_at":"2022-11-02T15:51:03.955+08:00","updated_at":"2022-11-02T15:51:38.025+08:00","name":"運動會系列_拔河競賽_除錯模擬 副本","language":"python","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/455050/5474b91a64597831342b6805bfa0f231.jpg"},"parent_id":252303,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":120,"hashid":"2pdsr5rk9","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":10313556,"file_name":"p_1.png","project_id":455050,"asset_id":289563,"created_at":"2022-11-02T15:51:03.973+08:00","updated_at":"2022-11-02T15:51:03.973+08:00"},{"id":10313557,"file_name":"shot.mp3","project_id":455050,"asset_id":280214,"created_at":"2022-11-02T15:51:03.974+08:00","updated_at":"2022-11-02T15:51:03.974+08:00"},{"id":10313548,"file_name":"bgm.mp3","project_id":455050,"asset_id":284958,"created_at":"2022-11-02T15:51:03.961+08:00","updated_at":"2022-11-02T15:51:03.961+08:00"},{"id":10313549,"file_name":"bg_0.png","project_id":455050,"asset_id":284929,"created_at":"2022-11-02T15:51:03.963+08:00","updated_at":"2022-11-02T15:51:03.963+08:00"},{"id":10313550,"file_name":"p_3.png","project_id":455050,"asset_id":284928,"created_at":"2022-11-02T15:51:03.965+08:00","updated_at":"2022-11-02T15:51:03.965+08:00"},{"id":10313551,"file_name":"bg_1.png","project_id":455050,"asset_id":284930,"created_at":"2022-11-02T15:51:03.966+08:00","updated_at":"2022-11-02T15:51:03.966+08:00"},{"id":10313552,"file_name":"bg_2.png","project_id":455050,"asset_id":284931,"created_at":"2022-11-02T15:51:03.967+08:00","updated_at":"2022-11-02T15:51:03.967+08:00"},{"id":10313553,"file_name":"bg_3.png","project_id":455050,"asset_id":284932,"created_at":"2022-11-02T15:51:03.969+08:00","updated_at":"2022-11-02T15:51:03.969+08:00"},{"id":10313554,"file_name":"p_2.png","project_id":455050,"asset_id":284927,"created_at":"2022-11-02T15:51:03.970+08:00","updated_at":"2022-11-02T15:51:03.970+08:00"},{"id":10313555,"file_name":"p_0.png","project_id":455050,"asset_id":289562,"created_at":"2022-11-02T15:51:03.972+08:00","updated_at":"2022-11-02T15:51:03.972+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦