{"id":230643,"student_id":10,"content":"Game.set({ width: 1200, height: 900 });\n\nsetBackdrop(\"bg_0.png\");\n\nlet player = createSprite('player_o.png', 'player_b.png');\nlet ball = createSprite('obj_0.png', 'obj_1.png', 'obj_2.png', 'obj_3.png', 'obj_4.png');\nlet info = createSprite('info.png');\nlet target = createSprite('target.png');\nlet board = createSprite('board.png');\nlet level = 0;\n\ntarget.scale = 0.5;\n\nplayer.x -= 50; //之後改素材取代\nplayer.y -= 30; //之後改素材取代\n\nball.direction = Math.random()*360;\nball.stepForward(1000);\nball.direction += 180;\ncreateSound('bgm.mp3', true);\n\nfunction gameloop () {\n if (info.hidden) {\n ball.stepForward(5 + level/3);\n }\n\n if (ball.touched(player)) {\n player.costumeId = 1;\n setBackdrop(\"bg_1.png\");\n stop();\n }\n\n drawText(level, 160, 40, 'black', 50);\n\n target.x = cursor.x;\n target.y = cursor.y;\n \n if (target.touched(ball) \u0026\u0026 cursor.isDown) {\n level += 1;\n let fake = createSprite('obj_0.png', 'obj_1.png', 'obj_2.png', 'obj_3.png', 'obj_4.png');\n fake.moveTo(ball);\n fake.costumeId = ball.costumeId;\n fake.direction = ball.direction;\n fake.opacity = 0.5;\n \n ball.moveTo(600, 450);\n ball.direction = Math.random()*360;\n ball.stepForward(Math.random() * 300 + 1000);\n ball.direction += 180;\n ball.costumeId = Math.floor(Math.random() * 5);\n \n createSound('fired.mp3');\n }\n}\n\nfunction startGame () {\n info.hidden = true;\n}\n\non('click', startGame)\nforever(gameloop)","created_at":"2021-02-22T10:21:03.863+08:00","updated_at":"2021-02-22T14:52:21.573+08:00","name":"守護叩叮演唱會","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/230643/75bf46124c4c227ef5cec903b3d67114.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":333,"hashid":"vngsyreww","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4136523,"file_name":"player_b.png","project_id":230643,"asset_id":319833,"created_at":"2021-02-22T11:11:12.313+08:00","updated_at":"2021-02-22T11:11:12.313+08:00"},{"id":4136620,"file_name":"board.png","project_id":230643,"asset_id":319853,"created_at":"2021-02-22T14:52:10.913+08:00","updated_at":"2021-02-22T14:52:10.913+08:00"},{"id":4136557,"file_name":"effect.mp3","project_id":230643,"asset_id":319837,"created_at":"2021-02-22T11:23:13.331+08:00","updated_at":"2021-02-22T11:23:13.331+08:00"},{"id":4136573,"file_name":"obj_0.png","project_id":230643,"asset_id":319849,"created_at":"2021-02-22T12:45:29.098+08:00","updated_at":"2021-02-22T12:45:29.098+08:00"},{"id":4136558,"file_name":"info.png","project_id":230643,"asset_id":319838,"created_at":"2021-02-22T11:34:37.586+08:00","updated_at":"2021-02-22T11:34:37.586+08:00"},{"id":4136560,"file_name":"bg_1.png","project_id":230643,"asset_id":319839,"created_at":"2021-02-22T11:48:55.356+08:00","updated_at":"2021-02-22T11:48:55.356+08:00"},{"id":4136567,"file_name":"player_o.png","project_id":230643,"asset_id":319835,"created_at":"2021-02-22T12:37:30.902+08:00","updated_at":"2021-02-22T12:37:47.112+08:00"},{"id":4136514,"file_name":"bg_0.png","project_id":230643,"asset_id":319829,"created_at":"2021-02-22T11:00:33.017+08:00","updated_at":"2021-02-22T11:00:33.017+08:00"},{"id":4136568,"file_name":"target.png","project_id":230643,"asset_id":251338,"created_at":"2021-02-22T12:41:26.742+08:00","updated_at":"2021-02-22T12:41:26.742+08:00"},{"id":4136517,"file_name":"bgm.mp3","project_id":230643,"asset_id":319831,"created_at":"2021-02-22T11:06:15.644+08:00","updated_at":"2021-02-22T11:06:15.644+08:00"},{"id":4136569,"file_name":"obj_4.png","project_id":230643,"asset_id":319845,"created_at":"2021-02-22T12:45:27.843+08:00","updated_at":"2021-02-22T12:45:27.843+08:00"},{"id":4136570,"file_name":"obj_3.png","project_id":230643,"asset_id":319846,"created_at":"2021-02-22T12:45:27.845+08:00","updated_at":"2021-02-22T12:45:27.845+08:00"},{"id":4136571,"file_name":"obj_2.png","project_id":230643,"asset_id":319847,"created_at":"2021-02-22T12:45:28.482+08:00","updated_at":"2021-02-22T12:45:28.482+08:00"},{"id":4136572,"file_name":"obj_1.png","project_id":230643,"asset_id":319848,"created_at":"2021-02-22T12:45:28.484+08:00","updated_at":"2021-02-22T12:45:28.484+08:00"},{"id":4136574,"file_name":"fired.mp3","project_id":230643,"asset_id":280214,"created_at":"2021-02-22T12:48:36.555+08:00","updated_at":"2021-02-22T12:48:36.555+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦