{"id":129518,"student_id":10,"content":"setBackdrop('bg.png');\n\nvar maze = createSprite('1.png', '2.png', '3.png', '4.png', 'gameover.png');\nvar wheel = createSprite('wheel.png');\nvar t1 = createSprite('p1.png');\nvar t2 = createSprite('p2.png');\nvar t3 = createSprite('p3.png');\nvar t4 = createSprite('p4.png');\nvar player = createSprite('player.png');\n\nmaze.scale = 1.14;\nwheel.scale = 1.14;\nmaze.costumeId = 2;\n\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 wheel.hidden = true;\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(50, 850);\n // }\n // if (maze.costumeId == 3) {\n // player.moveTo(1150, 50);\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-03-02T12:23:13.269+08:00","updated_at":"2020-03-02T16:32:36.181+08:00","name":"電流急急棒 副本","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/129518/d522bc430fbfc2cf92367a366badcbea.jpg"},"parent_id":129391,"plugin":"Game.set({\n width: 1200,\n height: 900,\n})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":260,"hashid":"36ys96nk","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2223896,"file_name":"3.png","project_id":129518,"asset_id":191735,"created_at":"2020-03-02T12:24:24.838+08:00","updated_at":"2020-03-02T12:24:24.838+08:00"},{"id":2223897,"file_name":"2.png","project_id":129518,"asset_id":191736,"created_at":"2020-03-02T12:24:28.990+08:00","updated_at":"2020-03-02T12:24:28.990+08:00"},{"id":2223898,"file_name":"1.png","project_id":129518,"asset_id":191737,"created_at":"2020-03-02T12:24:30.411+08:00","updated_at":"2020-03-02T12:24:30.411+08:00"},{"id":2223895,"file_name":"4.png","project_id":129518,"asset_id":191734,"created_at":"2020-03-02T12:24:23.518+08:00","updated_at":"2020-03-02T12:24:23.518+08:00"},{"id":2223881,"file_name":"player.png","project_id":129518,"asset_id":191733,"created_at":"2020-03-02T12:23:13.280+08:00","updated_at":"2020-03-02T12:23:13.280+08:00"},{"id":2223882,"file_name":"wheel.png","project_id":129518,"asset_id":191732,"created_at":"2020-03-02T12:23:13.282+08:00","updated_at":"2020-03-02T12:23:13.282+08:00"},{"id":2223883,"file_name":"gameover.png","project_id":129518,"asset_id":189062,"created_at":"2020-03-02T12:23:13.283+08:00","updated_at":"2020-03-02T12:23:13.283+08:00"},{"id":2223884,"file_name":"p4.png","project_id":129518,"asset_id":191729,"created_at":"2020-03-02T12:23:13.285+08:00","updated_at":"2020-03-02T12:23:13.285+08:00"},{"id":2223885,"file_name":"p3.png","project_id":129518,"asset_id":191728,"created_at":"2020-03-02T12:23:13.286+08:00","updated_at":"2020-03-02T12:23:13.286+08:00"},{"id":2223886,"file_name":"p2.png","project_id":129518,"asset_id":191727,"created_at":"2020-03-02T12:23:13.288+08:00","updated_at":"2020-03-02T12:23:13.288+08:00"},{"id":2223887,"file_name":"p1.png","project_id":129518,"asset_id":191726,"created_at":"2020-03-02T12:23:13.290+08:00","updated_at":"2020-03-02T12:23:13.290+08:00"},{"id":2223888,"file_name":"bg.png","project_id":129518,"asset_id":191425,"created_at":"2020-03-02T12:23:13.291+08:00","updated_at":"2020-03-02T12:23:13.291+08:00"},{"id":2223893,"file_name":"bgm.mp3","project_id":129518,"asset_id":188533,"created_at":"2020-03-02T12:23:13.298+08:00","updated_at":"2020-03-02T12:23:13.298+08:00"},{"id":2223894,"file_name":"hit.ogg","project_id":129518,"asset_id":188534,"created_at":"2020-03-02T12:23:13.299+08:00","updated_at":"2020-03-02T12:23:13.299+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦