{"id":62770,"student_id":1444,"content":"\nforever(function() {\n // 在這裡的程式碼會不斷執行\n clock = clock + 1;\n\n if (clock%speed == 0) {\n playerControl();\n move();\n }\n\n print(score, 20, 20, \"white\");\n\n});\n\nfunction move () {\n head.stepForward(16);\n}\n\n\nfunction playerControl() {\n if (key.right \u0026\u0026 head.direction != 270) {\n head.direction = 90;\n }\n if (key.left \u0026\u0026 head.direction != 90) {\n head.direction = 270;\n }\n if (key.up \u0026\u0026 head.direction != 180) {\n head.direction = 0;\n }\n if (key.down \u0026\u0026 head.direction != 0) {\n head.direction = 180;\n }\n}\n","created_at":"2019-04-19T15:27:06.860+08:00","updated_at":"2019-11-01T11:29:05.960+08:00","name":"貪食蛇_S ","language":"javascript","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/62770/bec10a74afd1a2afc900fa88c2860afe.jpg"},"parent_id":54317,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":133,"hashid":"4y3srmwg","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1102417,"file_name":"head.gif","project_id":62770,"asset_id":107712,"created_at":"2019-04-19T15:27:06.864+08:00","updated_at":"2019-04-19T15:27:06.864+08:00"},{"id":1102418,"file_name":"body.gif","project_id":62770,"asset_id":107711,"created_at":"2019-04-19T15:27:06.866+08:00","updated_at":"2019-04-19T15:27:06.866+08:00"},{"id":1102419,"file_name":"food.gif","project_id":62770,"asset_id":107710,"created_at":"2019-04-19T15:27:06.867+08:00","updated_at":"2019-04-19T15:27:06.867+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦