{"id":8998,"student_id":10,"content":"var plane=createSprite(\"plane.jpg\")\r\nvar emission=false\r\nvar detection=true\r\nvar bullets = [];\r\n\r\nforever(function(){\r\n plane.x=cursor.x\r\n plane.y=cursor.y\r\n\r\n for(var i=0; i\u003cbullets.length; i++) {\r\n var b = bullets[i];\r\n b.y -= 3;\r\n if(b.y \u003c 0) {\r\n b.destroy()\r\n }\r\n }\r\n})\r\n\r\nwhen(\"mouseup\",function(){\r\n bullet=createSprite(\"bullet.jpg\",\"explosion.jpg\")\r\n emission=true\r\n detection=false\r\n bullet.x=plane.x\r\n bullet.y=plane.y\r\n bullets.push(bullet);\r\n})","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-09T03:42:12.830+08:00","name":"練習2 - 換個寫法\u003e_\u003c","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/8998/5c0c8f1f4ba30f46f944c9f9b150d073.jpg"},"parent_id":8547,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":525,"hashid":"zpesmk4","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":197966,"file_name":"plane.jpg","project_id":8998,"asset_id":23552,"created_at":"2017-08-07T22:13:01.333+08:00","updated_at":"2017-08-07T22:13:01.333+08:00"},{"id":197967,"file_name":"explosion.jpg","project_id":8998,"asset_id":23554,"created_at":"2017-08-07T22:13:01.335+08:00","updated_at":"2017-08-07T22:13:01.335+08:00"},{"id":197968,"file_name":"bullet.jpg","project_id":8998,"asset_id":23556,"created_at":"2017-08-07T22:13:01.336+08:00","updated_at":"2017-08-07T22:13:01.336+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦