{"id":354509,"student_id":10,"content":"setBackdrop('black'); //設定背景圖\nlet board = createSprite('board.png'); //計分板\nlet koding = createSprite('k_0.png', 'k_1.png', 'k_2.png'); //玩家\nlet info = createSprite('info.png'); //遊戲說明\nlet sight = createSprite('sight.png'); // 準星\n\nlet score = 0; //分數\nlet clock = 0; //紀錄遊戲迴圈的執行次數\n\ninfo.hidden = true; //預設隱藏\n\n// target.direction = Math.random()*360; //目標物朝向隨機方向\n// target.stepForward(300); //目標物向前移動 1000 - 1500 的距離\n// target.direction += 180; //目標物 180 度旋轉方向\n\n// 遊戲迴圈\nfunction gameloop () {\n drawText(score, 200, 60, 'white', 50); //顯示攔截數\n \n // 讓準星跟著滑鼠移動\n sight.x = cursor.x;\n sight.y = cursor.y;\n \n}\n\n// 當遊戲場景被點擊時\nfunction clickOnStage () {\n if (target.touched(sight) == true) { //如果目標物碰到準星\n target.x = 600; //移動至水平中央\n target.y = 450; //移動至垂直中央\n target.direction = Math.random()*360;\n target.stepForward(Math.random() * 300 + 1000);\n target.direction += 180;\n score += 1; // 分數加 1\n }\n\n}\n\non('click', clickOnStage); //遊戲場景被點擊就執行 clickOnStage\nforever(gameloop); //不斷執行遊戲迴圈\n\n","created_at":"2022-03-11T08:11:24.838+08:00","updated_at":"2022-03-11T08:11:24.838+08:00","name":"守護演唱會(預設版) 副本","language":"javascript","screenshot":{"url":null},"parent_id":340390,"plugin":"Game.set({ width: 1200, height: 900 });","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":154,"hashid":"6rps94dpn","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7724235,"file_name":"fired.mp3","project_id":354509,"asset_id":470483,"created_at":"2022-03-11T08:11:24.844+08:00","updated_at":"2022-03-11T08:11:24.844+08:00"},{"id":7724236,"file_name":"bgm.mp3","project_id":354509,"asset_id":470484,"created_at":"2022-03-11T08:11:24.846+08:00","updated_at":"2022-03-11T08:11:24.846+08:00"},{"id":7724237,"file_name":"sight.png","project_id":354509,"asset_id":470485,"created_at":"2022-03-11T08:11:24.847+08:00","updated_at":"2022-03-11T08:11:24.847+08:00"},{"id":7724238,"file_name":"k_1.png","project_id":354509,"asset_id":470486,"created_at":"2022-03-11T08:11:24.848+08:00","updated_at":"2022-03-11T08:11:24.848+08:00"},{"id":7724239,"file_name":"k_0.png","project_id":354509,"asset_id":470487,"created_at":"2022-03-11T08:11:24.849+08:00","updated_at":"2022-03-11T08:11:24.849+08:00"},{"id":7724240,"file_name":"info.png","project_id":354509,"asset_id":470488,"created_at":"2022-03-11T08:11:24.850+08:00","updated_at":"2022-03-11T08:11:24.850+08:00"},{"id":7724241,"file_name":"board.png","project_id":354509,"asset_id":470489,"created_at":"2022-03-11T08:11:24.851+08:00","updated_at":"2022-03-11T08:11:24.851+08:00"},{"id":7724242,"file_name":"bg.png","project_id":354509,"asset_id":470490,"created_at":"2022-03-11T08:11:24.852+08:00","updated_at":"2022-03-11T08:11:24.852+08:00"},{"id":7724243,"file_name":"bg_end.png","project_id":354509,"asset_id":470491,"created_at":"2022-03-11T08:11:24.853+08:00","updated_at":"2022-03-11T08:11:24.853+08:00"},{"id":7724244,"file_name":"t_0.png","project_id":354509,"asset_id":470492,"created_at":"2022-03-11T08:11:24.854+08:00","updated_at":"2022-03-11T08:11:24.854+08:00"},{"id":7724245,"file_name":"t_2.png","project_id":354509,"asset_id":470493,"created_at":"2022-03-11T08:11:24.855+08:00","updated_at":"2022-03-11T08:11:24.855+08:00"},{"id":7724246,"file_name":"fail.mp3","project_id":354509,"asset_id":470494,"created_at":"2022-03-11T08:11:24.856+08:00","updated_at":"2022-03-11T08:11:24.856+08:00"},{"id":7724247,"file_name":"t_6.png","project_id":354509,"asset_id":470495,"created_at":"2022-03-11T08:11:24.857+08:00","updated_at":"2022-03-11T08:11:24.857+08:00"},{"id":7724248,"file_name":"t_5.png","project_id":354509,"asset_id":470496,"created_at":"2022-03-11T08:11:24.858+08:00","updated_at":"2022-03-11T08:11:24.858+08:00"},{"id":7724249,"file_name":"t_4.png","project_id":354509,"asset_id":470497,"created_at":"2022-03-11T08:11:24.859+08:00","updated_at":"2022-03-11T08:11:24.859+08:00"},{"id":7724250,"file_name":"t_3.png","project_id":354509,"asset_id":470498,"created_at":"2022-03-11T08:11:24.860+08:00","updated_at":"2022-03-11T08:11:24.860+08:00"},{"id":7724251,"file_name":"t_1.png","project_id":354509,"asset_id":470499,"created_at":"2022-03-11T08:11:24.861+08:00","updated_at":"2022-03-11T08:11:24.861+08:00"},{"id":7724252,"file_name":"k_2.png","project_id":354509,"asset_id":470500,"created_at":"2022-03-11T08:11:24.862+08:00","updated_at":"2022-03-11T08:11:24.862+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦