{"id":247647,"student_id":1444,"content":"import random #載入產生隨機數套件\nfrom game import (\n set_backdrop, #設定背景圖\n create_sprite, #創造角色\n create_sound, #創造音效\n draw_text, #繪製文字\n forever, #重複不斷執行\n stop, #遊戲暫停\n)\n\nset_backdrop('bg.jpg') #設定背景圖\nplayer = create_sprite('p0.png', 'p1.png') #玩家擋板\nball = create_sprite('ball.png') #球\nbar = create_sprite('bar0.png', 'bar1.png') #下方橘色長條\nhint = create_sprite('hint.png') #遊戲說明\ngameover_text = create_sprite('gameover.png') #遊戲結束文字\n\nblocks = [] #存放磚塊\nspeed = 10 #移動速度\nscore = 0 #遊戲分數\nlife = 3 #生命\nactive = False #是否卷動磚塊\ncombo = 0 #連擊個數\n\nplayer.y = 800\nball.y = 700\nball.layer = 1\nhint.layer = 1\ngameoverText.layer = 1\ngameoverText.hidden = True\nhint.hidden = True\n\n\n#遊戲主迴圈\ndef loop ():\n global speed, score, life, active, combo, blocks\n\n\n#遊戲結束\ndef gameover():\n pass\n\n\nforever(loop) #重複不斷執行遊戲迴圈\n\n\n","created_at":"2021-04-28T19:13:22.641+08:00","updated_at":"2021-04-28T19:15:29.477+08:00","name":"打磚塊(預設版) 副本","language":"python","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/247647/a3510823f0684b7144707f27b9db19ef.jpg"},"parent_id":183413,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":67,"hashid":"d5msvqjkj","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4637242,"file_name":"b7.png","project_id":247647,"asset_id":251770,"created_at":"2021-04-28T19:13:22.654+08:00","updated_at":"2021-04-28T19:13:22.654+08:00"},{"id":4637243,"file_name":"ball.png","project_id":247647,"asset_id":251771,"created_at":"2021-04-28T19:13:22.655+08:00","updated_at":"2021-04-28T19:13:22.655+08:00"},{"id":4637244,"file_name":"bar1.png","project_id":247647,"asset_id":251772,"created_at":"2021-04-28T19:13:22.656+08:00","updated_at":"2021-04-28T19:13:22.656+08:00"},{"id":4637245,"file_name":"bg.jpg","project_id":247647,"asset_id":251773,"created_at":"2021-04-28T19:13:22.656+08:00","updated_at":"2021-04-28T19:13:22.656+08:00"},{"id":4637246,"file_name":"bar0.png","project_id":247647,"asset_id":251774,"created_at":"2021-04-28T19:13:22.657+08:00","updated_at":"2021-04-28T19:13:22.657+08:00"},{"id":4637235,"file_name":"b0.png","project_id":247647,"asset_id":251763,"created_at":"2021-04-28T19:13:22.647+08:00","updated_at":"2021-04-28T19:13:22.647+08:00"},{"id":4637236,"file_name":"b1.png","project_id":247647,"asset_id":251764,"created_at":"2021-04-28T19:13:22.648+08:00","updated_at":"2021-04-28T19:13:22.648+08:00"},{"id":4637237,"file_name":"b2.png","project_id":247647,"asset_id":251765,"created_at":"2021-04-28T19:13:22.649+08:00","updated_at":"2021-04-28T19:13:22.649+08:00"},{"id":4637238,"file_name":"b3.png","project_id":247647,"asset_id":251766,"created_at":"2021-04-28T19:13:22.650+08:00","updated_at":"2021-04-28T19:13:22.650+08:00"},{"id":4637239,"file_name":"b4.png","project_id":247647,"asset_id":251767,"created_at":"2021-04-28T19:13:22.651+08:00","updated_at":"2021-04-28T19:13:22.651+08:00"},{"id":4637240,"file_name":"b5.png","project_id":247647,"asset_id":251768,"created_at":"2021-04-28T19:13:22.652+08:00","updated_at":"2021-04-28T19:13:22.652+08:00"},{"id":4637241,"file_name":"b6.png","project_id":247647,"asset_id":251769,"created_at":"2021-04-28T19:13:22.653+08:00","updated_at":"2021-04-28T19:13:22.653+08:00"},{"id":4637247,"file_name":"gameover.png","project_id":247647,"asset_id":251775,"created_at":"2021-04-28T19:13:22.658+08:00","updated_at":"2021-04-28T19:13:22.658+08:00"},{"id":4637248,"file_name":"hint.png","project_id":247647,"asset_id":251776,"created_at":"2021-04-28T19:13:22.659+08:00","updated_at":"2021-04-28T19:13:22.659+08:00"},{"id":4637249,"file_name":"p0.png","project_id":247647,"asset_id":251777,"created_at":"2021-04-28T19:13:22.660+08:00","updated_at":"2021-04-28T19:13:22.660+08:00"},{"id":4637250,"file_name":"p1.png","project_id":247647,"asset_id":251778,"created_at":"2021-04-28T19:13:22.661+08:00","updated_at":"2021-04-28T19:13:22.661+08:00"},{"id":4637251,"file_name":"1.mp3","project_id":247647,"asset_id":251779,"created_at":"2021-04-28T19:13:22.662+08:00","updated_at":"2021-04-28T19:13:22.662+08:00"},{"id":4637252,"file_name":"2.mp3","project_id":247647,"asset_id":251780,"created_at":"2021-04-28T19:13:22.663+08:00","updated_at":"2021-04-28T19:13:22.663+08:00"},{"id":4637253,"file_name":"3.mp3","project_id":247647,"asset_id":251781,"created_at":"2021-04-28T19:13:22.664+08:00","updated_at":"2021-04-28T19:13:22.664+08:00"},{"id":4637254,"file_name":"4.mp3","project_id":247647,"asset_id":251782,"created_at":"2021-04-28T19:13:22.665+08:00","updated_at":"2021-04-28T19:13:22.665+08:00"},{"id":4637255,"file_name":"5.mp3","project_id":247647,"asset_id":251783,"created_at":"2021-04-28T19:13:22.665+08:00","updated_at":"2021-04-28T19:13:22.665+08:00"},{"id":4637256,"file_name":"6.mp3","project_id":247647,"asset_id":251784,"created_at":"2021-04-28T19:13:22.666+08:00","updated_at":"2021-04-28T19:13:22.666+08:00"},{"id":4637257,"file_name":"7.mp3","project_id":247647,"asset_id":251785,"created_at":"2021-04-28T19:13:22.667+08:00","updated_at":"2021-04-28T19:13:22.667+08:00"},{"id":4637258,"file_name":"bgm.mp3","project_id":247647,"asset_id":251786,"created_at":"2021-04-28T19:13:22.668+08:00","updated_at":"2021-04-28T19:13:22.668+08:00"},{"id":4637259,"file_name":"hit.wav","project_id":247647,"asset_id":251787,"created_at":"2021-04-28T19:13:22.669+08:00","updated_at":"2021-04-28T19:13:22.669+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦