{"id":117984,"student_id":10,"content":"var road = createSprite('road.png');\nvar player = createSprite(['1.png', '2.png']);\nvar startTime;\n\nroad.x += 500;\n\nsetTimeout(start, 3000);\non('keyup', 'right', rightStep);\non('keyup', 'left', leftStep);\nforever(loop)\n\nfunction start () {\n startTime = Date.now();\n}\n\nfunction rightStep () {\n if (player.costumeId == 0) {\n road.x -= 20;\n player.costumeId = 1; \n }\n}\n\nfunction leftStep () {\n if (player.costumeId == 1) {\n road.x -= 20;\n player.costumeId = 0;\n }\n}\n\nfunction loop () {\n if (road.x \u003c= -180) {\n var time = Date.now();\n print((time - startTime)/1000 + 's', 290, 170);\n stop();\n }\n}\n","created_at":"2020-01-02T16:54:20.448+08:00","updated_at":"2020-10-13T10:55:05.005+08:00","name":"百米衝刺大賽","language":"javascript","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/117984/d26e03968c484652abad12d3e104fcc7.jpg"},"parent_id":117982,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":262,"hashid":"6rps6gke","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2023497,"file_name":"road.png","project_id":117984,"asset_id":176438,"created_at":"2020-01-02T17:24:30.710+08:00","updated_at":"2020-01-02T17:24:30.710+08:00"},{"id":2023494,"file_name":"1.png","project_id":117984,"asset_id":176435,"created_at":"2020-01-02T16:54:44.855+08:00","updated_at":"2020-01-02T16:54:44.855+08:00"},{"id":2023495,"file_name":"2.png","project_id":117984,"asset_id":176436,"created_at":"2020-01-02T16:54:44.857+08:00","updated_at":"2020-01-02T16:54:44.857+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦