{"id":165630,"student_id":12205,"content":"setBackdrop(\"bg.jpg\");\n\nvar score = 0;\nvar gotscore = false;\n\nvar bird = createSprite(\"bird.png\");\nbird.x = 320;\nbird.y = 200;\nbird.v = 0;\n\nvar tube = createSprite(\"tube.png\");\ntube.x = 660;\ntube.y = 240;\n\nvar ground = createSprite(\"ground.jpg\");\nground.x = 320;\nground.y = 440;\n\nforever(function() {\n tube.x = tube.x-4;\n bird.v = bird.v+0.25;\n bird.y = bird.y+bird.v;\n\n if (tube.x\u003c-40) {\n tube.x = 660;\n tube.y = 40+Math.random()*280;\n gotscore = false;\n }\n if (tube.x \u003c 300 \u0026\u0026 gotscore == false) {\n score=score+1;\n gotscore = true;\n }\n print(\"Score=\"+score);\n});\n\nbird.when(\"touch\", tube, function() {\n stop();\n});\nbird.when(\"touch\", ground, function() {\n stop();\n});\n\n\nwhen(\"click\", function() {\n bird.v=-6;\n});","created_at":"2020-07-17T11:41:41.206+08:00","updated_at":"2020-08-27T14:00:36.639+08:00","name":"Flappy Bird.js","language":"javascript","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/165630/59e985753590f36b9818e13b35ccd8b3.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":79,"hashid":"4y3svnek","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2878156,"file_name":"tube.png","project_id":165630,"asset_id":237574,"created_at":"2020-07-17T11:41:53.914+08:00","updated_at":"2020-07-17T11:41:53.914+08:00"},{"id":2878157,"file_name":"ground.jpg","project_id":165630,"asset_id":237575,"created_at":"2020-07-17T11:41:53.918+08:00","updated_at":"2020-07-17T11:41:53.918+08:00"},{"id":2878158,"file_name":"bg.jpg","project_id":165630,"asset_id":237576,"created_at":"2020-07-17T11:41:53.922+08:00","updated_at":"2020-07-17T11:41:53.922+08:00"},{"id":2878159,"file_name":"bird.png","project_id":165630,"asset_id":237577,"created_at":"2020-07-17T11:41:53.926+08:00","updated_at":"2020-07-17T11:41:53.926+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦