{"id":182658,"student_id":10,"content":"import random #載入產生隨機數的套件\nfrom game import * #載入所有遊戲套件提供的方法\n\nset_backdrop('bg.png') #設定背景\nship = create_sprite('player.png') #飛船\nfood = create_sprite('food_0.png','food_1.png','food_2.png') #目標物\nbars = create_sprite('d0.png','d1.png','d2.png','d3.png','d4.png','d5.png','d6.png','d7.png') #儀表板\nn3 = create_sprite('0.png','1.png','2.png','3.png','4.png','5.png','6.png','7.png','8.png','9.png') #百位數\nn2 = create_sprite('0.png','1.png','2.png','3.png','4.png','5.png','6.png','7.png','8.png','9.png') #十位數\nn1 = create_sprite('0.png','1.png','2.png','3.png','4.png','5.png','6.png','7.png','8.png','9.png') #個位數\ngameover_text = create_sprite('gameover.png') #遊戲結束文字圖\n\nn3.move_to(550, 50)\nn2.move_to(600, 50)\nn1.move_to(650, 50)\nbars.move_to(600, 850)\nship.layer = 1\ngameover_text.hidden = True\n\n\nflames = [] #存放火焰角色\nbullets = [] #存放子彈角色\nscore = 0 #玩家分數\nclock = 0 #紀錄遊戲迴圈次數\nlife = 7 #遊戲生命\nend_time = 0 #緩慢模式的結束時間點\n\n\n#遊戲主迴圈\ndef loop ():\n global score, clock, life, end_time\n \n\n\nforever(loop) #重複不斷執行遊戲回圈\n\n","created_at":"2020-08-18T12:45:03.114+08:00","updated_at":"2020-11-02T20:04:47.186+08:00","name":"飛行訓練(預設版) ","language":"python","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/182658/aa287f333610aa4c89111a8a3b2082d3.jpg"},"parent_id":182630,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":228,"hashid":"yeys8j4z","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3109433,"file_name":"0.png","project_id":182658,"asset_id":203981,"created_at":"2020-08-18T12:45:03.121+08:00","updated_at":"2020-08-18T12:45:03.121+08:00"},{"id":3109434,"file_name":"1.png","project_id":182658,"asset_id":203982,"created_at":"2020-08-18T12:45:03.122+08:00","updated_at":"2020-08-18T12:45:03.122+08:00"},{"id":3109435,"file_name":"2.png","project_id":182658,"asset_id":203983,"created_at":"2020-08-18T12:45:03.123+08:00","updated_at":"2020-08-18T12:45:03.123+08:00"},{"id":3109436,"file_name":"3.png","project_id":182658,"asset_id":203984,"created_at":"2020-08-18T12:45:03.124+08:00","updated_at":"2020-08-18T12:45:03.124+08:00"},{"id":3109437,"file_name":"4.png","project_id":182658,"asset_id":203985,"created_at":"2020-08-18T12:45:03.125+08:00","updated_at":"2020-08-18T12:45:03.125+08:00"},{"id":3109438,"file_name":"5.png","project_id":182658,"asset_id":203986,"created_at":"2020-08-18T12:45:03.125+08:00","updated_at":"2020-08-18T12:45:03.125+08:00"},{"id":3109439,"file_name":"6.png","project_id":182658,"asset_id":203987,"created_at":"2020-08-18T12:45:03.126+08:00","updated_at":"2020-08-18T12:45:03.126+08:00"},{"id":3109440,"file_name":"7.png","project_id":182658,"asset_id":203988,"created_at":"2020-08-18T12:45:03.127+08:00","updated_at":"2020-08-18T12:45:03.127+08:00"},{"id":3109441,"file_name":"8.png","project_id":182658,"asset_id":203989,"created_at":"2020-08-18T12:45:03.128+08:00","updated_at":"2020-08-18T12:45:03.128+08:00"},{"id":3109442,"file_name":"9.png","project_id":182658,"asset_id":203990,"created_at":"2020-08-18T12:45:03.129+08:00","updated_at":"2020-08-18T12:45:03.129+08:00"},{"id":3109443,"file_name":"bg.png","project_id":182658,"asset_id":203991,"created_at":"2020-08-18T12:45:03.130+08:00","updated_at":"2020-08-18T12:45:03.130+08:00"},{"id":3109444,"file_name":"bullet_0.png","project_id":182658,"asset_id":203992,"created_at":"2020-08-18T12:45:03.131+08:00","updated_at":"2020-08-18T12:45:03.131+08:00"},{"id":3109445,"file_name":"bullet_1.png","project_id":182658,"asset_id":203993,"created_at":"2020-08-18T12:45:03.132+08:00","updated_at":"2020-08-18T12:45:03.132+08:00"},{"id":3109447,"file_name":"food_0.png","project_id":182658,"asset_id":250887,"created_at":"2020-08-18T12:45:03.133+08:00","updated_at":"2020-08-18T12:45:03.133+08:00"},{"id":3109450,"file_name":"gameover.png","project_id":182658,"asset_id":203994,"created_at":"2020-08-18T12:45:03.136+08:00","updated_at":"2020-08-18T12:45:03.136+08:00"},{"id":3109451,"file_name":"player.png","project_id":182658,"asset_id":204005,"created_at":"2020-08-18T12:45:03.137+08:00","updated_at":"2020-08-18T12:45:03.137+08:00"},{"id":3109452,"file_name":"bgm.mp3","project_id":182658,"asset_id":172346,"created_at":"2020-08-18T12:45:03.138+08:00","updated_at":"2020-08-18T12:45:03.138+08:00"},{"id":3109453,"file_name":"boom.wav","project_id":182658,"asset_id":250885,"created_at":"2020-08-18T12:45:03.139+08:00","updated_at":"2020-08-18T12:45:03.139+08:00"},{"id":3109454,"file_name":"effect.wav","project_id":182658,"asset_id":172347,"created_at":"2020-08-18T12:45:03.140+08:00","updated_at":"2020-08-18T12:45:03.140+08:00"},{"id":3109455,"file_name":"d0.png","project_id":182658,"asset_id":237098,"created_at":"2020-08-18T12:45:03.141+08:00","updated_at":"2020-08-18T12:45:03.141+08:00"},{"id":3109456,"file_name":"d1.png","project_id":182658,"asset_id":203995,"created_at":"2020-08-18T12:45:03.142+08:00","updated_at":"2020-08-18T12:45:03.142+08:00"},{"id":3109457,"file_name":"d2.png","project_id":182658,"asset_id":203996,"created_at":"2020-08-18T12:45:03.143+08:00","updated_at":"2020-08-18T12:45:03.143+08:00"},{"id":3109458,"file_name":"d3.png","project_id":182658,"asset_id":203997,"created_at":"2020-08-18T12:45:03.143+08:00","updated_at":"2020-08-18T12:45:03.143+08:00"},{"id":3109459,"file_name":"d4.png","project_id":182658,"asset_id":203998,"created_at":"2020-08-18T12:45:03.144+08:00","updated_at":"2020-08-18T12:45:03.144+08:00"},{"id":3109460,"file_name":"d5.png","project_id":182658,"asset_id":203999,"created_at":"2020-08-18T12:45:03.145+08:00","updated_at":"2020-08-18T12:45:03.145+08:00"},{"id":3109461,"file_name":"d6.png","project_id":182658,"asset_id":204000,"created_at":"2020-08-18T12:45:03.146+08:00","updated_at":"2020-08-18T12:45:03.146+08:00"},{"id":3109449,"file_name":"food_1.png","project_id":182658,"asset_id":204004,"created_at":"2020-08-18T12:45:03.135+08:00","updated_at":"2020-10-22T18:06:46.969+08:00"},{"id":3109448,"file_name":"food_2.png","project_id":182658,"asset_id":204003,"created_at":"2020-08-18T12:45:03.134+08:00","updated_at":"2020-10-22T18:06:49.706+08:00"},{"id":3109462,"file_name":"d7.png","project_id":182658,"asset_id":204001,"created_at":"2020-08-18T12:45:03.147+08:00","updated_at":"2020-08-19T12:57:52.987+08:00"},{"id":3381918,"file_name":"flame.png","project_id":182658,"asset_id":271320,"created_at":"2020-10-23T11:42:54.327+08:00","updated_at":"2020-10-23T11:42:54.327+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦