{"id":119324,"student_id":10,"content":"var maze = createSprite('1.png', '2.png', '3.png', '4.png', '5.png');\nvar wheel = createSprite('wheel.png');\nvar t1 = createSprite('yellow.png');\nvar t2 = createSprite('red.png');\nvar t3 = createSprite('blue.png');\nvar t4 = createSprite('dark.png');\nvar player = createSprite('player.png');\n\nt1.moveTo(0, 0);\nt2.moveTo(1200, 900);\nt3.moveTo(0, 900);\nt4.moveTo(1200, 0);\nplayer.moveTo(50, 50);\n\nvar active = false;\nvar timer = 0;\n\ncreateSound('bgm.mp3');\n\nforever(loop);\n\nfunction loop () {\n\n wheel.direction = wheel.direction + 1;\n\n if (active == true) {\n player.x = cursor.x;\n player.y = cursor.y;\n timer++;\n }\n if (player.touched(cursor) == true) {\n active = true;\n }\n if (player.touched(t2) == true) {\n maze.costumeId = 1;\n }\n if (player.touched(t3) == true) {\n maze.costumeId = 2;\n }\n if (player.touched(t4) == true) {\n maze.costumeId = 3;\n }\n if (player.touched(t1) == true \u0026\u0026 maze.costumeId == 3) {\n maze.costumeId = 4;\n stop();\n }\n if (player.touched(maze) == true || player.touched(wheel) == true) {\n active = false;\n if (maze.costumeId == 0) {\n player.moveTo(50, 50);\n }\n if (maze.costumeId == 1) {\n player.moveTo(1150, 850);\n }\n if (maze.costumeId == 2) {\n player.moveTo(150, 850);\n }\n if (maze.costumeId == 3) {\n player.moveTo(1150, 150);\n }\n createSound('hit.ogg');\n }\n\n var sec = Math.floor(timer/60);\n print('花費時間' + sec + '秒', 500, 30, 'white', 30, 'Comic Sans MS');\n}\n\n","created_at":"2020-01-10T15:55:26.424+08:00","updated_at":"2020-03-06T11:07:18.931+08:00","name":"逃離洞窟","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/119324/415ff6c7d0d564174a00b6755fb8ee5a.jpg"},"parent_id":2,"plugin":"Game.set({\n width: 1200,\n height: 900,\n})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":299,"hashid":"rdvsr9r4","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2183261,"file_name":"hit.ogg","project_id":119324,"asset_id":188534,"created_at":"2020-02-19T16:08:14.244+08:00","updated_at":"2020-02-24T11:54:17.748+08:00"},{"id":2183252,"file_name":"player.png","project_id":119324,"asset_id":188527,"created_at":"2020-02-19T15:26:09.277+08:00","updated_at":"2020-02-19T15:26:12.913+08:00"},{"id":2183260,"file_name":"bgm.mp3","project_id":119324,"asset_id":188533,"created_at":"2020-02-19T16:03:27.947+08:00","updated_at":"2020-02-19T16:03:27.947+08:00"},{"id":2183184,"file_name":"red.png","project_id":119324,"asset_id":188494,"created_at":"2020-02-19T11:46:39.681+08:00","updated_at":"2020-02-19T11:46:39.681+08:00"},{"id":2183185,"file_name":"yellow.png","project_id":119324,"asset_id":188495,"created_at":"2020-02-19T11:46:39.683+08:00","updated_at":"2020-02-19T11:46:39.683+08:00"},{"id":2183180,"file_name":"3.png","project_id":119324,"asset_id":188490,"created_at":"2020-02-19T11:46:39.185+08:00","updated_at":"2020-02-19T11:46:39.185+08:00"},{"id":2183181,"file_name":"4.png","project_id":119324,"asset_id":188491,"created_at":"2020-02-19T11:46:39.187+08:00","updated_at":"2020-02-19T11:46:39.187+08:00"},{"id":2183182,"file_name":"blue.png","project_id":119324,"asset_id":188492,"created_at":"2020-02-19T11:46:39.432+08:00","updated_at":"2020-02-19T11:46:39.432+08:00"},{"id":2183183,"file_name":"dark.png","project_id":119324,"asset_id":188493,"created_at":"2020-02-19T11:46:39.434+08:00","updated_at":"2020-02-19T11:46:39.434+08:00"},{"id":2182584,"file_name":"5.png","project_id":119324,"asset_id":188044,"created_at":"2020-02-18T15:25:27.216+08:00","updated_at":"2020-02-19T15:40:05.702+08:00"},{"id":2183195,"file_name":"wheel.png","project_id":119324,"asset_id":188499,"created_at":"2020-02-19T12:11:39.387+08:00","updated_at":"2020-02-19T12:11:39.387+08:00"},{"id":2222054,"file_name":"1.png","project_id":119324,"asset_id":190954,"created_at":"2020-02-26T15:45:25.061+08:00","updated_at":"2020-02-26T15:45:25.061+08:00"},{"id":2222055,"file_name":"2.png","project_id":119324,"asset_id":190955,"created_at":"2020-02-26T15:45:25.064+08:00","updated_at":"2020-02-26T15:45:25.064+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦