{"id":9816,"student_id":1486,"content":"setBackdrop(\"beige\");\n\nvar point = 0;\nvar clock = 0;\n\nvar player = createSprite(\"player.png\");\nplayer.v = 0;\nplayer.landed = false;\n\nplayer.forever(function(){\n pen.color = '#333333';\n pen.size = 4;\n pen.drawLine(0, 298, 640, 298);\n\n this.x = 200;\n this.y += this.v;\n if(this.y + this.height/2 \u003e= 300){\n this.y = 300 - this.height/2;\n this.v = 0;\n this.landed = true;\n }else{\n this.v += 0.4;\n }\n\n clock++;\n\n if(clock % 120 == 0){\n var spike = createSprite(\"spike.png\");\n spike.x = 700;\n spike.y = Math.floor(Math.random() * (168 - 32)) + 32;\n spike.forever(function(){\n if(this.touched(player)){\n stop();\n }else{\n this.x--;\n }\n });\n\n var coin = createSprite(\"coin.png\");\n coin.x = 700;\n coin.y = Math.floor(Math.random() * (168 - 32)) + 32;\n coin.forever(function(){\n if(this.touched(player)){\n point++;\n this.destroy();\n }else{\n this.x-=2;\n }\n });\n }\n\n print(\"Points: \" + point, 10, 10, \"#333333\", 60);\n\n});\n\nwhen(\"click\", function(){\n if(player.landed){\n player.v = -12;\n player.landed = false;\n when(\"click\", function(){\n \n });\n }\n});","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-10-15T01:19:36.791+08:00","name":"跑酷","language":"javascript","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/9816/8af18fb0ef5e16e592dc29369c3955c6.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":314,"hashid":"meyswwgy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":217773,"file_name":"0.png","project_id":9816,"asset_id":6,"created_at":"2017-08-23T11:47:17.815+08:00","updated_at":"2017-08-23T11:47:17.815+08:00"},{"id":217774,"file_name":"1.svg","project_id":9816,"asset_id":7,"created_at":"2017-08-23T11:47:17.817+08:00","updated_at":"2017-08-23T11:47:17.817+08:00"},{"id":217775,"file_name":"2.png","project_id":9816,"asset_id":8,"created_at":"2017-08-23T11:47:17.821+08:00","updated_at":"2017-08-23T11:47:17.821+08:00"},{"id":217776,"file_name":"0.wav","project_id":9816,"asset_id":9,"created_at":"2017-08-23T11:47:17.824+08:00","updated_at":"2017-08-23T11:47:17.824+08:00"},{"id":217777,"file_name":"1.wav","project_id":9816,"asset_id":10,"created_at":"2017-08-23T11:47:17.827+08:00","updated_at":"2017-08-23T11:47:17.827+08:00"},{"id":217784,"file_name":"coin.png","project_id":9816,"asset_id":26354,"created_at":"2017-08-23T12:10:07.694+08:00","updated_at":"2017-08-23T12:10:07.694+08:00"},{"id":217785,"file_name":"spike.png","project_id":9816,"asset_id":26355,"created_at":"2017-08-23T12:10:07.697+08:00","updated_at":"2017-08-23T12:10:07.697+08:00"},{"id":217786,"file_name":"player.png","project_id":9816,"asset_id":26356,"created_at":"2017-08-23T12:19:12.993+08:00","updated_at":"2017-08-23T12:19:12.993+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦