{"id":162468,"student_id":16,"content":"var bg_1 = createSprite('bg_1.png');\nvar bg_2 = createSprite('bg_2.png');\nvar target = createSprite('target.png');\nvar reward = createSprite('r0.png','r1.png','r2.png','r3.png','r4.png','r5.png','r6.png','r7.png','r8.png','r9.png','r10.png');\nvar number = createSprite('n0.png','n1.png','n2.png','n3.png','n4.png','n5.png');\nvar clock = 0;\nvar scores = 0;\nvar balloons = [];\nvar endTime = Date.now() + 15000;\n\nnumber.opacity = 0.7;\n\nbg_1.layer = 1;\nnumber.layer = 2;\ntarget.layer = 3;\nreward.layer = 4;\nreward.hidden = true;\n\ntarget.scale = 0.75;\n\nforever(loop);\n\nfunction loop () {\n var time = Math.floor((endTime - Date.now())/1000);\n print(Math.floor(scores), 60, 20, 'white', 40);\n print(time + '秒', 220, 20, 'white', 40);\n\n target.x = cursor.x;\n target.y = cursor.y;\n clock++;\n\n if (clock % 10 == 0) {\n var b = createSprite('a.png', 'b.png', 'c.png', 'd.png', 'e.png', 'g.png', 'f.png');\n var rand = Math.random();\n if (rand \u003c 0.3) b.costumeId = 0;\n else if (rand \u003c 0.6) b.costumeId = 1;\n else if (rand \u003c 0.7) b.costumeId = 2;\n else if (rand \u003c 0.8) b.costumeId = 3;\n else if (rand \u003c 0.9) b.costumeId = 4;\n else if (rand \u003c 0.95) b.costumeId = 5;\n else b.costumeId = 6;\n b.y = 800;\n b.x = Math.random()*1000 + 100;\n balloons.push(b);\n } \n \n for (var i = 0; i \u003c balloons.length; i++) {\n var b = balloons[i];\n if (b.costumeId == 0) b.y -= 3;\n if (b.costumeId == 1) b.y -= 5;\n if (b.costumeId == 2) b.y -= 7;\n if (b.costumeId == 3) b.y -= 8;\n if (b.costumeId == 4) b.y -= 8;\n if (b.costumeId == 5) b.y -= 7;\n if (b.costumeId == 6) b.y -= 6;\n if (cursor.isDown \u0026\u0026 b.touched(cursor)) {\n if (b.costumeId == 0) scores += 1;\n if (b.costumeId == 1) scores += 10;\n if (b.costumeId == 2) scores += 5;\n if (b.costumeId == 3) scores *= 2;\n if (b.costumeId == 4) scores /= 2;\n if (b.costumeId == 5) endTime += 3000;\n if (b.costumeId == 6) endTime = Date.now();\n b.destroy();\n }\n }\n number.hidden = time \u003e 5;\n if (time == 5) number.costumeId = 5;\n if (time == 4) number.costumeId = 4;\n if (time == 3) number.costumeId = 3;\n if (time == 2) number.costumeId = 2;\n if (time == 1) number.costumeId = 1;\n if (time == 0) number.costumeId = 0;\n if (time \u003c 0) {\n reward.hidden = false;\n if (scores \u003e 10000000000) reward.costumeId = 0;\n else if (scores \u003e 1000000000) reward.costumeId = 1;\n else if (scores \u003e 100000000) reward.costumeId = 2;\n else if (scores \u003e 10000000) reward.costumeId = 3;\n else if (scores \u003e 1000000) reward.costumeId = 4;\n else if (scores \u003e 100000) reward.costumeId = 5;\n else if (scores \u003e 10000) reward.costumeId = 6;\n else if (scores \u003e 1000) reward.costumeId = 7;\n else if (scores \u003e 100) reward.costumeId = 8;\n else if (scores \u003e 10) reward.costumeId = 9;\n else reward.costumeId = 10;\n stop();\n }\n}","created_at":"2020-07-05T11:25:17.693+08:00","updated_at":"2020-07-05T11:40:23.540+08:00","name":"射氣球_概念版 副本","language":"javascript","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/162468/045c035442354ce645498cf4bfb7f7fd.jpg"},"parent_id":11102,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":90,"hashid":"vngsz8j4","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2826629,"file_name":"r10.png","project_id":162468,"asset_id":199879,"created_at":"2020-07-05T11:25:17.700+08:00","updated_at":"2020-07-05T11:25:17.700+08:00"},{"id":2826630,"file_name":"n5.png","project_id":162468,"asset_id":199877,"created_at":"2020-07-05T11:25:17.702+08:00","updated_at":"2020-07-05T11:25:17.702+08:00"},{"id":2826631,"file_name":"n4.png","project_id":162468,"asset_id":199876,"created_at":"2020-07-05T11:25:17.703+08:00","updated_at":"2020-07-05T11:25:17.703+08:00"},{"id":2826632,"file_name":"n3.png","project_id":162468,"asset_id":199875,"created_at":"2020-07-05T11:25:17.703+08:00","updated_at":"2020-07-05T11:25:17.703+08:00"},{"id":2826633,"file_name":"n2.png","project_id":162468,"asset_id":199874,"created_at":"2020-07-05T11:25:17.704+08:00","updated_at":"2020-07-05T11:25:17.704+08:00"},{"id":2826634,"file_name":"n1.png","project_id":162468,"asset_id":199873,"created_at":"2020-07-05T11:25:17.705+08:00","updated_at":"2020-07-05T11:25:17.705+08:00"},{"id":2826635,"file_name":"n0.png","project_id":162468,"asset_id":199872,"created_at":"2020-07-05T11:25:17.706+08:00","updated_at":"2020-07-05T11:25:17.706+08:00"},{"id":2826636,"file_name":"target.png","project_id":162468,"asset_id":199868,"created_at":"2020-07-05T11:25:17.707+08:00","updated_at":"2020-07-05T11:25:17.707+08:00"},{"id":2826637,"file_name":"r9.png","project_id":162468,"asset_id":199866,"created_at":"2020-07-05T11:25:17.708+08:00","updated_at":"2020-07-05T11:25:17.708+08:00"},{"id":2826638,"file_name":"r8.png","project_id":162468,"asset_id":199865,"created_at":"2020-07-05T11:25:17.709+08:00","updated_at":"2020-07-05T11:25:17.709+08:00"},{"id":2826639,"file_name":"r7.png","project_id":162468,"asset_id":199864,"created_at":"2020-07-05T11:25:17.710+08:00","updated_at":"2020-07-05T11:25:17.710+08:00"},{"id":2826640,"file_name":"r6.png","project_id":162468,"asset_id":199863,"created_at":"2020-07-05T11:25:17.711+08:00","updated_at":"2020-07-05T11:25:17.711+08:00"},{"id":2826641,"file_name":"r5.png","project_id":162468,"asset_id":199862,"created_at":"2020-07-05T11:25:17.712+08:00","updated_at":"2020-07-05T11:25:17.712+08:00"},{"id":2826642,"file_name":"r4.png","project_id":162468,"asset_id":199861,"created_at":"2020-07-05T11:25:17.713+08:00","updated_at":"2020-07-05T11:25:17.713+08:00"},{"id":2826643,"file_name":"r3.png","project_id":162468,"asset_id":199860,"created_at":"2020-07-05T11:25:17.713+08:00","updated_at":"2020-07-05T11:25:17.713+08:00"},{"id":2826644,"file_name":"r2.png","project_id":162468,"asset_id":199859,"created_at":"2020-07-05T11:25:17.714+08:00","updated_at":"2020-07-05T11:25:17.714+08:00"},{"id":2826645,"file_name":"r1.png","project_id":162468,"asset_id":199858,"created_at":"2020-07-05T11:25:17.715+08:00","updated_at":"2020-07-05T11:25:17.715+08:00"},{"id":2826646,"file_name":"r0.png","project_id":162468,"asset_id":199857,"created_at":"2020-07-05T11:25:17.716+08:00","updated_at":"2020-07-05T11:25:17.716+08:00"},{"id":2826647,"file_name":"a.png","project_id":162468,"asset_id":199819,"created_at":"2020-07-05T11:25:17.717+08:00","updated_at":"2020-07-05T11:25:17.717+08:00"},{"id":2826648,"file_name":"g.png","project_id":162468,"asset_id":199810,"created_at":"2020-07-05T11:25:17.718+08:00","updated_at":"2020-07-05T11:25:17.718+08:00"},{"id":2826649,"file_name":"f.png","project_id":162468,"asset_id":199818,"created_at":"2020-07-05T11:25:17.719+08:00","updated_at":"2020-07-05T11:25:17.719+08:00"},{"id":2826650,"file_name":"e.png","project_id":162468,"asset_id":199817,"created_at":"2020-07-05T11:25:17.720+08:00","updated_at":"2020-07-05T11:25:17.720+08:00"},{"id":2826651,"file_name":"d.png","project_id":162468,"asset_id":199816,"created_at":"2020-07-05T11:25:17.721+08:00","updated_at":"2020-07-05T11:25:17.721+08:00"},{"id":2826652,"file_name":"bg_2.png","project_id":162468,"asset_id":199815,"created_at":"2020-07-05T11:25:17.722+08:00","updated_at":"2020-07-05T11:25:17.722+08:00"},{"id":2826653,"file_name":"bg_1.png","project_id":162468,"asset_id":199814,"created_at":"2020-07-05T11:25:17.723+08:00","updated_at":"2020-07-05T11:25:17.723+08:00"},{"id":2826654,"file_name":"c.png","project_id":162468,"asset_id":198397,"created_at":"2020-07-05T11:25:17.724+08:00","updated_at":"2020-07-05T11:25:17.724+08:00"},{"id":2826655,"file_name":"b.png","project_id":162468,"asset_id":198394,"created_at":"2020-07-05T11:25:17.725+08:00","updated_at":"2020-07-05T11:25:17.725+08:00"},{"id":2826656,"file_name":"pointer.png","project_id":162468,"asset_id":198063,"created_at":"2020-07-05T11:25:17.726+08:00","updated_at":"2020-07-05T11:25:17.726+08:00"},{"id":2826657,"file_name":"circle.png","project_id":162468,"asset_id":198061,"created_at":"2020-07-05T11:25:17.727+08:00","updated_at":"2020-07-05T11:25:17.727+08:00"},{"id":2826658,"file_name":"shot.mp3","project_id":162468,"asset_id":172349,"created_at":"2020-07-05T11:25:17.728+08:00","updated_at":"2020-07-05T11:25:17.728+08:00"},{"id":2826659,"file_name":"bgm.mp3","project_id":162468,"asset_id":113696,"created_at":"2020-07-05T11:25:17.730+08:00","updated_at":"2020-07-05T11:25:17.730+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦