{"id":455065,"student_id":26492,"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# 遊戲迴圈\ndef loop ():\n global active, count\n \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 \n if player.touched(game.cursor) == True: \n active = True\n \n if player.touched(t1) == True:\n maze.costume_id = 1\n \n if player.touched(t2) == True:\n maze.costume_id = 2\n \n if player.touched(t3) == True:\n maze.costume_id = 3 \n \n if player.touched(t4) == True and maze.costume_id == 3:\n maze.costume_id = 4\n wheel.hidden = True\n game.stop() \n \n if player.touched(maze) ==True or player.touched(wheel) == True:\n player.move_to(50, 50)\n maze.costume_id = 0\n \ngame.forever(loop) #不斷重複執行遊戲迴圈\n","created_at":"2022-11-02T18:58:30.826+08:00","updated_at":"2022-11-02T20:20:12.848+08:00","name":"逃離洞窟(預設版) 副本","language":"python","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/455065/ab1e7816333e4af8103cd060d5b5f2a3.jpg"},"parent_id":183419,"plugin":"game.set({'width': 1200, 'height': 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":7,"hashid":"vngs5p5k2","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":10313726,"file_name":"3.png","project_id":455065,"asset_id":251876,"created_at":"2022-11-02T18:58:30.834+08:00","updated_at":"2022-11-02T18:58:30.834+08:00"},{"id":10313727,"file_name":"bgm.mp3","project_id":455065,"asset_id":251877,"created_at":"2022-11-02T18:58:30.836+08:00","updated_at":"2022-11-02T18:58:30.836+08:00"},{"id":10313728,"file_name":"hit.ogg","project_id":455065,"asset_id":251878,"created_at":"2022-11-02T18:58:30.838+08:00","updated_at":"2022-11-02T18:58:30.838+08:00"},{"id":10313729,"file_name":"youwin.png","project_id":455065,"asset_id":251879,"created_at":"2022-11-02T18:58:30.840+08:00","updated_at":"2022-11-02T18:58:30.840+08:00"},{"id":10313730,"file_name":"wheel.png","project_id":455065,"asset_id":251880,"created_at":"2022-11-02T18:58:30.842+08:00","updated_at":"2022-11-02T18:58:30.842+08:00"},{"id":10313731,"file_name":"t4.png","project_id":455065,"asset_id":251881,"created_at":"2022-11-02T18:58:30.844+08:00","updated_at":"2022-11-02T18:58:30.844+08:00"},{"id":10313732,"file_name":"t3.png","project_id":455065,"asset_id":251882,"created_at":"2022-11-02T18:58:30.846+08:00","updated_at":"2022-11-02T18:58:30.846+08:00"},{"id":10313733,"file_name":"t2.png","project_id":455065,"asset_id":251883,"created_at":"2022-11-02T18:58:30.848+08:00","updated_at":"2022-11-02T18:58:30.848+08:00"},{"id":10313734,"file_name":"t1.png","project_id":455065,"asset_id":251884,"created_at":"2022-11-02T18:58:30.850+08:00","updated_at":"2022-11-02T18:58:30.850+08:00"},{"id":10313735,"file_name":"player.png","project_id":455065,"asset_id":251885,"created_at":"2022-11-02T18:58:30.852+08:00","updated_at":"2022-11-02T18:58:30.852+08:00"},{"id":10313736,"file_name":"bg.png","project_id":455065,"asset_id":251886,"created_at":"2022-11-02T18:58:30.854+08:00","updated_at":"2022-11-02T18:58:30.854+08:00"},{"id":10313737,"file_name":"4.png","project_id":455065,"asset_id":251887,"created_at":"2022-11-02T18:58:30.856+08:00","updated_at":"2022-11-02T18:58:30.856+08:00"},{"id":10313738,"file_name":"2.png","project_id":455065,"asset_id":251888,"created_at":"2022-11-02T18:58:30.858+08:00","updated_at":"2022-11-02T18:58:30.858+08:00"},{"id":10313739,"file_name":"1.png","project_id":455065,"asset_id":251889,"created_at":"2022-11-02T18:58:30.860+08:00","updated_at":"2022-11-02T18:58:30.860+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦