{"id":49549,"student_id":10,"content":"setBackdrop('bg.png');\nvar p1 = createSprite('pipes.png'); //1號水管\nvar p2 = createSprite('pipes.png'); //2號水管\nvar p3 = createSprite('pipes.png'); //3號水管\nvar gd = createSprite('ground.png'); //地板\nvar bird = createSprite('bird_1.png', 'bird_2.png', 'bird_3.png'); //鳥\nvar hint = createSprite('hint.png'); //開始提示圖\nvar end = createSprite('gameover.png'); //結束提示圖\n\nhint.hidden = true; //隱藏開始提示圖\nend.hidden = true; //隱藏結束提示圖\n\ngd.forever(moveGround); //移動地板\np1.forever(movePipes); //移動1號水管\np2.forever(movePipes); //移動2號水管\np3.forever(movePipes); //移動3號水管\nbird.forever(moveBird); //移動鳥\n\non('keydown', jump); //按下任意按鍵使鳥跳躍\nbird.on('touch', [p1, p2, p3, gd], gameover); //當鳥碰撞到障礙物時結束遊戲\n\nvar speed = 0; //鳥的垂直速度\nvar score = 0; //分數\nvar start = false; //是否開始遊戲\n\n\n\n//移動地板\nfunction moveGround () {\n\n}\n\n//移動水管\nfunction movePipes () {\n\n}\n\n//鳥的墜落 \u0026 翅膀動畫\nfunction moveBird () {\n\n}\n\n//鳥的跳躍\nfunction jump () {\n\n}\n\n//遊戲結束\nfunction gameover () {\n\n}\n","created_at":"2018-11-22T14:05:27.722+08:00","updated_at":"2020-04-06T17:40:35.422+08:00","name":"flappy bird(預設版)","language":"javascript","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/49549/5435158a319895ecb1eaa02fa215a9f5.jpg"},"parent_id":31540,"plugin":"Game.set({\n width: 1200,\n height: 900,\n})\n\ndrawText = function (t, x, y, c, s, f) {\n Game.pen.drawText(t, x, y, c, s || 32, f)\n}","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":312,"hashid":"ej9s5wwp","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2385822,"file_name":"gg.mp3","project_id":49549,"asset_id":202597,"created_at":"2020-04-06T11:01:02.977+08:00","updated_at":"2020-04-06T11:02:04.970+08:00"},{"id":2385815,"file_name":"bg.png","project_id":49549,"asset_id":202590,"created_at":"2020-04-06T10:47:39.009+08:00","updated_at":"2020-04-06T10:47:39.009+08:00"},{"id":2385816,"file_name":"bird_1.png","project_id":49549,"asset_id":202591,"created_at":"2020-04-06T10:47:39.011+08:00","updated_at":"2020-04-06T10:47:39.011+08:00"},{"id":2385806,"file_name":"bgm.mp3","project_id":49549,"asset_id":202586,"created_at":"2020-04-06T10:43:07.576+08:00","updated_at":"2020-04-06T10:43:07.576+08:00"},{"id":2385807,"file_name":"jump.mp3","project_id":49549,"asset_id":201868,"created_at":"2020-04-06T10:46:49.890+08:00","updated_at":"2020-04-06T10:46:49.890+08:00"},{"id":2385817,"file_name":"bird_2.png","project_id":49549,"asset_id":202592,"created_at":"2020-04-06T10:47:39.382+08:00","updated_at":"2020-04-06T10:47:39.382+08:00"},{"id":2385818,"file_name":"gameover.png","project_id":49549,"asset_id":202098,"created_at":"2020-04-06T10:47:39.384+08:00","updated_at":"2020-04-06T10:47:39.384+08:00"},{"id":2385819,"file_name":"ground.png","project_id":49549,"asset_id":202595,"created_at":"2020-04-06T10:47:39.905+08:00","updated_at":"2020-04-06T10:47:39.905+08:00"},{"id":2385820,"file_name":"hint.png","project_id":49549,"asset_id":202593,"created_at":"2020-04-06T10:47:39.906+08:00","updated_at":"2020-04-06T10:47:39.906+08:00"},{"id":2385821,"file_name":"pipes.png","project_id":49549,"asset_id":202594,"created_at":"2020-04-06T10:47:40.223+08:00","updated_at":"2020-04-06T10:47:40.223+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦