{"id":13224,"student_id":10,"content":"setBackdrop(\"#fff\");\n\n\n\nvar grid = [\n [\"1\", \"1\", \"1\", \"1\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\"]\n];\n\nforever(function(){\n for(var x=0; x\u003cgrid.length; x++) {\n for(var y=0; y\u003cgrid[x].length; y++) {\n pen.size = 0;\n if (grid[x][y] == 1) {\n pen.fillColor = \"blue\";\n pen.drawRect(x*40, y*40, 40, 40);\n }\n \n }\n }\n});\n\nfunction createBall (x, y) {\n var sprite = createSprite(\"ball.png\");\n}\n\ncreateBall();","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-10-21T21:08:19.200+08:00","name":"pac-man","language":"javascript","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/13224/2e39d7c0d4ab506e44754c505c9d9483.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":349,"hashid":"9ygspv46","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":274240,"file_name":"ball.png","project_id":13224,"asset_id":33246,"created_at":"2017-10-14T22:43:01.318+08:00","updated_at":"2017-10-14T22:43:01.318+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦