{"id":100254,"student_id":1780,"content":"setBackdrop(\"black\");\nvar score=0;\nvar hearts=10;\nvar flyingWords=[];\nvar words=[\"coding\",\"fun\",\"hellow\",\"school\"];\nvar input= \"\";\n\nsetInterval(function(){\n console.log( );\n \n var word={\n text:words[Math.floor(Math.random()*words.length)],\n x:0,\n y:Math.random()*480\n \n}; \n flyingWords.push(word);\n \n},1000);\n\n\n\n\nforever(function(){\n for(var i=0;i\u003cflyingWords.length;i++){\n var word=flyingWords[i];\n \n if(word.x\u003c200){\n print(word.text,word.x,word.y,\"green\");\n }else if(word.x\u003c400){\n print(word.text,word.x,word.y,\"yellow\");\n }else{\n print(word.text,word.x,word.y,\"red\");\n }\n \n if(word.text==input){\n score++;\n flyingWords.splice(i,1);\n input=\"\";\n }\n \n \n \n word.x++; \n \n if(word.x\u003e640){\n hearts--;\n flyingWords.splice(i,1);\n }\n \n \n }\n \n \n\nprint(\"Score:\"+score,10,10,\"white\",20);\nprint(\"Hearts:\"+hearts,10,40,\"white\",20);\nprint(input,480,10,\"white\",20);\n\nif(hearts\u003c=9){\n \n print(\"Game Over\",160,200,\"white\",64);\n \n stop();\n}\n\n \n});\n\nwhen(\"keydown\",\"a\",function(){\n input+=\"a\";\n});\nwhen(\"keydown\",\"b\",function(){\n input+=\"b\";\n});\nwhen(\"keydown\",\"c\",function(){\n input+=\"c\";\n});\nwhen(\"keydown\",\"d\",function(){\n input+=\"d\";\n});\nwhen(\"keydown\",\"e\",function(){\n input+=\"e\";\n});\nwhen(\"keydown\",\"f\",function(){\n input+=\"f\";\n});\nwhen(\"keydown\",\"g\",function(){\n input+=\"g\";\n});\nwhen(\"keydown\",\"h\",function(){\n input+=\"h\";\n});\nwhen(\"keydown\",\"i\",function(){\n input+=\"i\";\n});\nwhen(\"keydown\",\"j\",function(){\n input+=\"j\";\n});\nwhen(\"keydown\",\"k\",function(){\n input+=\"k\";\n});\nwhen(\"keydown\",\"l\",function(){\n input+=\"l\";\n});\nwhen(\"keydown\",\"m\",function(){\n input+=\"m\";\n});\nwhen(\"keydown\",\"n\",function(){\n input+=\"n\";\n});\nwhen(\"keydown\",\"o\",function(){\n input+=\"o\";\n});\nwhen(\"keydown\",\"p\",function(){\n input+=\"p\";\n});\nwhen(\"keydown\",\"q\",function(){\n input+=\"q\";\n});\nwhen(\"keydown\",\"r\",function(){\n input+=\"r\";\n});\nwhen(\"keydown\",\"s\",function(){\n input+=\"s\";\n});\nwhen(\"keydown\",\"t\",function(){\n input+=\"t\";\n});\nwhen(\"keydown\",\"u\",function(){\n input+=\"u\";\n});\nwhen(\"keydown\",\"v\",function(){\n input+=\"v\";\n});\nwhen(\"keydown\",\"w\",function(){\n input+=\"w\";\n});\nwhen(\"keydown\",\"x\",function(){\n input+=\"x\";\n});\nwhen(\"keydown\",\"y\",function(){\n input+=\"y\";\n});\nwhen(\"keydown\",\"z\",function(){\n input+=\"z\";\n});\nwhen(\"keydown\",\"backspace\",function(){\n input= input.slice(0,-1);\n});\n\n\n\n","created_at":"2019-10-17T21:51:57.137+08:00","updated_at":"2019-11-09T14:56:59.612+08:00","name":"鍵盤快打 副本","language":"javascript","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/100254/e4deea67a452ab61794c94ee92857894.jpg"},"parent_id":10743,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":123,"hashid":"kdmsd5vz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦