{"id":48673,"student_id":3232,"content":"var heroHP=100\nvar heroStatus=\"sleeping\"\nif(heroStatus===\"fighting\"){\n heroHP=heroHP-10\n}\nif(heroStatus===\"sleeping\"\u0026\u0026heroHP\u003c100){\n heroHP=heroHP+10\n}","created_at":"2018-11-12T20:38:28.800+08:00","updated_at":"2019-11-01T09:01:57.085+08:00","name":"JS Game L3 副本","language":"javascript","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/48673/6ac2246fa20a8c18fb77627646ca2f03.jpg"},"parent_id":4706,"plugin":"setBackdrop(\"#5ea642\");\nvar hero = createSprite(\"hero.png\");\nvar box = createSprite(\"console-box.png\");\nhero.scale = 0.2;\nbox.y=380;\n\nvar heroName = heroName || \"請輸入主角名稱\";\nvar heroHP = heroHP || \"\";\nvar heroStatus = heroStatus || \"\";\n\nvar originConsoleLog = console.log;\nvar logs = [];\nconsole.log = function(log){\n\tlogs.push(log);\n if(logs.length\u003e5){logs.shift();}\n originConsoleLog(log);\n};\n\nforever(function(){\n\tprint(heroName, 20, 20, \"white\", 18);\n\tprint(\"生命: \" + heroHP, 20, 48);\n\tprint(\"狀態: \" + heroStatus, 20, 68);\n for(var i=logs.length-1;i\u003e=0;i--){\n\t print(logs[i], 64, 330+20*i, \"white\",14); \n }\n});","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":60,"hashid":"yeys55rw","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":873082,"file_name":"hero.png","project_id":48673,"asset_id":15664,"created_at":"2018-11-12T20:38:28.811+08:00","updated_at":"2018-11-12T20:38:28.811+08:00"},{"id":873083,"file_name":"console-box.png","project_id":48673,"asset_id":15665,"created_at":"2018-11-12T20:38:28.815+08:00","updated_at":"2018-11-12T20:38:28.815+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦