{"id":335288,"student_id":10,"content":"//=====================================================\n// 預設程式可能與影片中老師的程式有些不同,\n// 但不會影響到專案製作,\n// 請按照影片中老師的指示完成專案即可。\n//=====================================================\n\nsetBackdrop('bg.png'); //設定背景圖\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-01-13T16:12:52.920+08:00","updated_at":"2022-01-14T18:25:27.650+08:00","name":"守護演唱會(預設版) 副本","language":"javascript","screenshot":{"url":null},"parent_id":335266,"plugin":"Game.set({ width: 1200, height: 900 });","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":157,"hashid":"p93sk83z4","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7147546,"file_name":"bgm.mp3","project_id":335288,"asset_id":463467,"created_at":"2022-01-13T16:12:52.927+08:00","updated_at":"2022-01-13T16:12:52.927+08:00"},{"id":7147547,"file_name":"sight.png","project_id":335288,"asset_id":463466,"created_at":"2022-01-13T16:12:52.928+08:00","updated_at":"2022-01-13T16:12:52.928+08:00"},{"id":7147548,"file_name":"k_1.png","project_id":335288,"asset_id":463465,"created_at":"2022-01-13T16:12:52.929+08:00","updated_at":"2022-01-13T16:12:52.929+08:00"},{"id":7147549,"file_name":"k_0.png","project_id":335288,"asset_id":463464,"created_at":"2022-01-13T16:12:52.930+08:00","updated_at":"2022-01-13T16:12:52.930+08:00"},{"id":7147550,"file_name":"info.png","project_id":335288,"asset_id":463463,"created_at":"2022-01-13T16:12:52.931+08:00","updated_at":"2022-01-13T16:12:52.931+08:00"},{"id":7147551,"file_name":"board.png","project_id":335288,"asset_id":463462,"created_at":"2022-01-13T16:12:52.931+08:00","updated_at":"2022-01-13T16:12:52.931+08:00"},{"id":7147552,"file_name":"bg.png","project_id":335288,"asset_id":463461,"created_at":"2022-01-13T16:12:52.932+08:00","updated_at":"2022-01-13T16:12:52.932+08:00"},{"id":7147553,"file_name":"bg_end.png","project_id":335288,"asset_id":463460,"created_at":"2022-01-13T16:12:52.933+08:00","updated_at":"2022-01-13T16:12:52.933+08:00"},{"id":7147554,"file_name":"t_0.png","project_id":335288,"asset_id":463459,"created_at":"2022-01-13T16:12:52.934+08:00","updated_at":"2022-01-13T16:12:52.934+08:00"},{"id":7147555,"file_name":"t_2.png","project_id":335288,"asset_id":463458,"created_at":"2022-01-13T16:12:52.935+08:00","updated_at":"2022-01-13T16:12:52.935+08:00"},{"id":7147556,"file_name":"fail.mp3","project_id":335288,"asset_id":463457,"created_at":"2022-01-13T16:12:52.936+08:00","updated_at":"2022-01-13T16:12:52.936+08:00"},{"id":7147557,"file_name":"t_6.png","project_id":335288,"asset_id":463456,"created_at":"2022-01-13T16:12:52.937+08:00","updated_at":"2022-01-13T16:12:52.937+08:00"},{"id":7147558,"file_name":"t_5.png","project_id":335288,"asset_id":463455,"created_at":"2022-01-13T16:12:52.939+08:00","updated_at":"2022-01-13T16:12:52.939+08:00"},{"id":7147559,"file_name":"t_4.png","project_id":335288,"asset_id":463454,"created_at":"2022-01-13T16:12:52.939+08:00","updated_at":"2022-01-13T16:12:52.939+08:00"},{"id":7147560,"file_name":"t_3.png","project_id":335288,"asset_id":463453,"created_at":"2022-01-13T16:12:52.940+08:00","updated_at":"2022-01-13T16:12:52.940+08:00"},{"id":7147561,"file_name":"t_1.png","project_id":335288,"asset_id":463452,"created_at":"2022-01-13T16:12:52.941+08:00","updated_at":"2022-01-13T16:12:52.941+08:00"},{"id":7147562,"file_name":"k_2.png","project_id":335288,"asset_id":463451,"created_at":"2022-01-13T16:12:52.942+08:00","updated_at":"2022-01-13T16:12:52.942+08:00"},{"id":7147545,"file_name":"fired.mp3","project_id":335288,"asset_id":463468,"created_at":"2022-01-13T16:12:52.925+08:00","updated_at":"2022-01-13T16:12:52.925+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦