{"id":183244,"student_id":3760,"content":"import game as x8980923 #line:1\r\nimport random #line:2\r\nhhjefek00000o000o =x8980923 .create_sprite (\"bg.png\")#line:4\r\nux232123 =x8980923 .create_sprite (\"player.png\")#line:5\r\niyse =0 #line:7\r\nlevel =0 #line:8\r\ninitY =450 #line:9\r\nuniafet =False #line:10\r\nx8980923 .create_sound ('bgm.ogg',True )#line:12\r\nbubbles =[]#line:14\r\nfor eehfiefef in range (0 ,21 ,1 ):#line:15\r\n b =x8980923 .create_sprite (\"bubble.png\")#line:16\r\n b .x =eehfiefef *30 #line:17\r\n bubbles .append (b )#line:18\r\nuw232123 =[]#line:20\r\nfor eehfiefef in range (0 ,17 ,1 ):#line:21\r\n r =x8980923 .create_sprite (\"b0.png\",\"b1.png\",\"b2.png\",\"b3.png\",\"b4.png\",\"b5.png\",\"b6.png\",\"b7.png\",\"b8.png\",\"b9.png\",\"b10.png\")#line:25\r\n r .x =eehfiefef *75 #line:26\r\n uw232123 .append (r )#line:27\r\ndef loop ():#line:29\r\n global level ,initY ,uniafet ,iyse #line:30\r\n for OO0000OOO0OO00OO0 in range (0 ,17 ,1 ):#line:32\r\n OOOOOOO0O0OOO0000 =uw232123 [OO0000OOO0OO00OO0 ]#line:33\r\n OOOOOOO0O0OOO0000 .x -=8 #line:34\r\n if OOOOOOO0O0OOO0000 .x \u003c-30 :#line:35\r\n OOOOOOO0O0OOO0000 .x +=1275 #line:36\r\n if uniafet ==True :#line:37\r\n level +=1 #line:38\r\n initY +=random .randint (-60 ,60 )#line:39\r\n if initY \u003c300 :#line:41\r\n initY =300 #line:42\r\n if initY \u003e600 :#line:43\r\n initY =600 #line:44\r\n OOOOOOO0O0OOO0000 .y =initY #line:45\r\n if level \u003c30 :#line:47\r\n OOOOOOO0O0OOO0000 .costume_id =0 #line:48\r\n elif level \u003c60 :#line:49\r\n OOOOOOO0O0OOO0000 .costume_id =1 #line:50\r\n elif level \u003c90 :#line:51\r\n OOOOOOO0O0OOO0000 .costume_id =2 #line:52\r\n elif level \u003c120 :#line:53\r\n OOOOOOO0O0OOO0000 .costume_id =3 #line:54\r\n elif level \u003c150 :#line:55\r\n OOOOOOO0O0OOO0000 .costume_id =4 #line:56\r\n elif level \u003c180 :#line:57\r\n OOOOOOO0O0OOO0000 .costume_id =5 #line:58\r\n elif level \u003c210 :#line:59\r\n OOOOOOO0O0OOO0000 .costume_id =6 #line:60\r\n elif level \u003c240 :#line:61\r\n OOOOOOO0O0OOO0000 .costume_id =7 #line:62\r\n elif level \u003c270 :#line:63\r\n OOOOOOO0O0OOO0000 .costume_id =8 #line:64\r\n else :#line:65\r\n OOOOOOO0O0OOO0000 .costume_id =9 #line:66\r\n if cursor.is_down :#line:67\r\n iyse -=0.6 #line:68\r\n uniafet =True #line:69\r\n if uniafet ==True :#line:71\r\n iyse +=0.3 #line:72\r\n ux232123 .y +=iyse #line:73\r\n ux232123 .direction =90 +iyse *2 #line:74\r\n if ux232123 .touched (uw232123 ):#line:76\r\n x8980923 .stop ()#line:77\r\n for OO0000OOO0OO00OO0 in range (0 ,21 ,1 ):#line:79\r\n O000OO000O00OOO00 =bubbles [OO0000OOO0OO00OO0 ]#line:80\r\n O000OO000O00OOO00 .x -=7 #line:81\r\n O000OO000O00OOO00 .y -=2 #line:82\r\n O000OO000O00OOO00 .scale =O000OO000O00OOO00 .x /600 #line:83\r\n O000OO000O00OOO00 .opacity =O000OO000O00OOO00 .x /600 #line:84\r\n if O000OO000O00OOO00 .x \u003c-10 :#line:85\r\n O000OO000O00OOO00 .x =ux232123 .x -random .random ()*20 -60 #line:86\r\n O000OO000O00OOO00 .y =ux232123 .y -random .random ()*20 #line:87\r\n hhjefek00000o000o .x -=0.3 #line:89\r\n if hhjefek00000o000o .x \u003c-1200 :#line:90\r\n hhjefek00000o000o .x +=2400 #line:91\r\n x8980923 .draw_text (\"Level: \"+str (level ),10 ,10 ,\"white\",60 )#line:93\r\nx8980923 .forever (loop )#line:95\r\n","created_at":"2020-08-20T13:56:49.905+08:00","updated_at":"2020-08-22T23:29:05.031+08:00","name":"海底探險_臺南版","language":"python","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/183244/70d79956571c572a8ec3192a07347d9f.jpg"},"parent_id":183236,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":112,"hashid":"zpes9y49","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3116346,"file_name":"player.png","project_id":183244,"asset_id":200359,"created_at":"2020-08-20T13:56:49.911+08:00","updated_at":"2020-08-20T13:56:49.911+08:00"},{"id":3116347,"file_name":"hint.png","project_id":183244,"asset_id":189068,"created_at":"2020-08-20T13:56:49.912+08:00","updated_at":"2020-08-20T13:56:49.912+08:00"},{"id":3116348,"file_name":"bubble.png","project_id":183244,"asset_id":200358,"created_at":"2020-08-20T13:56:49.913+08:00","updated_at":"2020-08-20T13:56:49.913+08:00"},{"id":3116349,"file_name":"bgm.ogg","project_id":183244,"asset_id":170605,"created_at":"2020-08-20T13:56:49.914+08:00","updated_at":"2020-08-20T13:56:49.914+08:00"},{"id":3116350,"file_name":"bgm_3.ogg","project_id":183244,"asset_id":170604,"created_at":"2020-08-20T13:56:49.914+08:00","updated_at":"2020-08-20T13:56:49.914+08:00"},{"id":3116351,"file_name":"bg.png","project_id":183244,"asset_id":201852,"created_at":"2020-08-20T13:56:49.915+08:00","updated_at":"2020-08-20T13:56:49.915+08:00"},{"id":3116352,"file_name":"b10.png","project_id":183244,"asset_id":200379,"created_at":"2020-08-20T13:56:49.916+08:00","updated_at":"2020-08-20T13:56:49.916+08:00"},{"id":3116353,"file_name":"b9.png","project_id":183244,"asset_id":200378,"created_at":"2020-08-20T13:56:49.917+08:00","updated_at":"2020-08-20T13:56:49.917+08:00"},{"id":3116354,"file_name":"b8.png","project_id":183244,"asset_id":200377,"created_at":"2020-08-20T13:56:49.918+08:00","updated_at":"2020-08-20T13:56:49.918+08:00"},{"id":3116355,"file_name":"b7.png","project_id":183244,"asset_id":200376,"created_at":"2020-08-20T13:56:49.919+08:00","updated_at":"2020-08-20T13:56:49.919+08:00"},{"id":3116356,"file_name":"b6.png","project_id":183244,"asset_id":200375,"created_at":"2020-08-20T13:56:49.920+08:00","updated_at":"2020-08-20T13:56:49.920+08:00"},{"id":3116357,"file_name":"b5.png","project_id":183244,"asset_id":200374,"created_at":"2020-08-20T13:56:49.921+08:00","updated_at":"2020-08-20T13:56:49.921+08:00"},{"id":3116358,"file_name":"b4.png","project_id":183244,"asset_id":200373,"created_at":"2020-08-20T13:56:49.922+08:00","updated_at":"2020-08-20T13:56:49.922+08:00"},{"id":3116359,"file_name":"b3.png","project_id":183244,"asset_id":200372,"created_at":"2020-08-20T13:56:49.923+08:00","updated_at":"2020-08-20T13:56:49.923+08:00"},{"id":3116360,"file_name":"b2.png","project_id":183244,"asset_id":200371,"created_at":"2020-08-20T13:56:49.924+08:00","updated_at":"2020-08-20T13:56:49.924+08:00"},{"id":3116361,"file_name":"b1.png","project_id":183244,"asset_id":200370,"created_at":"2020-08-20T13:56:49.925+08:00","updated_at":"2020-08-20T13:56:49.925+08:00"},{"id":3116362,"file_name":"b0.png","project_id":183244,"asset_id":200369,"created_at":"2020-08-20T13:56:49.926+08:00","updated_at":"2020-08-20T13:56:49.926+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
繁中
简中
English
日本語
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦