{"id":8547,"student_id":1440,"content":"var plane=createSprite(\"plane.jpg\")\r\nvar monster=createSprite(\"monster.png\")\r\nvar direction=true\r\nvar detection=false\r\n\r\nmonster.scale=0.1\r\nmonster.y=40\r\n\r\nforever(function(){\r\n plane.x=cursor.x\r\n plane.y=cursor.y\r\n if(direction){\r\n monster.x+=10\r\n if(monster.x\u003e590){\r\n direction=false\r\n }\r\n }else{\r\n monster.x-=10\r\n if(monster.x\u003c40){\r\n direction=true\r\n }\r\n }\r\n})\r\nwhen(\"keyup\",'space',function(){\r\n var bullet=createSprite(\"bullet.jpg\")\r\n bullet.x=plane.x\r\n bullet.y=plane.y\r\n detection=true\r\n if(detection){\r\n if(bullet.y\u003c50){\r\n detection=false\r\n }else{\r\n bullet.y-=5\r\n }\r\n }\r\n})","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-10-15T08:58:34.716+08:00","name":"練習2","language":"javascript","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/8547/f164d84f4345254e30a7003749ae56b9.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":382,"hashid":"jzmsgwy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":197962,"file_name":"plane.jpg","project_id":8547,"asset_id":23552,"created_at":"2017-08-07T17:44:31.631+08:00","updated_at":"2017-08-07T17:44:31.631+08:00"},{"id":197965,"file_name":"bullet.jpg","project_id":8547,"asset_id":23556,"created_at":"2017-08-07T18:55:29.684+08:00","updated_at":"2017-08-07T18:55:29.684+08:00"},{"id":205227,"file_name":"monster.png","project_id":8547,"asset_id":24849,"created_at":"2017-08-16T14:42:11.801+08:00","updated_at":"2017-08-16T14:42:11.801+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦