{"id":207942,"student_id":12205,"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\nbg = create_sprite('bg.png') #背景圖\nplayer = create_sprite('player.png') #潛水艇\nhint = create_sprite('hint.png') #提示教學\n\nvy = 0 #墜落速度\nlevel = 0 #分數\ninit_y = 450 #當前最新的障礙物座標\nrocks = [] #存放障礙物\nbubbles = [] #存放泡泡\n\n#遊戲主迴圈\ndef loop ():\n global vy, level, init_y\n\n\ngame.forever(loop) #重複不斷執行遊戲回圈\n\n\n","created_at":"2020-11-28T14:21:09.493+08:00","updated_at":"2020-11-28T14:21:09.493+08:00","name":"海底探險(預設版) 副本 副本","language":"python","screenshot":{"url":null},"parent_id":196975,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":39,"hashid":"jzmseedpy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3618978,"file_name":"bubble.png","project_id":207942,"asset_id":251818,"created_at":"2020-11-28T14:21:09.499+08:00","updated_at":"2020-11-28T14:21:09.499+08:00"},{"id":3618979,"file_name":"bg.png","project_id":207942,"asset_id":251819,"created_at":"2020-11-28T14:21:09.500+08:00","updated_at":"2020-11-28T14:21:09.500+08:00"},{"id":3618980,"file_name":"bg_2.png","project_id":207942,"asset_id":251820,"created_at":"2020-11-28T14:21:09.513+08:00","updated_at":"2020-11-28T14:21:09.513+08:00"},{"id":3618981,"file_name":"b10.png","project_id":207942,"asset_id":251821,"created_at":"2020-11-28T14:21:09.514+08:00","updated_at":"2020-11-28T14:21:09.514+08:00"},{"id":3618982,"file_name":"b9.png","project_id":207942,"asset_id":251822,"created_at":"2020-11-28T14:21:09.515+08:00","updated_at":"2020-11-28T14:21:09.515+08:00"},{"id":3618983,"file_name":"b8.png","project_id":207942,"asset_id":251823,"created_at":"2020-11-28T14:21:09.517+08:00","updated_at":"2020-11-28T14:21:09.517+08:00"},{"id":3618984,"file_name":"b7.png","project_id":207942,"asset_id":251824,"created_at":"2020-11-28T14:21:09.518+08:00","updated_at":"2020-11-28T14:21:09.518+08:00"},{"id":3618985,"file_name":"b6.png","project_id":207942,"asset_id":251825,"created_at":"2020-11-28T14:21:09.519+08:00","updated_at":"2020-11-28T14:21:09.519+08:00"},{"id":3618986,"file_name":"b5.png","project_id":207942,"asset_id":251826,"created_at":"2020-11-28T14:21:09.520+08:00","updated_at":"2020-11-28T14:21:09.520+08:00"},{"id":3618987,"file_name":"b4.png","project_id":207942,"asset_id":251827,"created_at":"2020-11-28T14:21:09.521+08:00","updated_at":"2020-11-28T14:21:09.521+08:00"},{"id":3618988,"file_name":"b3.png","project_id":207942,"asset_id":251828,"created_at":"2020-11-28T14:21:09.522+08:00","updated_at":"2020-11-28T14:21:09.522+08:00"},{"id":3618989,"file_name":"b2.png","project_id":207942,"asset_id":251829,"created_at":"2020-11-28T14:21:09.523+08:00","updated_at":"2020-11-28T14:21:09.523+08:00"},{"id":3618990,"file_name":"b1.png","project_id":207942,"asset_id":251830,"created_at":"2020-11-28T14:21:09.524+08:00","updated_at":"2020-11-28T14:21:09.524+08:00"},{"id":3618991,"file_name":"b0.png","project_id":207942,"asset_id":251831,"created_at":"2020-11-28T14:21:09.525+08:00","updated_at":"2020-11-28T14:21:09.525+08:00"},{"id":3618992,"file_name":"player.png","project_id":207942,"asset_id":251832,"created_at":"2020-11-28T14:21:09.537+08:00","updated_at":"2020-11-28T14:21:09.537+08:00"},{"id":3618993,"file_name":"hint.png","project_id":207942,"asset_id":251833,"created_at":"2020-11-28T14:21:09.538+08:00","updated_at":"2020-11-28T14:21:09.538+08:00"},{"id":3618994,"file_name":"bgm.ogg","project_id":207942,"asset_id":251834,"created_at":"2020-11-28T14:21:09.539+08:00","updated_at":"2020-11-28T14:21:09.539+08:00"},{"id":3618995,"file_name":"level.wav","project_id":207942,"asset_id":251835,"created_at":"2020-11-28T14:21:09.540+08:00","updated_at":"2020-11-28T14:21:09.540+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦