{"id":345222,"student_id":10,"content":"import random #載入隨機數模組\nfrom game import (\n set_backdrop, #設定背景圖\n create_sprite, #創造角色\n create_sound, #創造音效\n draw_text, #繪製文字\n key, #鍵盤狀態\n forever, #重複不斷執行\n stop, #遊戲結束\n)\n\nset_backdrop('bg.jpg') #設定背景圖\nlevels = create_sprite('0.png','1.png','2.png','3.png','4.png','5.png','6.png','7.png','8.png','9.png') #關卡地形\nbar = create_sprite('bar.png') #生命條\ndashboard = create_sprite('dashboard.png') #生命條框\n\nplayer = create_sprite('player.png') #玩家\ntarget = create_sprite('target.png') #目標\ninfo = create_sprite('arrow.png', 'youwin.png', 'gameover.png') #文字圖\n\nbar.move_to(250, 46) #初始化位置\nplayer.layer = 1 #設定玩家圖層到最上層\ninfo.hidden = True #預設隱藏箭頭示意\n\n\n#遊戲主迴圈\ndef loop ():\n global vx, vy, is_start, fuel\n \n\n#創造火焰球\ndef create_flame ():\n pass\n\nforever(loop) #重複不斷執行遊戲回圈\n","created_at":"2022-02-15T09:34:19.887+08:00","updated_at":"2022-02-15T09:34:19.887+08:00","name":"太空人(預設版). 副本","language":"python","screenshot":{"url":null},"parent_id":345147,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":164,"hashid":"gk4sk45dn","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7432994,"file_name":"2.png","project_id":345222,"asset_id":475087,"created_at":"2022-02-15T09:34:19.908+08:00","updated_at":"2022-02-15T09:34:19.908+08:00"},{"id":7432995,"file_name":"1.png","project_id":345222,"asset_id":475086,"created_at":"2022-02-15T09:34:19.909+08:00","updated_at":"2022-02-15T09:34:19.909+08:00"},{"id":7432996,"file_name":"0.png","project_id":345222,"asset_id":475085,"created_at":"2022-02-15T09:34:19.910+08:00","updated_at":"2022-02-15T09:34:19.910+08:00"},{"id":7432997,"file_name":"arrow.png","project_id":345222,"asset_id":475084,"created_at":"2022-02-15T09:34:19.911+08:00","updated_at":"2022-02-15T09:34:19.911+08:00"},{"id":7432998,"file_name":"bar.png","project_id":345222,"asset_id":475083,"created_at":"2022-02-15T09:34:19.912+08:00","updated_at":"2022-02-15T09:34:19.912+08:00"},{"id":7432999,"file_name":"bg.jpg","project_id":345222,"asset_id":475082,"created_at":"2022-02-15T09:34:19.913+08:00","updated_at":"2022-02-15T09:34:19.913+08:00"},{"id":7432984,"file_name":"coin.wav","project_id":345222,"asset_id":475097,"created_at":"2022-02-15T09:34:19.896+08:00","updated_at":"2022-02-15T09:34:19.896+08:00"},{"id":7432985,"file_name":"effect.wav","project_id":345222,"asset_id":475096,"created_at":"2022-02-15T09:34:19.900+08:00","updated_at":"2022-02-15T09:34:19.900+08:00"},{"id":7432986,"file_name":"bgm.mp3","project_id":345222,"asset_id":475095,"created_at":"2022-02-15T09:34:19.901+08:00","updated_at":"2022-02-15T09:34:19.901+08:00"},{"id":7432987,"file_name":"9.png","project_id":345222,"asset_id":475094,"created_at":"2022-02-15T09:34:19.902+08:00","updated_at":"2022-02-15T09:34:19.902+08:00"},{"id":7432988,"file_name":"8.png","project_id":345222,"asset_id":475093,"created_at":"2022-02-15T09:34:19.903+08:00","updated_at":"2022-02-15T09:34:19.903+08:00"},{"id":7432989,"file_name":"7.png","project_id":345222,"asset_id":475092,"created_at":"2022-02-15T09:34:19.904+08:00","updated_at":"2022-02-15T09:34:19.904+08:00"},{"id":7432990,"file_name":"6.png","project_id":345222,"asset_id":475091,"created_at":"2022-02-15T09:34:19.905+08:00","updated_at":"2022-02-15T09:34:19.905+08:00"},{"id":7432991,"file_name":"5.png","project_id":345222,"asset_id":475090,"created_at":"2022-02-15T09:34:19.906+08:00","updated_at":"2022-02-15T09:34:19.906+08:00"},{"id":7432992,"file_name":"4.png","project_id":345222,"asset_id":475089,"created_at":"2022-02-15T09:34:19.907+08:00","updated_at":"2022-02-15T09:34:19.907+08:00"},{"id":7432993,"file_name":"3.png","project_id":345222,"asset_id":475088,"created_at":"2022-02-15T09:34:19.908+08:00","updated_at":"2022-02-15T09:34:19.908+08:00"},{"id":7433000,"file_name":"dashboard.png","project_id":345222,"asset_id":475081,"created_at":"2022-02-15T09:34:19.914+08:00","updated_at":"2022-02-15T09:34:19.914+08:00"},{"id":7433001,"file_name":"flame.png","project_id":345222,"asset_id":475080,"created_at":"2022-02-15T09:34:19.915+08:00","updated_at":"2022-02-15T09:34:19.915+08:00"},{"id":7433002,"file_name":"gameover.png","project_id":345222,"asset_id":475079,"created_at":"2022-02-15T09:34:19.916+08:00","updated_at":"2022-02-15T09:34:19.916+08:00"},{"id":7433003,"file_name":"player.png","project_id":345222,"asset_id":475078,"created_at":"2022-02-15T09:34:19.916+08:00","updated_at":"2022-02-15T09:34:19.916+08:00"},{"id":7433004,"file_name":"target.png","project_id":345222,"asset_id":475077,"created_at":"2022-02-15T09:34:19.917+08:00","updated_at":"2022-02-15T09:34:19.917+08:00"},{"id":7433005,"file_name":"youwin.png","project_id":345222,"asset_id":475076,"created_at":"2022-02-15T09:34:19.918+08:00","updated_at":"2022-02-15T09:34:19.918+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦