{"id":168779,"student_id":10,"content":"import game #載入遊戲框架\n\ngame.set_backdrop('bg.png') #設定背景圖\nmaze = game.create_sprite('1.png', '2.png', '3.png', '4.png', 'youwin.png') #遊戲關卡\nwheel = game.create_sprite('wheel.png') #轉盤\n\nt1 = game.create_sprite('t1.png') #紅色目標\nt2 = game.create_sprite('t2.png') #黃色目標\nt3 = game.create_sprite('t3.png') #藍色目標\nt4 = game.create_sprite('t4.png') #綠色目標\nplayer = game.create_sprite(\"player.png\") #發光的小精靈\n\nt1.move_to(1200, 900)\nt2.move_to(0, 900)\nt3.move_to(1200, 0)\nt4.move_to(0, 0)\nplayer.move_to(50, 50)\n\nactive = False #是否啟用跟隨模式\n\n# 遊戲迴圈\ndef loop ():\n global active, count\n \n wheel.direction = wheel.direction + 1\n \n if active == True:\n player.x = game.cursor.x\n player.y = game.cursor.y\n \n if player.touched(cursor) == True:\n active = True\n \n\ngame.forever(loop) #不斷重複執行遊戲迴圈\n\n\n\n\n\n\n\n\n\n","created_at":"2020-07-20T22:33:21.459+08:00","updated_at":"2024-01-16T13:34:15.640+08:00","name":"逃離洞窟(錄影版)","language":"python","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/168779/574e606c96bb530a5a4fd2563c851164.jpg"},"parent_id":138323,"plugin":"game.set({'width': 1200, 'height': 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":258,"hashid":"yeys64jq","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2921921,"file_name":"youwin.png","project_id":168779,"asset_id":202105,"created_at":"2020-07-20T22:33:21.469+08:00","updated_at":"2020-07-20T22:33:21.469+08:00"},{"id":2921922,"file_name":"wheel.png","project_id":168779,"asset_id":202104,"created_at":"2020-07-20T22:33:21.470+08:00","updated_at":"2020-07-20T22:33:21.470+08:00"},{"id":2921923,"file_name":"t4.png","project_id":168779,"asset_id":202103,"created_at":"2020-07-20T22:33:21.471+08:00","updated_at":"2020-07-20T22:33:21.471+08:00"},{"id":2921924,"file_name":"t3.png","project_id":168779,"asset_id":202102,"created_at":"2020-07-20T22:33:21.471+08:00","updated_at":"2020-07-20T22:33:21.471+08:00"},{"id":2921925,"file_name":"t2.png","project_id":168779,"asset_id":202101,"created_at":"2020-07-20T22:33:21.472+08:00","updated_at":"2020-07-20T22:33:21.472+08:00"},{"id":2921918,"file_name":"3.png","project_id":168779,"asset_id":191777,"created_at":"2020-07-20T22:33:21.465+08:00","updated_at":"2020-07-20T22:33:21.465+08:00"},{"id":2921919,"file_name":"bgm.mp3","project_id":168779,"asset_id":202109,"created_at":"2020-07-20T22:33:21.466+08:00","updated_at":"2020-07-20T22:33:21.466+08:00"},{"id":2921920,"file_name":"hit.ogg","project_id":168779,"asset_id":188534,"created_at":"2020-07-20T22:33:21.467+08:00","updated_at":"2020-07-20T22:33:21.467+08:00"},{"id":2921926,"file_name":"t1.png","project_id":168779,"asset_id":202100,"created_at":"2020-07-20T22:33:21.473+08:00","updated_at":"2020-07-20T22:33:21.473+08:00"},{"id":2921927,"file_name":"player.png","project_id":168779,"asset_id":202099,"created_at":"2020-07-20T22:33:21.474+08:00","updated_at":"2020-07-20T22:33:21.474+08:00"},{"id":2921928,"file_name":"bg.png","project_id":168779,"asset_id":202097,"created_at":"2020-07-20T22:33:21.475+08:00","updated_at":"2020-07-20T22:33:21.475+08:00"},{"id":2921929,"file_name":"4.png","project_id":168779,"asset_id":202096,"created_at":"2020-07-20T22:33:21.476+08:00","updated_at":"2020-07-20T22:33:21.476+08:00"},{"id":2921930,"file_name":"2.png","project_id":168779,"asset_id":202095,"created_at":"2020-07-20T22:33:21.477+08:00","updated_at":"2020-07-20T22:33:21.477+08:00"},{"id":2921931,"file_name":"1.png","project_id":168779,"asset_id":202094,"created_at":"2020-07-20T22:33:21.478+08:00","updated_at":"2020-07-20T22:33:21.478+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦