From 0bd45cb2cae3af05adaad3f38d129bb67c3e0ec0 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 18 May 2022 18:50:12 +0200 Subject: Add Kartik --- kartik/.DS_Store | Bin 0 -> 6148 bytes kartik/LICENSE | 674 +++++ kartik/README.md | 29 + kartik/app.js | 434 +++ kartik/crash/artwork.jpg | Bin 0 -> 83347 bytes kartik/crash/client.js | 140 + kartik/crash/crash.html | 72 + kartik/crash/wrapper.js | 39 + kartik/discord/client.js | 40 + kartik/game.svg | 1 + kartik/icons/back.svg | 1 + kartik/icons/credits.svg | 1 + kartik/icons/exit.svg | 1 + kartik/icons/gamepad.svg | 1 + kartik/icons/language.svg | 1 + kartik/icons/local.svg | 1 + kartik/icons/music.svg | 1 + kartik/icons/online.svg | 1 + kartik/icons/scale.svg | 1 + kartik/icons/scenario.svg | 1 + kartik/icons/settings.svg | 1 + kartik/icons/singleplayer.svg | 1 + kartik/icons/stats.svg | 1 + kartik/index.html | 143 + kartik/lang/de.json | 237 ++ kartik/lang/en.json | 237 ++ kartik/lang/es.json | 237 ++ kartik/lang/fr.json | 237 ++ kartik/lang/it.json | 237 ++ kartik/lang/jp.json | 237 ++ kartik/lang/languages.json | 12 + kartik/lang/loader.js | 28 + kartik/lang/nl.json | 237 ++ kartik/lang/preload.js | 2 + kartik/lang/pt.json | 237 ++ kartik/lang/ru.json | 237 ++ kartik/lang/zh.json | 237 ++ kartik/logo/full-alt.png | Bin 0 -> 10231 bytes kartik/logo/full.png | Bin 0 -> 10682 bytes kartik/logo/iridium.png | Bin 0 -> 1443 bytes kartik/logo/itch/background.jpg | Bin 0 -> 58578 bytes kartik/logo/itch/banner.jpg | Bin 0 -> 116153 bytes kartik/logo/itch/cover.jpg | Bin 0 -> 71771 bytes kartik/logo/loader.svg | 52 + kartik/logo/logo-beta.png | Bin 0 -> 26904 bytes kartik/logo/logo-eap.png | Bin 0 -> 27078 bytes kartik/logo/logo-git.png | Bin 0 -> 26649 bytes kartik/logo/logo-nightly.png | Bin 0 -> 24576 bytes kartik/logo/logo.ico | Bin 0 -> 17147 bytes kartik/logo/logo.png | Bin 0 -> 29748 bytes kartik/logo/mod.png | Bin 0 -> 11113 bytes kartik/logo/newloader.svg | 1914 +++++++++++++ kartik/logo/old/logo-beta.png | Bin 0 -> 17378 bytes kartik/logo/old/logo-git.png | Bin 0 -> 17290 bytes kartik/logo/old/logo-nightly.png | Bin 0 -> 17141 bytes kartik/logo/old/logo.png | Bin 0 -> 34536 bytes kartik/logo/server.png | Bin 0 -> 25011 bytes kartik/logo/vendor.png | Bin 0 -> 62903 bytes kartik/modding/compiler.js | 17 + kartik/modding/hooks.js | 261 ++ kartik/modding/parser.js | 278 ++ kartik/modding/resources.js | 65 + kartik/music/credits.mp3 | Bin 0 -> 3298076 bytes kartik/music/game1.mp3 | Bin 0 -> 1524958 bytes kartik/music/game2.mp3 | Bin 0 -> 1546510 bytes kartik/music/game3.mp3 | Bin 0 -> 2177021 bytes kartik/music/game4.mp3 | Bin 0 -> 3585683 bytes kartik/music/game5.mp3 | Bin 0 -> 2454508 bytes kartik/music/game6.mp3 | Bin 0 -> 2082318 bytes kartik/music/game7.mp3 | Bin 0 -> 2620791 bytes kartik/music/game8.mp3 | Bin 0 -> 2552427 bytes kartik/music/game9.mp3 | Bin 0 -> 3094697 bytes kartik/music/prepare.mp3 | Bin 0 -> 2880827 bytes kartik/music/start.mp3 | Bin 0 -> 159072 bytes kartik/music/title.mp3 | Bin 0 -> 2826075 bytes kartik/music/win.mp3 | Bin 0 -> 5123304 bytes kartik/nest/abi.js | 76 + kartik/online/global.js | 374 +++ kartik/online/levels.txt | 200 ++ kartik/online/server.json | 4 + kartik/package-lock.json | 2214 +++++++++++++++ kartik/package.json | 26 + kartik/race/_archived/furry.html | 115 + kartik/race/_archived/furry.png | Bin 0 -> 29980 bytes kartik/race/_archived/triangle.html | 127 + kartik/race/_archived/triangle.png | Bin 0 -> 43576 bytes kartik/race/cars/car0.js | 216 ++ kartik/race/cars/car1.js | 239 ++ kartik/race/cars/car1ai.js | 160 ++ kartik/race/cars/keymap.js | 174 ++ kartik/race/circuits/main.html | 115 + kartik/race/circuits/main.png | Bin 0 -> 51835 bytes kartik/race/circuits/snowy.html | 115 + kartik/race/circuits/snowy.png | Bin 0 -> 36850 bytes kartik/race/circuits/water.html | 133 + kartik/race/circuits/water.png | Bin 0 -> 42954 bytes kartik/race/models/alpspin_by_redman_blue.png | Bin 0 -> 8734 bytes kartik/race/models/alpspin_by_redman_green.png | Bin 0 -> 9912 bytes kartik/race/models/alpspin_by_redman_orange.png | Bin 0 -> 9946 bytes kartik/race/models/alpspin_by_redman_red.png | Bin 0 -> 9866 bytes kartik/race/models/alpspin_by_redman_turquoise.png | Bin 0 -> 10062 bytes kartik/race/models/alpspin_by_redman_violet.png | Bin 0 -> 10062 bytes kartik/race/models/alpspin_by_redman_yellow.png | Bin 0 -> 9976 bytes kartik/race/models/argenquirie_by_redman.png | Bin 0 -> 29978 bytes kartik/race/models/argenquiriedx_by_redman.png | Bin 0 -> 28862 bytes kartik/race/models/base_by_minteck_blue.png | Bin 0 -> 20410 bytes kartik/race/models/base_by_minteck_green.png | Bin 0 -> 20670 bytes kartik/race/models/base_by_minteck_orange.png | Bin 0 -> 20605 bytes kartik/race/models/base_by_minteck_red.png | Bin 0 -> 20647 bytes kartik/race/models/base_by_minteck_turquoise.png | Bin 0 -> 20736 bytes kartik/race/models/base_by_minteck_violet.png | Bin 0 -> 20457 bytes kartik/race/models/base_by_minteck_yellow.png | Bin 0 -> 20945 bytes kartik/race/models/pride_month_2021.png | Bin 0 -> 56178 bytes kartik/race/models/spagetti11_by_redman.png | Bin 0 -> 53823 bytes kartik/race/models/spagetti11_by_redman_blue.png | Bin 0 -> 57439 bytes kartik/race/models/spagetti11_by_redman_green.png | Bin 0 -> 57720 bytes kartik/race/models/spagetti11_by_redman_orange.png | Bin 0 -> 57399 bytes .../race/models/spagetti11_by_redman_turquoise.png | Bin 0 -> 58713 bytes kartik/race/models/spagetti11_by_redman_violet.png | Bin 0 -> 57717 bytes kartik/race/models/spagetti11_by_redman_yellow.png | Bin 0 -> 57958 bytes kartik/race/oil.png | Bin 0 -> 55418 bytes kartik/race/pause.js | 82 + kartik/resources.json | 121 + kartik/runtime/kartik-crash-mac.sh | 2 + kartik/runtime/kartik-crash.bat | 2 + kartik/runtime/kartik-crash.sh | 2 + kartik/runtime/kartik-debug.bat | 2 + kartik/runtime/kartik-debug.sh | 2 + kartik/runtime/kartik-launcher.bat | 2 + kartik/runtime/kartik-launcher.sed | 37 + kartik/runtime/kartik-launcher.sh | 3 + kartik/runtime/kartik-mitigation-mac.sh | 2 + kartik/runtime/kartik-mitigation.bat | 2 + kartik/runtime/kartik-mitigation.sh | 2 + kartik/scenario/character/angry.png | Bin 0 -> 27254 bytes kartik/scenario/character/happy.png | Bin 0 -> 23967 bytes kartik/scenario/character/neutral.png | Bin 0 -> 32075 bytes kartik/scenario/character/sad.png | Bin 0 -> 16073 bytes kartik/scenario/client.js | 1 + kartik/scenario/voice/de/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/de/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/de/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/de/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/de/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/de/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/de/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/de/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/de/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/de/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/de/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/de/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/de/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/de/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/de/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/de/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/de/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/de/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/de/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/de/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/de/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/de/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/de/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/de/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/de/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/de/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/de/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/de/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/de/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/de/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/de/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/de/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/de/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/de/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/de/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/de/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/de/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/de/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/de/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/en/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/en/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/en/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/en/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/en/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/en/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/en/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/en/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/en/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/en/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/en/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/en/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/en/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/en/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/en/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/en/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/en/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/en/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/en/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/en/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/en/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/en/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/en/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/en/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/en/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/en/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/en/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/en/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/en/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/en/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/en/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/en/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/en/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/en/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/en/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/en/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/en/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/en/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/en/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/es/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/es/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/es/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/es/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/es/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/es/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/es/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/es/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/es/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/es/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/es/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/es/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/es/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/es/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/es/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/es/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/es/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/es/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/es/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/es/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/es/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/es/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/es/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/es/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/es/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/es/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/es/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/es/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/es/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/es/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/es/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/es/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/es/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/es/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/es/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/es/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/es/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/es/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/es/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/fr/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/fr/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/fr/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/fr/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/fr/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/fr/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/fr/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/fr/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/fr/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/fr/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/fr/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/fr/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/fr/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/fr/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/fr/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/fr/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/fr/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/fr/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/fr/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/fr/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/fr/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/fr/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/fr/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/fr/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/fr/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/fr/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/fr/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/fr/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/fr/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/fr/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/fr/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/fr/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/fr/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/fr/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/fr/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/fr/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/fr/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/fr/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/fr/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/jp/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/jp/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/jp/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/jp/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/jp/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/jp/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/jp/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/jp/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/jp/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/jp/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/jp/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/jp/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/jp/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/jp/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/jp/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/jp/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/jp/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/jp/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/jp/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/jp/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/jp/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/jp/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/jp/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/jp/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/jp/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/jp/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/jp/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/jp/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/jp/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/jp/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/jp/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/jp/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/jp/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/jp/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/jp/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/jp/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/jp/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/jp/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/jp/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/nl/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/nl/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/nl/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/nl/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/nl/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/nl/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/nl/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/nl/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/nl/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/nl/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/nl/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/nl/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/nl/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/nl/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/nl/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/nl/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/nl/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/nl/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/nl/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/nl/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/nl/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/nl/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/nl/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/nl/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/nl/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/nl/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/nl/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/nl/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/nl/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/nl/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/nl/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/nl/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/nl/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/nl/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/nl/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/nl/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/nl/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/nl/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/nl/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/ru/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/ru/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/ru/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/ru/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/ru/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/ru/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/ru/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/ru/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/ru/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/ru/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/ru/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/ru/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/ru/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/ru/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/ru/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/ru/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/ru/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/ru/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/ru/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/ru/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/ru/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/ru/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/ru/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/ru/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/ru/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/ru/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/ru/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/ru/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/ru/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/ru/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/ru/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/ru/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/ru/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/ru/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/ru/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/ru/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/ru/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/ru/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/ru/won24.mp3 | Bin 0 -> 7750 bytes kartik/scenario/voice/zh/ahead10.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/zh/ahead11.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/zh/ahead12.mp3 | Bin 0 -> 8377 bytes kartik/scenario/voice/zh/ahead13.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/zh/ahead14.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/zh/ahead20.mp3 | Bin 0 -> 6496 bytes kartik/scenario/voice/zh/ahead21.mp3 | Bin 0 -> 6914 bytes kartik/scenario/voice/zh/ahead22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/zh/ahead23.mp3 | Bin 0 -> 4406 bytes kartik/scenario/voice/zh/ahead24.mp3 | Bin 0 -> 6705 bytes kartik/scenario/voice/zh/intro0.mp3 | Bin 0 -> 13183 bytes kartik/scenario/voice/zh/intro1.mp3 | Bin 0 -> 15691 bytes kartik/scenario/voice/zh/intro2.mp3 | Bin 0 -> 10467 bytes kartik/scenario/voice/zh/intro3.mp3 | Bin 0 -> 5660 bytes kartik/scenario/voice/zh/start0.mp3 | Bin 0 -> 12138 bytes kartik/scenario/voice/zh/start1.mp3 | Bin 0 -> 16736 bytes kartik/scenario/voice/zh/start2.mp3 | Bin 0 -> 8586 bytes kartik/scenario/voice/zh/start3.mp3 | Bin 0 -> 7123 bytes kartik/scenario/voice/zh/start4.mp3 | Bin 0 -> 9213 bytes kartik/scenario/voice/zh/start5.mp3 | Bin 0 -> 10884 bytes kartik/scenario/voice/zh/wall10.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/zh/wall11.mp3 | Bin 0 -> 11511 bytes kartik/scenario/voice/zh/wall12.mp3 | Bin 0 -> 4615 bytes kartik/scenario/voice/zh/wall13.mp3 | Bin 0 -> 8168 bytes kartik/scenario/voice/zh/wall14.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/zh/wall20.mp3 | Bin 0 -> 4197 bytes kartik/scenario/voice/zh/wall21.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/zh/wall22.mp3 | Bin 0 -> 6287 bytes kartik/scenario/voice/zh/wall23.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/zh/won10.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/zh/won11.mp3 | Bin 0 -> 5033 bytes kartik/scenario/voice/zh/won12.mp3 | Bin 0 -> 7332 bytes kartik/scenario/voice/zh/won13.mp3 | Bin 0 -> 8795 bytes kartik/scenario/voice/zh/won14.mp3 | Bin 0 -> 4824 bytes kartik/scenario/voice/zh/won20.mp3 | Bin 0 -> 6078 bytes kartik/scenario/voice/zh/won21.mp3 | Bin 0 -> 9422 bytes kartik/scenario/voice/zh/won22.mp3 | Bin 0 -> 5242 bytes kartik/scenario/voice/zh/won23.mp3 | Bin 0 -> 10049 bytes kartik/scenario/voice/zh/won24.mp3 | Bin 0 -> 7750 bytes kartik/sfx/click.mp3 | Bin 0 -> 8641 bytes kartik/sfx/crash.mp3 | Bin 0 -> 13194 bytes kartik/sfx/gamecrash.wav | Bin 0 -> 51846 bytes kartik/sfx/intro.mp3 | Bin 0 -> 106606 bytes kartik/sfx/last.mp3 | Bin 0 -> 26670 bytes kartik/sfx/menu.mp3 | Bin 0 -> 7561 bytes kartik/sfx/newintro.mp3 | Bin 0 -> 47762 bytes kartik/sfx/notification.mp3 | Bin 0 -> 11425 bytes kartik/sfx/pass.mp3 | Bin 0 -> 22309 bytes kartik/sfx/pause.mp3 | Bin 0 -> 14353 bytes kartik/sfx/sfx.js | 60 + kartik/sfx/win.mp3 | Bin 0 -> 24337 bytes kartik/signing/sign.js | 33 + kartik/typescript/builder.js | 50 + kartik/typescript/engine-darwin | Bin 0 -> 76348048 bytes kartik/typescript/engine-linux | Bin 0 -> 74419096 bytes kartik/typescript/engine-win32.exe | Bin 0 -> 57060488 bytes kartik/typescript/interface.ts | 23 + kartik/typescript/mainloader.js | 10 + kartik/typescript/preloader.js | 5 + kartik/views/.DS_Store | Bin 0 -> 8196 bytes kartik/views/background.jpg | Bin 0 -> 28626 bytes kartik/views/common/blur.css | 3 + kartik/views/common/bold.ttf | Bin 0 -> 58416 bytes kartik/views/common/compatibilityMode.css | 8 + kartik/views/common/fonts.css | 23 + kartik/views/common/index.css | 29 + kartik/views/common/light.ttf | Bin 0 -> 58584 bytes kartik/views/common/load-channel.otf | Bin 0 -> 59108 bytes kartik/views/common/load-new.ttf | Bin 0 -> 50172 bytes kartik/views/common/load-version.otf | Bin 0 -> 63240 bytes kartik/views/common/mouse.css | 3 + kartik/views/common/race.svg | 1 + kartik/views/common/regular.ttf | Bin 0 -> 58548 bytes kartik/views/credits.html | 201 ++ kartik/views/game.css | 152 ++ kartik/views/game.html | 154 ++ kartik/views/hero.svg | 3 + kartik/views/intro.css | 33 + kartik/views/intro.html | 36 + kartik/views/intro.mp4 | Bin 0 -> 317055 bytes kartik/views/load.html | 52 + kartik/views/loader.html | 46 + kartik/views/menu.css | 248 ++ kartik/views/menu.html | 109 + kartik/views/menu.jpg | Bin 0 -> 155471 bytes kartik/views/online.html | 40 + kartik/views/rain/snow.js | 666 +++++ kartik/views/script/client_fullscreen.js | 9 + kartik/views/script/core_chart.js | 74 + kartik/views/script/core_compatlayer.js | 0 kartik/views/script/core_crash.js | 15 + kartik/views/script/core_fullscreen.js | 0 kartik/views/script/core_head.js | 31 + kartik/views/script/core_music.js | 35 + kartik/views/script/core_notification.js | 12 + kartik/views/script/core_viewer.js | 33 + kartik/views/script/credits_global.js | 54 + kartik/views/script/credits_libs.js | 0 kartik/views/script/credits_music.js | 2 + kartik/views/script/credits_technical.js | 12 + kartik/views/script/game_debug.js | 138 + kartik/views/script/game_global.js | 45 + kartik/views/script/game_music.js | 8 + kartik/views/script/game_online.js | 9 + kartik/views/script/game_select.js | 131 + kartik/views/script/global_compatlayer.js | 0 kartik/views/script/global_levelsapi.js | 47 + kartik/views/script/intro_global.js | 21 + kartik/views/script/intro_media.js | 2 + kartik/views/script/intro_message.js | 7 + kartik/views/script/loader_global.js | 132 + kartik/views/script/menu_copyright.js | 5 + kartik/views/script/menu_global.js | 127 + kartik/views/script/menu_gpuinfo.js | 0 kartik/views/script/menu_login.js | 1 + kartik/views/script/menu_music.js | 5 + kartik/views/script/menu_system.js | 33 + kartik/views/script/online_play.js | 2 + kartik/views/script/settings_global.js | 104 + kartik/views/script/settings_load.js | 10 + kartik/views/script/win_global.js | 22 + kartik/views/script/win_message.js | 9 + kartik/views/script/win_music.js | 2 + kartik/views/script/win_play.js | 0 kartik/views/script/win_quit.js | 0 kartik/views/settings.html | 49 + kartik/views/splash.svg | 2831 ++++++++++++++++++++ kartik/views/stats.html | 66 + kartik/views/win.html | 40 + kartik/webinit/jquery.js | 2 + kartik/webinit/require.js | 5 + 543 files changed, 17252 insertions(+) create mode 100644 kartik/.DS_Store create mode 100755 kartik/LICENSE create mode 100755 kartik/README.md create mode 100755 kartik/app.js create mode 100755 kartik/crash/artwork.jpg create mode 100755 kartik/crash/client.js create mode 100755 kartik/crash/crash.html create mode 100755 kartik/crash/wrapper.js create mode 100755 kartik/discord/client.js create mode 100644 kartik/game.svg create mode 100755 kartik/icons/back.svg create mode 100755 kartik/icons/credits.svg create mode 100755 kartik/icons/exit.svg create mode 100755 kartik/icons/gamepad.svg create mode 100755 kartik/icons/language.svg create mode 100755 kartik/icons/local.svg create mode 100755 kartik/icons/music.svg create mode 100755 kartik/icons/online.svg create mode 100755 kartik/icons/scale.svg create mode 100755 kartik/icons/scenario.svg create mode 100755 kartik/icons/settings.svg create mode 100755 kartik/icons/singleplayer.svg create mode 100755 kartik/icons/stats.svg create mode 100755 kartik/index.html create mode 100755 kartik/lang/de.json create mode 100755 kartik/lang/en.json create mode 100755 kartik/lang/es.json create mode 100755 kartik/lang/fr.json create mode 100755 kartik/lang/it.json create mode 100755 kartik/lang/jp.json create mode 100755 kartik/lang/languages.json create mode 100755 kartik/lang/loader.js create mode 100755 kartik/lang/nl.json create mode 100755 kartik/lang/preload.js create mode 100755 kartik/lang/pt.json create mode 100755 kartik/lang/ru.json create mode 100755 kartik/lang/zh.json create mode 100755 kartik/logo/full-alt.png create mode 100755 kartik/logo/full.png create mode 100755 kartik/logo/iridium.png create mode 100755 kartik/logo/itch/background.jpg create mode 100755 kartik/logo/itch/banner.jpg create mode 100755 kartik/logo/itch/cover.jpg create mode 100755 kartik/logo/loader.svg create mode 100755 kartik/logo/logo-beta.png create mode 100755 kartik/logo/logo-eap.png create mode 100755 kartik/logo/logo-git.png create mode 100755 kartik/logo/logo-nightly.png create mode 100755 kartik/logo/logo.ico create mode 100755 kartik/logo/logo.png create mode 100755 kartik/logo/mod.png create mode 100755 kartik/logo/newloader.svg create mode 100755 kartik/logo/old/logo-beta.png create mode 100755 kartik/logo/old/logo-git.png create mode 100755 kartik/logo/old/logo-nightly.png create mode 100755 kartik/logo/old/logo.png create mode 100755 kartik/logo/server.png create mode 100755 kartik/logo/vendor.png create mode 100755 kartik/modding/compiler.js create mode 100755 kartik/modding/hooks.js create mode 100755 kartik/modding/parser.js create mode 100755 kartik/modding/resources.js create mode 100755 kartik/music/credits.mp3 create mode 100755 kartik/music/game1.mp3 create mode 100755 kartik/music/game2.mp3 create mode 100755 kartik/music/game3.mp3 create mode 100755 kartik/music/game4.mp3 create mode 100755 kartik/music/game5.mp3 create mode 100755 kartik/music/game6.mp3 create mode 100755 kartik/music/game7.mp3 create mode 100755 kartik/music/game8.mp3 create mode 100755 kartik/music/game9.mp3 create mode 100755 kartik/music/prepare.mp3 create mode 100755 kartik/music/start.mp3 create mode 100755 kartik/music/title.mp3 create mode 100755 kartik/music/win.mp3 create mode 100755 kartik/nest/abi.js create mode 100755 kartik/online/global.js create mode 100755 kartik/online/levels.txt create mode 100755 kartik/online/server.json create mode 100755 kartik/package-lock.json create mode 100755 kartik/package.json create mode 100755 kartik/race/_archived/furry.html create mode 100755 kartik/race/_archived/furry.png create mode 100755 kartik/race/_archived/triangle.html create mode 100755 kartik/race/_archived/triangle.png create mode 100755 kartik/race/cars/car0.js create mode 100755 kartik/race/cars/car1.js create mode 100755 kartik/race/cars/car1ai.js create mode 100755 kartik/race/cars/keymap.js create mode 100755 kartik/race/circuits/main.html create mode 100755 kartik/race/circuits/main.png create mode 100755 kartik/race/circuits/snowy.html create mode 100755 kartik/race/circuits/snowy.png create mode 100755 kartik/race/circuits/water.html create mode 100755 kartik/race/circuits/water.png create mode 100755 kartik/race/models/alpspin_by_redman_blue.png create mode 100755 kartik/race/models/alpspin_by_redman_green.png create mode 100755 kartik/race/models/alpspin_by_redman_orange.png create mode 100755 kartik/race/models/alpspin_by_redman_red.png create mode 100755 kartik/race/models/alpspin_by_redman_turquoise.png create mode 100755 kartik/race/models/alpspin_by_redman_violet.png create mode 100755 kartik/race/models/alpspin_by_redman_yellow.png create mode 100755 kartik/race/models/argenquirie_by_redman.png create mode 100755 kartik/race/models/argenquiriedx_by_redman.png create mode 100755 kartik/race/models/base_by_minteck_blue.png create mode 100755 kartik/race/models/base_by_minteck_green.png create mode 100755 kartik/race/models/base_by_minteck_orange.png create mode 100755 kartik/race/models/base_by_minteck_red.png create mode 100755 kartik/race/models/base_by_minteck_turquoise.png create mode 100755 kartik/race/models/base_by_minteck_violet.png create mode 100755 kartik/race/models/base_by_minteck_yellow.png create mode 100755 kartik/race/models/pride_month_2021.png create mode 100755 kartik/race/models/spagetti11_by_redman.png create mode 100755 kartik/race/models/spagetti11_by_redman_blue.png create mode 100755 kartik/race/models/spagetti11_by_redman_green.png create mode 100755 kartik/race/models/spagetti11_by_redman_orange.png create mode 100755 kartik/race/models/spagetti11_by_redman_turquoise.png create mode 100755 kartik/race/models/spagetti11_by_redman_violet.png create mode 100755 kartik/race/models/spagetti11_by_redman_yellow.png create mode 100755 kartik/race/oil.png create mode 100755 kartik/race/pause.js create mode 100644 kartik/resources.json create mode 100755 kartik/runtime/kartik-crash-mac.sh create mode 100755 kartik/runtime/kartik-crash.bat create mode 100755 kartik/runtime/kartik-crash.sh create mode 100755 kartik/runtime/kartik-debug.bat create mode 100755 kartik/runtime/kartik-debug.sh create mode 100755 kartik/runtime/kartik-launcher.bat create mode 100755 kartik/runtime/kartik-launcher.sed create mode 100755 kartik/runtime/kartik-launcher.sh create mode 100755 kartik/runtime/kartik-mitigation-mac.sh create mode 100755 kartik/runtime/kartik-mitigation.bat create mode 100755 kartik/runtime/kartik-mitigation.sh create mode 100755 kartik/scenario/character/angry.png create mode 100755 kartik/scenario/character/happy.png create mode 100755 kartik/scenario/character/neutral.png create mode 100755 kartik/scenario/character/sad.png create mode 100755 kartik/scenario/client.js create mode 100755 kartik/scenario/voice/de/ahead10.mp3 create mode 100755 kartik/scenario/voice/de/ahead11.mp3 create mode 100755 kartik/scenario/voice/de/ahead12.mp3 create mode 100755 kartik/scenario/voice/de/ahead13.mp3 create mode 100755 kartik/scenario/voice/de/ahead14.mp3 create mode 100755 kartik/scenario/voice/de/ahead20.mp3 create mode 100755 kartik/scenario/voice/de/ahead21.mp3 create mode 100755 kartik/scenario/voice/de/ahead22.mp3 create mode 100755 kartik/scenario/voice/de/ahead23.mp3 create mode 100755 kartik/scenario/voice/de/ahead24.mp3 create mode 100755 kartik/scenario/voice/de/intro0.mp3 create mode 100755 kartik/scenario/voice/de/intro1.mp3 create mode 100755 kartik/scenario/voice/de/intro2.mp3 create mode 100755 kartik/scenario/voice/de/intro3.mp3 create mode 100755 kartik/scenario/voice/de/start0.mp3 create mode 100755 kartik/scenario/voice/de/start1.mp3 create mode 100755 kartik/scenario/voice/de/start2.mp3 create mode 100755 kartik/scenario/voice/de/start3.mp3 create mode 100755 kartik/scenario/voice/de/start4.mp3 create mode 100755 kartik/scenario/voice/de/start5.mp3 create mode 100755 kartik/scenario/voice/de/wall10.mp3 create mode 100755 kartik/scenario/voice/de/wall11.mp3 create mode 100755 kartik/scenario/voice/de/wall12.mp3 create mode 100755 kartik/scenario/voice/de/wall13.mp3 create mode 100755 kartik/scenario/voice/de/wall14.mp3 create mode 100755 kartik/scenario/voice/de/wall20.mp3 create mode 100755 kartik/scenario/voice/de/wall21.mp3 create mode 100755 kartik/scenario/voice/de/wall22.mp3 create mode 100755 kartik/scenario/voice/de/wall23.mp3 create mode 100755 kartik/scenario/voice/de/won10.mp3 create mode 100755 kartik/scenario/voice/de/won11.mp3 create mode 100755 kartik/scenario/voice/de/won12.mp3 create mode 100755 kartik/scenario/voice/de/won13.mp3 create mode 100755 kartik/scenario/voice/de/won14.mp3 create mode 100755 kartik/scenario/voice/de/won20.mp3 create mode 100755 kartik/scenario/voice/de/won21.mp3 create mode 100755 kartik/scenario/voice/de/won22.mp3 create mode 100755 kartik/scenario/voice/de/won23.mp3 create mode 100755 kartik/scenario/voice/de/won24.mp3 create mode 100755 kartik/scenario/voice/en/ahead10.mp3 create mode 100755 kartik/scenario/voice/en/ahead11.mp3 create mode 100755 kartik/scenario/voice/en/ahead12.mp3 create mode 100755 kartik/scenario/voice/en/ahead13.mp3 create mode 100755 kartik/scenario/voice/en/ahead14.mp3 create mode 100755 kartik/scenario/voice/en/ahead20.mp3 create mode 100755 kartik/scenario/voice/en/ahead21.mp3 create mode 100755 kartik/scenario/voice/en/ahead22.mp3 create mode 100755 kartik/scenario/voice/en/ahead23.mp3 create mode 100755 kartik/scenario/voice/en/ahead24.mp3 create mode 100755 kartik/scenario/voice/en/intro0.mp3 create mode 100755 kartik/scenario/voice/en/intro1.mp3 create mode 100755 kartik/scenario/voice/en/intro2.mp3 create mode 100755 kartik/scenario/voice/en/intro3.mp3 create mode 100755 kartik/scenario/voice/en/start0.mp3 create mode 100755 kartik/scenario/voice/en/start1.mp3 create mode 100755 kartik/scenario/voice/en/start2.mp3 create mode 100755 kartik/scenario/voice/en/start3.mp3 create mode 100755 kartik/scenario/voice/en/start4.mp3 create mode 100755 kartik/scenario/voice/en/start5.mp3 create mode 100755 kartik/scenario/voice/en/wall10.mp3 create mode 100755 kartik/scenario/voice/en/wall11.mp3 create mode 100755 kartik/scenario/voice/en/wall12.mp3 create mode 100755 kartik/scenario/voice/en/wall13.mp3 create mode 100755 kartik/scenario/voice/en/wall14.mp3 create mode 100755 kartik/scenario/voice/en/wall20.mp3 create mode 100755 kartik/scenario/voice/en/wall21.mp3 create mode 100755 kartik/scenario/voice/en/wall22.mp3 create mode 100755 kartik/scenario/voice/en/wall23.mp3 create mode 100755 kartik/scenario/voice/en/won10.mp3 create mode 100755 kartik/scenario/voice/en/won11.mp3 create mode 100755 kartik/scenario/voice/en/won12.mp3 create mode 100755 kartik/scenario/voice/en/won13.mp3 create mode 100755 kartik/scenario/voice/en/won14.mp3 create mode 100755 kartik/scenario/voice/en/won20.mp3 create mode 100755 kartik/scenario/voice/en/won21.mp3 create mode 100755 kartik/scenario/voice/en/won22.mp3 create mode 100755 kartik/scenario/voice/en/won23.mp3 create mode 100755 kartik/scenario/voice/en/won24.mp3 create mode 100755 kartik/scenario/voice/es/ahead10.mp3 create mode 100755 kartik/scenario/voice/es/ahead11.mp3 create mode 100755 kartik/scenario/voice/es/ahead12.mp3 create mode 100755 kartik/scenario/voice/es/ahead13.mp3 create mode 100755 kartik/scenario/voice/es/ahead14.mp3 create mode 100755 kartik/scenario/voice/es/ahead20.mp3 create mode 100755 kartik/scenario/voice/es/ahead21.mp3 create mode 100755 kartik/scenario/voice/es/ahead22.mp3 create mode 100755 kartik/scenario/voice/es/ahead23.mp3 create mode 100755 kartik/scenario/voice/es/ahead24.mp3 create mode 100755 kartik/scenario/voice/es/intro0.mp3 create mode 100755 kartik/scenario/voice/es/intro1.mp3 create mode 100755 kartik/scenario/voice/es/intro2.mp3 create mode 100755 kartik/scenario/voice/es/intro3.mp3 create mode 100755 kartik/scenario/voice/es/start0.mp3 create mode 100755 kartik/scenario/voice/es/start1.mp3 create mode 100755 kartik/scenario/voice/es/start2.mp3 create mode 100755 kartik/scenario/voice/es/start3.mp3 create mode 100755 kartik/scenario/voice/es/start4.mp3 create mode 100755 kartik/scenario/voice/es/start5.mp3 create mode 100755 kartik/scenario/voice/es/wall10.mp3 create mode 100755 kartik/scenario/voice/es/wall11.mp3 create mode 100755 kartik/scenario/voice/es/wall12.mp3 create mode 100755 kartik/scenario/voice/es/wall13.mp3 create mode 100755 kartik/scenario/voice/es/wall14.mp3 create mode 100755 kartik/scenario/voice/es/wall20.mp3 create mode 100755 kartik/scenario/voice/es/wall21.mp3 create mode 100755 kartik/scenario/voice/es/wall22.mp3 create mode 100755 kartik/scenario/voice/es/wall23.mp3 create mode 100755 kartik/scenario/voice/es/won10.mp3 create mode 100755 kartik/scenario/voice/es/won11.mp3 create mode 100755 kartik/scenario/voice/es/won12.mp3 create mode 100755 kartik/scenario/voice/es/won13.mp3 create mode 100755 kartik/scenario/voice/es/won14.mp3 create mode 100755 kartik/scenario/voice/es/won20.mp3 create mode 100755 kartik/scenario/voice/es/won21.mp3 create mode 100755 kartik/scenario/voice/es/won22.mp3 create mode 100755 kartik/scenario/voice/es/won23.mp3 create mode 100755 kartik/scenario/voice/es/won24.mp3 create mode 100755 kartik/scenario/voice/fr/ahead10.mp3 create mode 100755 kartik/scenario/voice/fr/ahead11.mp3 create mode 100755 kartik/scenario/voice/fr/ahead12.mp3 create mode 100755 kartik/scenario/voice/fr/ahead13.mp3 create mode 100755 kartik/scenario/voice/fr/ahead14.mp3 create mode 100755 kartik/scenario/voice/fr/ahead20.mp3 create mode 100755 kartik/scenario/voice/fr/ahead21.mp3 create mode 100755 kartik/scenario/voice/fr/ahead22.mp3 create mode 100755 kartik/scenario/voice/fr/ahead23.mp3 create mode 100755 kartik/scenario/voice/fr/ahead24.mp3 create mode 100755 kartik/scenario/voice/fr/intro0.mp3 create mode 100755 kartik/scenario/voice/fr/intro1.mp3 create mode 100755 kartik/scenario/voice/fr/intro2.mp3 create mode 100755 kartik/scenario/voice/fr/intro3.mp3 create mode 100755 kartik/scenario/voice/fr/start0.mp3 create mode 100755 kartik/scenario/voice/fr/start1.mp3 create mode 100755 kartik/scenario/voice/fr/start2.mp3 create mode 100755 kartik/scenario/voice/fr/start3.mp3 create mode 100755 kartik/scenario/voice/fr/start4.mp3 create mode 100755 kartik/scenario/voice/fr/start5.mp3 create mode 100755 kartik/scenario/voice/fr/wall10.mp3 create mode 100755 kartik/scenario/voice/fr/wall11.mp3 create mode 100755 kartik/scenario/voice/fr/wall12.mp3 create mode 100755 kartik/scenario/voice/fr/wall13.mp3 create mode 100755 kartik/scenario/voice/fr/wall14.mp3 create mode 100755 kartik/scenario/voice/fr/wall20.mp3 create mode 100755 kartik/scenario/voice/fr/wall21.mp3 create mode 100755 kartik/scenario/voice/fr/wall22.mp3 create mode 100755 kartik/scenario/voice/fr/wall23.mp3 create mode 100755 kartik/scenario/voice/fr/won10.mp3 create mode 100755 kartik/scenario/voice/fr/won11.mp3 create mode 100755 kartik/scenario/voice/fr/won12.mp3 create mode 100755 kartik/scenario/voice/fr/won13.mp3 create mode 100755 kartik/scenario/voice/fr/won14.mp3 create mode 100755 kartik/scenario/voice/fr/won20.mp3 create mode 100755 kartik/scenario/voice/fr/won21.mp3 create mode 100755 kartik/scenario/voice/fr/won22.mp3 create mode 100755 kartik/scenario/voice/fr/won23.mp3 create mode 100755 kartik/scenario/voice/fr/won24.mp3 create mode 100755 kartik/scenario/voice/jp/ahead10.mp3 create mode 100755 kartik/scenario/voice/jp/ahead11.mp3 create mode 100755 kartik/scenario/voice/jp/ahead12.mp3 create mode 100755 kartik/scenario/voice/jp/ahead13.mp3 create mode 100755 kartik/scenario/voice/jp/ahead14.mp3 create mode 100755 kartik/scenario/voice/jp/ahead20.mp3 create mode 100755 kartik/scenario/voice/jp/ahead21.mp3 create mode 100755 kartik/scenario/voice/jp/ahead22.mp3 create mode 100755 kartik/scenario/voice/jp/ahead23.mp3 create mode 100755 kartik/scenario/voice/jp/ahead24.mp3 create mode 100755 kartik/scenario/voice/jp/intro0.mp3 create mode 100755 kartik/scenario/voice/jp/intro1.mp3 create mode 100755 kartik/scenario/voice/jp/intro2.mp3 create mode 100755 kartik/scenario/voice/jp/intro3.mp3 create mode 100755 kartik/scenario/voice/jp/start0.mp3 create mode 100755 kartik/scenario/voice/jp/start1.mp3 create mode 100755 kartik/scenario/voice/jp/start2.mp3 create mode 100755 kartik/scenario/voice/jp/start3.mp3 create mode 100755 kartik/scenario/voice/jp/start4.mp3 create mode 100755 kartik/scenario/voice/jp/start5.mp3 create mode 100755 kartik/scenario/voice/jp/wall10.mp3 create mode 100755 kartik/scenario/voice/jp/wall11.mp3 create mode 100755 kartik/scenario/voice/jp/wall12.mp3 create mode 100755 kartik/scenario/voice/jp/wall13.mp3 create mode 100755 kartik/scenario/voice/jp/wall14.mp3 create mode 100755 kartik/scenario/voice/jp/wall20.mp3 create mode 100755 kartik/scenario/voice/jp/wall21.mp3 create mode 100755 kartik/scenario/voice/jp/wall22.mp3 create mode 100755 kartik/scenario/voice/jp/wall23.mp3 create mode 100755 kartik/scenario/voice/jp/won10.mp3 create mode 100755 kartik/scenario/voice/jp/won11.mp3 create mode 100755 kartik/scenario/voice/jp/won12.mp3 create mode 100755 kartik/scenario/voice/jp/won13.mp3 create mode 100755 kartik/scenario/voice/jp/won14.mp3 create mode 100755 kartik/scenario/voice/jp/won20.mp3 create mode 100755 kartik/scenario/voice/jp/won21.mp3 create mode 100755 kartik/scenario/voice/jp/won22.mp3 create mode 100755 kartik/scenario/voice/jp/won23.mp3 create mode 100755 kartik/scenario/voice/jp/won24.mp3 create mode 100755 kartik/scenario/voice/nl/ahead10.mp3 create mode 100755 kartik/scenario/voice/nl/ahead11.mp3 create mode 100755 kartik/scenario/voice/nl/ahead12.mp3 create mode 100755 kartik/scenario/voice/nl/ahead13.mp3 create mode 100755 kartik/scenario/voice/nl/ahead14.mp3 create mode 100755 kartik/scenario/voice/nl/ahead20.mp3 create mode 100755 kartik/scenario/voice/nl/ahead21.mp3 create mode 100755 kartik/scenario/voice/nl/ahead22.mp3 create mode 100755 kartik/scenario/voice/nl/ahead23.mp3 create mode 100755 kartik/scenario/voice/nl/ahead24.mp3 create mode 100755 kartik/scenario/voice/nl/intro0.mp3 create mode 100755 kartik/scenario/voice/nl/intro1.mp3 create mode 100755 kartik/scenario/voice/nl/intro2.mp3 create mode 100755 kartik/scenario/voice/nl/intro3.mp3 create mode 100755 kartik/scenario/voice/nl/start0.mp3 create mode 100755 kartik/scenario/voice/nl/start1.mp3 create mode 100755 kartik/scenario/voice/nl/start2.mp3 create mode 100755 kartik/scenario/voice/nl/start3.mp3 create mode 100755 kartik/scenario/voice/nl/start4.mp3 create mode 100755 kartik/scenario/voice/nl/start5.mp3 create mode 100755 kartik/scenario/voice/nl/wall10.mp3 create mode 100755 kartik/scenario/voice/nl/wall11.mp3 create mode 100755 kartik/scenario/voice/nl/wall12.mp3 create mode 100755 kartik/scenario/voice/nl/wall13.mp3 create mode 100755 kartik/scenario/voice/nl/wall14.mp3 create mode 100755 kartik/scenario/voice/nl/wall20.mp3 create mode 100755 kartik/scenario/voice/nl/wall21.mp3 create mode 100755 kartik/scenario/voice/nl/wall22.mp3 create mode 100755 kartik/scenario/voice/nl/wall23.mp3 create mode 100755 kartik/scenario/voice/nl/won10.mp3 create mode 100755 kartik/scenario/voice/nl/won11.mp3 create mode 100755 kartik/scenario/voice/nl/won12.mp3 create mode 100755 kartik/scenario/voice/nl/won13.mp3 create mode 100755 kartik/scenario/voice/nl/won14.mp3 create mode 100755 kartik/scenario/voice/nl/won20.mp3 create mode 100755 kartik/scenario/voice/nl/won21.mp3 create mode 100755 kartik/scenario/voice/nl/won22.mp3 create mode 100755 kartik/scenario/voice/nl/won23.mp3 create mode 100755 kartik/scenario/voice/nl/won24.mp3 create mode 100755 kartik/scenario/voice/ru/ahead10.mp3 create mode 100755 kartik/scenario/voice/ru/ahead11.mp3 create mode 100755 kartik/scenario/voice/ru/ahead12.mp3 create mode 100755 kartik/scenario/voice/ru/ahead13.mp3 create mode 100755 kartik/scenario/voice/ru/ahead14.mp3 create mode 100755 kartik/scenario/voice/ru/ahead20.mp3 create mode 100755 kartik/scenario/voice/ru/ahead21.mp3 create mode 100755 kartik/scenario/voice/ru/ahead22.mp3 create mode 100755 kartik/scenario/voice/ru/ahead23.mp3 create mode 100755 kartik/scenario/voice/ru/ahead24.mp3 create mode 100755 kartik/scenario/voice/ru/intro0.mp3 create mode 100755 kartik/scenario/voice/ru/intro1.mp3 create mode 100755 kartik/scenario/voice/ru/intro2.mp3 create mode 100755 kartik/scenario/voice/ru/intro3.mp3 create mode 100755 kartik/scenario/voice/ru/start0.mp3 create mode 100755 kartik/scenario/voice/ru/start1.mp3 create mode 100755 kartik/scenario/voice/ru/start2.mp3 create mode 100755 kartik/scenario/voice/ru/start3.mp3 create mode 100755 kartik/scenario/voice/ru/start4.mp3 create mode 100755 kartik/scenario/voice/ru/start5.mp3 create mode 100755 kartik/scenario/voice/ru/wall10.mp3 create mode 100755 kartik/scenario/voice/ru/wall11.mp3 create mode 100755 kartik/scenario/voice/ru/wall12.mp3 create mode 100755 kartik/scenario/voice/ru/wall13.mp3 create mode 100755 kartik/scenario/voice/ru/wall14.mp3 create mode 100755 kartik/scenario/voice/ru/wall20.mp3 create mode 100755 kartik/scenario/voice/ru/wall21.mp3 create mode 100755 kartik/scenario/voice/ru/wall22.mp3 create mode 100755 kartik/scenario/voice/ru/wall23.mp3 create mode 100755 kartik/scenario/voice/ru/won10.mp3 create mode 100755 kartik/scenario/voice/ru/won11.mp3 create mode 100755 kartik/scenario/voice/ru/won12.mp3 create mode 100755 kartik/scenario/voice/ru/won13.mp3 create mode 100755 kartik/scenario/voice/ru/won14.mp3 create mode 100755 kartik/scenario/voice/ru/won20.mp3 create mode 100755 kartik/scenario/voice/ru/won21.mp3 create mode 100755 kartik/scenario/voice/ru/won22.mp3 create mode 100755 kartik/scenario/voice/ru/won23.mp3 create mode 100755 kartik/scenario/voice/ru/won24.mp3 create mode 100755 kartik/scenario/voice/zh/ahead10.mp3 create mode 100755 kartik/scenario/voice/zh/ahead11.mp3 create mode 100755 kartik/scenario/voice/zh/ahead12.mp3 create mode 100755 kartik/scenario/voice/zh/ahead13.mp3 create mode 100755 kartik/scenario/voice/zh/ahead14.mp3 create mode 100755 kartik/scenario/voice/zh/ahead20.mp3 create mode 100755 kartik/scenario/voice/zh/ahead21.mp3 create mode 100755 kartik/scenario/voice/zh/ahead22.mp3 create mode 100755 kartik/scenario/voice/zh/ahead23.mp3 create mode 100755 kartik/scenario/voice/zh/ahead24.mp3 create mode 100755 kartik/scenario/voice/zh/intro0.mp3 create mode 100755 kartik/scenario/voice/zh/intro1.mp3 create mode 100755 kartik/scenario/voice/zh/intro2.mp3 create mode 100755 kartik/scenario/voice/zh/intro3.mp3 create mode 100755 kartik/scenario/voice/zh/start0.mp3 create mode 100755 kartik/scenario/voice/zh/start1.mp3 create mode 100755 kartik/scenario/voice/zh/start2.mp3 create mode 100755 kartik/scenario/voice/zh/start3.mp3 create mode 100755 kartik/scenario/voice/zh/start4.mp3 create mode 100755 kartik/scenario/voice/zh/start5.mp3 create mode 100755 kartik/scenario/voice/zh/wall10.mp3 create mode 100755 kartik/scenario/voice/zh/wall11.mp3 create mode 100755 kartik/scenario/voice/zh/wall12.mp3 create mode 100755 kartik/scenario/voice/zh/wall13.mp3 create mode 100755 kartik/scenario/voice/zh/wall14.mp3 create mode 100755 kartik/scenario/voice/zh/wall20.mp3 create mode 100755 kartik/scenario/voice/zh/wall21.mp3 create mode 100755 kartik/scenario/voice/zh/wall22.mp3 create mode 100755 kartik/scenario/voice/zh/wall23.mp3 create mode 100755 kartik/scenario/voice/zh/won10.mp3 create mode 100755 kartik/scenario/voice/zh/won11.mp3 create mode 100755 kartik/scenario/voice/zh/won12.mp3 create mode 100755 kartik/scenario/voice/zh/won13.mp3 create mode 100755 kartik/scenario/voice/zh/won14.mp3 create mode 100755 kartik/scenario/voice/zh/won20.mp3 create mode 100755 kartik/scenario/voice/zh/won21.mp3 create mode 100755 kartik/scenario/voice/zh/won22.mp3 create mode 100755 kartik/scenario/voice/zh/won23.mp3 create mode 100755 kartik/scenario/voice/zh/won24.mp3 create mode 100755 kartik/sfx/click.mp3 create mode 100755 kartik/sfx/crash.mp3 create mode 100755 kartik/sfx/gamecrash.wav create mode 100755 kartik/sfx/intro.mp3 create mode 100755 kartik/sfx/last.mp3 create mode 100755 kartik/sfx/menu.mp3 create mode 100755 kartik/sfx/newintro.mp3 create mode 100755 kartik/sfx/notification.mp3 create mode 100755 kartik/sfx/pass.mp3 create mode 100755 kartik/sfx/pause.mp3 create mode 100755 kartik/sfx/sfx.js create mode 100755 kartik/sfx/win.mp3 create mode 100755 kartik/signing/sign.js create mode 100755 kartik/typescript/builder.js create mode 100755 kartik/typescript/engine-darwin create mode 100755 kartik/typescript/engine-linux create mode 100755 kartik/typescript/engine-win32.exe create mode 100755 kartik/typescript/interface.ts create mode 100755 kartik/typescript/mainloader.js create mode 100755 kartik/typescript/preloader.js create mode 100644 kartik/views/.DS_Store create mode 100755 kartik/views/background.jpg create mode 100755 kartik/views/common/blur.css create mode 100755 kartik/views/common/bold.ttf create mode 100755 kartik/views/common/compatibilityMode.css create mode 100755 kartik/views/common/fonts.css create mode 100755 kartik/views/common/index.css create mode 100755 kartik/views/common/light.ttf create mode 100755 kartik/views/common/load-channel.otf create mode 100755 kartik/views/common/load-new.ttf create mode 100755 kartik/views/common/load-version.otf create mode 100755 kartik/views/common/mouse.css create mode 100755 kartik/views/common/race.svg create mode 100755 kartik/views/common/regular.ttf create mode 100755 kartik/views/credits.html create mode 100755 kartik/views/game.css create mode 100755 kartik/views/game.html create mode 100755 kartik/views/hero.svg create mode 100755 kartik/views/intro.css create mode 100755 kartik/views/intro.html create mode 100755 kartik/views/intro.mp4 create mode 100755 kartik/views/load.html create mode 100755 kartik/views/loader.html create mode 100755 kartik/views/menu.css create mode 100755 kartik/views/menu.html create mode 100755 kartik/views/menu.jpg create mode 100755 kartik/views/online.html create mode 100755 kartik/views/rain/snow.js create mode 100755 kartik/views/script/client_fullscreen.js create mode 100755 kartik/views/script/core_chart.js create mode 100755 kartik/views/script/core_compatlayer.js create mode 100755 kartik/views/script/core_crash.js create mode 100755 kartik/views/script/core_fullscreen.js create mode 100755 kartik/views/script/core_head.js create mode 100755 kartik/views/script/core_music.js create mode 100755 kartik/views/script/core_notification.js create mode 100755 kartik/views/script/core_viewer.js create mode 100755 kartik/views/script/credits_global.js create mode 100755 kartik/views/script/credits_libs.js create mode 100755 kartik/views/script/credits_music.js create mode 100755 kartik/views/script/credits_technical.js create mode 100755 kartik/views/script/game_debug.js create mode 100755 kartik/views/script/game_global.js create mode 100755 kartik/views/script/game_music.js create mode 100755 kartik/views/script/game_online.js create mode 100755 kartik/views/script/game_select.js create mode 100755 kartik/views/script/global_compatlayer.js create mode 100755 kartik/views/script/global_levelsapi.js create mode 100755 kartik/views/script/intro_global.js create mode 100755 kartik/views/script/intro_media.js create mode 100755 kartik/views/script/intro_message.js create mode 100755 kartik/views/script/loader_global.js create mode 100755 kartik/views/script/menu_copyright.js create mode 100755 kartik/views/script/menu_global.js create mode 100755 kartik/views/script/menu_gpuinfo.js create mode 100755 kartik/views/script/menu_login.js create mode 100755 kartik/views/script/menu_music.js create mode 100755 kartik/views/script/menu_system.js create mode 100755 kartik/views/script/online_play.js create mode 100755 kartik/views/script/settings_global.js create mode 100755 kartik/views/script/settings_load.js create mode 100755 kartik/views/script/win_global.js create mode 100755 kartik/views/script/win_message.js create mode 100755 kartik/views/script/win_music.js create mode 100755 kartik/views/script/win_play.js create mode 100755 kartik/views/script/win_quit.js create mode 100755 kartik/views/settings.html create mode 100755 kartik/views/splash.svg create mode 100755 kartik/views/stats.html create mode 100755 kartik/views/win.html create mode 100644 kartik/webinit/jquery.js create mode 100644 kartik/webinit/require.js (limited to 'kartik') diff --git a/kartik/.DS_Store b/kartik/.DS_Store new file mode 100644 index 0000000..737eebd Binary files /dev/null and b/kartik/.DS_Store differ diff --git a/kartik/LICENSE b/kartik/LICENSE new file mode 100755 index 0000000..f288702 --- /dev/null +++ b/kartik/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/kartik/README.md b/kartik/README.md new file mode 100755 index 0000000..13a292b --- /dev/null +++ b/kartik/README.md @@ -0,0 +1,29 @@ +

+
+ » Kartik Game « +
developed with
+ +

+ +---- + +A free, simple and clean cross-platform 2D car racing game, powered by Web technologies. The build system (which packages all the downloads on the website and on Itch) is proprietary. + +* **Status:** 💻 Actively maintained + + + + +## Summary +* **Language:** JavaScript +* **Started:** March 2021 +* **License:** GNU General Public License 3.0 +* **Website:** https://minteck.itch.io/kartik + +## Setup +Download Kartik from one of the official sources: +* Itch: https://minteck.itch.io/kartik +* Official website: https://kartik.hopto.org + +## Issues +Issues are reported using GitHub issues. diff --git a/kartik/app.js b/kartik/app.js new file mode 100755 index 0000000..dde2133 --- /dev/null +++ b/kartik/app.js @@ -0,0 +1,434 @@ +console.log(" _ __ _ _ _ \n| |/ /__ _ _ __| |_(_) | __\n| ' // _` | '__| __| | |/ /\n| . \\ (_| | | | |_| | < \n|_|\\_\\__,_|_| \\__|_|_|\\_\\\n "); +switch (require('./package.json').channel) { + case "stable": + console.log(" Kartik " + require('./package.json').version + " (Official Release) [stable]\n"); + break; + case "eap": + console.log(" Kartik " + require('./package.json').version + " (Early Access Release) [eap]\n"); + break; + case "nightly": + console.log(" Kartik " + require('./package.json').version + " (Rawhide Release) [nightly]\n"); + break; + case "beta": + console.log(" Kartik " + require('./package.json').version + " (Branched Release) [beta]\n"); + break; + case "git": + console.log(" Kartik " + require('./package.json').version + " (Trunk Build) [git]\n"); + break; +} + +global.start = new Date(); +global.KartikRoot = __dirname; +global.shouldExitIfClosed = false; +const { app, BrowserWindow } = require('electron'); +const fs = require("fs"); + +(async () => { + process.on('uncaughtException', (error) => { + console.log(" * Starting recovery procedure: E_ERROR: " + error.message); + id = new Date().toISOString().replaceAll(":", "-"); + + require('fs').writeFileSync(require('os').userInfo().homedir + "/.kartik/crashes/" + id + ".txt", "Kartik Bootstraper Crash\n\n" + error.stack); + if (require('os').platform() === "win32") { + require('child_process').exec("runtime\\kartik-crash.bat " + id); + } else if (require('os').platform() === "darwin") { + require('child_process').exec("./runtime/kartik-crash-mac.sh " + id); + } else { + require('child_process').exec("./runtime/kartik-crash.sh " + id); + } + process.exit(2); + }) + + process.on('unhandledRejection', (reason) => { + console.log(" * Starting recovery procedure: E_PROMISE: " + reason); + id = new Date().toISOString(); + + require('fs').writeFileSync(homedir + "/.kartik/crashes/" + id + ".txt", "Kartik Bootstraper Crash (in promise)\n\n" + reason); + if (require('os').platform() === "win32") { + require('child_process').exec("runtime\\kartik-crash.bat"); + } else if (require('os').platform() === "darwin") { + require('child_process').exec("./runtime/kartik-crash-mac.sh"); + } else { + require('child_process').exec("./runtime/kartik-crash.sh"); + } + process.exit(2); + }) + + if (process.argv[2] === "m") { + console.log(" * *******************************************"); + console.log(" * * DATA MITIGATION MODE *"); + console.log(" * * *"); + console.log(" * * Unless you ABSOLUTELY need this, please *"); + console.log(" * * consider starting Kartik normally. *"); + console.log(" * *******************************************"); + if (!require('fs').existsSync(__dirname + "/data")) { + require('fs').mkdirSync(__dirname + "/data"); + } + global.homedir = __dirname + "/data"; + } else { + global.homedir = require('os').userInfo().homedir; + } + + /* --------------------- */ + + console.log(" * Preparing application paths"); + app.setAppLogsPath(homedir + "/.kartik/logs"); + app.setPath("crashDumps", homedir + "/.kartik/dumps"); + app.setPath('userData', homedir + "/.kartik/storage"); + app.whenReady().then(async () => { + if (require('./package.json').channel !== "stable" && require('./package.json').channel !== "git" && !require('fs').existsSync(homedir + "/.kartik/current.kfn")) { + console.log(" * Opening save data conversion dialog"); + global.converting = true; + btn = require('electron').dialog.showMessageBoxSync( + { + type: "warning", + title: "Migrating save data to Kartik Fox Nest required", + message: "Your save data needs to be converted", + buttons: [ + "Use a new game directory (recommended)", + "Convert existing save data", + "Quit without doing anything" + ], + cancelId: 2, + detail: "Kartik Fox Nest (the new save data format) has been introduced in this version, and it requires converting from the old save data format. Because it is not possible to downgrade from Kartik Fox Nest to the old save data format, you have to choose what to do." + } + ) + + switch (btn) { + case 2: + process.exit(2); + break; + case 1: + break; + case 0: + if (process.argv[2] === "m") { + console.log(" * *******************************************"); + console.log(" * * DATA MITIGATION MODE *"); + console.log(" * * *"); + console.log(" * * Unless you ABSOLUTELY need this, please *"); + console.log(" * * consider starting Kartik normally. *"); + console.log(" * *******************************************"); + if (!require('fs').existsSync(__dirname + "/data")) { + require('fs').mkdirSync(__dirname + "/data"); + } + global.homedir = __dirname + "/data/.KartikStaging$"; + } else { + global.homedir = require('os').userInfo().homedir + "/.KartikStaging$"; + } + app.setAppLogsPath(homedir + "/.kartik/logs"); + app.setPath("crashDumps", homedir + "/.kartik/dumps"); + app.setPath('userData', homedir + "/.kartik/storage"); + if (!require('fs').existsSync(homedir)) { + require('fs').mkdirSync(homedir); + } + break; + } + } + + console.log(" * Gathering language"); + slpm = require('os-locale'); + slpw = await slpm(); + slpo = slpw.substr(0, 2); + slng = require('./lang/languages.json'); + if (Object.keys(slng).includes(slpo)) { + dlp = slpo; + } else { + dlp = "en"; + } + + console.log(" * Saving to " + homedir); + + if (!require('fs').existsSync(homedir + "/.kartik")) { + require('fs').mkdirSync(homedir + "/.kartik") + } + + if (!require('fs').existsSync(homedir + "/.kartik/crashes")) { + require('fs').mkdirSync(homedir + "/.kartik/crashes") + } + + if (!require('fs').existsSync(homedir + "/.kartik/mods")) { + require('fs').mkdirSync(homedir + "/.kartik/mods") + } + + if (require('fs').existsSync(homedir + "/.kartik/build")) { + require('fs').rmSync(homedir + "/.kartik/build", { recursive: true }) + } + require('fs').mkdirSync(homedir + "/.kartik/build") + + console.log(" * Creating configuration"); + + const fs = require('fs'); + const Nest = require('./nest/abi'); + + if (fs.existsSync(homedir + "/.kartik/config") && fs.existsSync(homedir + "/.kartik/config/voice.txt") && fs.existsSync(homedir + "/.kartik/config/online.txt") && fs.existsSync(homedir + "/.kartik/config/music.txt") && fs.existsSync(homedir + "/.kartik/config/lang.txt") && fs.existsSync(homedir + "/.kartik/stats.json")) { + console.log(" * Found complete Config V1, migrating to Kartik Fox Nest..."); + Nest.convert(homedir + "/.kartik/current.kfn", homedir + "/.kartik"); + } else { + if (!fs.existsSync(homedir + "/.kartik/current.kfn")) { + console.log(" * No Kartik Fox Nest found, generating one..."); + Nest.generate(homedir + "/.kartik/current.kfn"); + } else { + fs.copyFileSync(homedir + "/.kartik/current.kfn", homedir + "/.kartik/latest.kfn"); + } + } + + global.currentNest = Nest.load(homedir + "/.kartik/current.kfn"); + console.log(" * Kartik Fox Nest loaded, " + fs.readFileSync(homedir + "/.kartik/current.kfn").toString().length + " bytes, last loaded in Kartik " + currentNest._version); + + currentNest._version = require('./package.json').version; + Nest.export(homedir + "/.kartik/current.kfn", currentNest); + + /* --------------------- */ + + require('@electron/remote/main').initialize(); + + function createWindow () { + console.log(" * Checking configuration"); + + lp = currentNest.config.lang + + time = new Date() - start; + console.log(" * Started successfully in " + Math.round(time/1000) + " seconds"); + console.log(" * Why are you EVEN reading this?"); + global.shouldExitIfClosed = true; + + console.log(" * Starting IPC engine"); + win.pwidth = 720; + win.pheight = 540; + win.log = console.log; + + win.debug = process.argv[2] === "d"; + win.channel = channel; + win.cmdlineargs = process.argv; + win.scale = 1.2; + win.update = dimga; + win.gamepads = []; + win.controllerAttached = false; + win.webview = null; + win.dstate = "Kartik"; + win.ddetails = "Kartik"; + win.mods = mods; + + win.invalidfiles = invalidfiles; + win.modsfiles = compiledTypeScriptFiles; + win.homedir = homedir; + + win.lp = lp; + win.music = currentNest.config.music; + win.voice = currentNest.config.voice; + + win.online = currentNest.config.online; + win.nest = currentNest; + + win.resources = resources; + global.currentSongValue = null; + + console.log(" * Starting language preloader"); + require('./lang/preload.js'); + console.log(" * Starting Discord RPC"); + require('./discord/client.js'); + + if (win.debug) { + console.log(" * *******************************************"); + console.log(" * * KARTIK DEBUG MODE *"); + console.log(" * *******************************************"); + win.openDevTools(); + } + + setTimeout(() => { + win.webContents.send('ready', true); + }, 3000) + + win.webContents.on('dom-ready', () => { + musicIpc = require('electron').ipcMain; + musicIpc.on('newmusic', (event, value) => { + if (music) { + win.webContents.send('setmusic', value); + } + }) + + musicIpc.on('reloadNest', (event) => { + currentNest = Nest.load(homedir + "/.kartik/current.kfn"); + win.nest = currentNest; + }) + + const LevelsAPI = require('./views/script/global_levelsapi'); + const lvl = new LevelsAPI(); + + stats = currentNest.stats; + musicIpc.on('addstats', (event, value) => { + currentNest.stats[value.catalog][value.key] = currentNest.stats[value.catalog][value.key] + value.add; + Nest.export(homedir + "/.kartik/current.kfn", currentNest); + currentNest = Nest.load(homedir + "/.kartik/current.kfn"); + win.nest = currentNest; + + if (value.key === "laps" && currentNest.auth) { + auth = currentNest.auth; + level = lvl.correspond(currentNest.stats["ingame"]["laps"], "256") - 1 + 1; + + if (level !== auth.level) { + currentNest.auth.level = level; + Nest.export(homedir + "/.kartik/current.kfn", currentNest); + currentNest = Nest.load(homedir + "/.kartik/current.kfn"); + win.nest = currentNest; + if (level < 200) { + win.webContents.send("notification", {title: lang.polymer.levelup[0], message: lang.polymer.levelup[1] + " " + level + " " + lang.polymer.levelup[2]}); + } else { + win.webContents.send("notification", {title: lang.polymer.finished[0], message: lang.polymer.finished[1]}); + } + } + } + }) + musicIpc.on('addstatsandclose', (event, value) => { + currentNest.stats[value.catalog][value.key] = currentNest.stats[value.catalog][value.key] + value.add; + Nest.export(homedir + "/.kartik/current.kfn", currentNest); + currentNest = Nest.load(homedir + "/.kartik/current.kfn"); + win.nest = currentNest; + win.destroy(); + }) + }) + } + + console.log(" * Starting splash screen"); + + console.log(" * Checking channel"); + if (require('./package.json').channel === "stable") { + logo = "logo/logo.png"; + channel = " "; + global.dimg = "official"; + global.dimga = "stable"; + global.dchan = "Kartik Stable"; + } else if (require('./package.json').channel === "beta") { + logo = "logo/logo-beta.png"; + channel = " Beta "; + global.dimg = "beta"; + global.dimga = "beta"; + global.dchan = "Kartik Beta"; + } else if (require('./package.json').channel === "nightly") { + logo = "logo/logo-nightly.png"; + channel = " Nightly "; + global.dimg = "nightly"; + global.dimga = "nightly"; + global.dchan = "Kartik Nightly"; + } else if (require('./package.json').channel === "eap") { + logo = "logo/logo-eap.png"; + channel = " EAP "; + global.dimg = "eap"; + global.dimga = "eap"; + global.dchan = "Kartik EAP"; + } else if (require('./package.json').channel === "git") { + logo = "logo/logo-git.png"; + channel = " Trunk "; + global.dimg = "git"; + global.dimga = "git"; + global.dchan = "Kartik Trunk"; + try { + pk = require('./package.json'); + pk.version = require('fs').readFileSync("./.git/refs/heads/trunk").toString().substr(0, 7); + fs.writeFileSync("./package.json", JSON.stringify(pk, 2)) + } catch (e) {} + } + + global.win = new BrowserWindow({ + width: 1220, + height: 720, + minWidth: 720, + minHeight: 540, + resizeable: true, + resizable: true, + maximizable: true, + show: false, + enableLargerThanScreen: true, + icon: logo, + backgroundColor: "#000000", + title: "Kartik", + webPreferences: { + nodeIntegration: true, + contextIsolation: false, + enableRemoteModule: true, + webviewTag: true, + disableBlinkFeatures: "MediaSessionService", + } + }) + console.log(" * Loading view"); + win.loadFile('./index.html') + win.setMenu(null); + win.webContents.once('dom-ready', () => { + console.log(" * Showing splash screen"); + win.show(); + setTimeout(() => { + console.log(" * Checking signatures"); + + invalidfiles = []; + + sigdb = require("./bin/signatures.json"); + total = Object.keys(sigdb["v1"]).length * 3; + processed = 0; + for (file in sigdb["v1"]) { + if (fs.existsSync(file) && !invalidfiles.includes(file)) { + try { + hash = require('crypto').createHash('sha512').update(fs.readFileSync(file)).digest('base64'); + if (hash !== sigdb["v1"][file]) { + invalidfiles.push(file); + } + } catch (e) { + console.warn(" ! Could not compute V1 hash for " + file); + } + } + + processed++; + win.webContents.send('progress', (processed/total)*100); + } + for (file in sigdb["v2"]) { + if (fs.existsSync(file) && !invalidfiles.includes(file)) { + try { + hash = require('crypto').createHash('sha1').update(fs.readFileSync(file)).digest('base64'); + if (hash !== sigdb["v2"][file]) { + invalidfiles.push(file); + } + } catch (e) { + console.warn(" ! Could not compute V2 hash for " + file); + } + } + + processed++; + win.webContents.send('progress', (processed/total)*100); + } + for (file in sigdb["v3"]) { + if (fs.existsSync(file) && !invalidfiles.includes(file)) { + try { + hash = require('crypto').createHash('md5').update(fs.readFileSync(file)).digest('base64'); + if (hash !== sigdb["v3"][file]) { + invalidfiles.push(file); + } + } catch (e) { + console.warn(" ! Could not compute V3 hash for " + file); + } + } + + processed++; + win.webContents.send('progress', (processed/total)*100); + } + + global.importedTypeScriptFiles = []; + global.compiledTypeScriptFiles = []; + console.log(" * Generating resources pack"); + require('./modding/resources'); + console.log(" * Starting Kartik Modding Platform"); + require('./modding/parser'); + console.log(" * Compiling KMP API TypeScript files"); + require('./modding/compiler'); + console.log(" * Loading KMP TypeScript mods"); + require('./typescript/preloader'); + createWindow(); + }, 5000) + }) + }) + + app.on('window-all-closed', () => { + if (shouldExitIfClosed) { + console.log(" * Bye!"); + app.quit() + } + }) +})(); diff --git a/kartik/crash/artwork.jpg b/kartik/crash/artwork.jpg new file mode 100755 index 0000000..a999d22 Binary files /dev/null and b/kartik/crash/artwork.jpg differ diff --git a/kartik/crash/client.js b/kartik/crash/client.js new file mode 100755 index 0000000..95cc342 --- /dev/null +++ b/kartik/crash/client.js @@ -0,0 +1,140 @@ +taglines = [ + "Who set us up the engine?", + "Everything's going as planned. No, really, that was supposed to happen.", + "Uh... Did I do that? (oops)", + "Oops.", + "Why did you do that?", + "I feel sad now :(", + "My bad.", + "I'm sorry, Dave. I'm afraid I can't do that.", + "I let you down. Sorry :(", + "On the bright side, I bought you a teddy bear!", + "Oh - I know what I did wrong!", + "Hey, that tickles! Hehehe!", + "I blame Microsoft.", + "Don't be sad. I'll do better next time, pinky swear!", + "Don't be sad, have a hug! <3", + "I just don't know what went wrong :(", + "Shall we play a game?", + "Quite honestly, I wouldn't worry myself about that.", + "Sorry :(", + "Surprise! Haha. Well, this is awkward.", + "Would you like a cupcake?", + "Hi. I'm Kartik, and I'm a crashaholic.", + "Ooh. Shiny.", + "This doesn't make any sense!", + "Why is it breaking :(", + "Don't do that.", + "Ouch. That hurt :(", + "You're mean.", + "But it works on my machine.", + "Welp, I guess it's broken now.", + "¯\\_(ツ)_/¯", + "*boop*" +] + +if (native) { + function crash(error) { + id = new Date().toISOString().replaceAll(":", "-"); + + try { + global.pkg = require('./package.json'); + } catch (e) { + console.warn(e); + global.pkg = require('../package.json'); + + } + + try { + pubver = require('../package.json').version; + } catch (e) { + pubver = require('./package.json').version; + } + pvpart = pubver.split("."); + if (pvpart.length === 3) { + intver = pvpart[0] + "." + pvpart[1]; + } else { + intver = "unknown"; + } + + if (require('@electron/remote').getCurrentWindow().mods.length > 0) { + release = "mods+" + require('@electron/remote').getCurrentWindow().mods.length; + } else { + release = "official"; + } + + report = "---- Kartik Crash Report ----\n"; + report += "// " + taglines[Math.floor(Math.random() * taglines.length)] + "\n\n" + + report += "Time: " + new Date().toUTCString() + "\n\n"; + error.stack.split("\n").forEach((line) => { + report += line + "\n"; + }) + + report += "\n\n\nA detailed walkthrough of the error, its code path and all known details is as follows:\n" + + "---------------------------------------------------------------------------------------\n\n"; + + report += "-- Head --\nThread: Renderer #" + process.pid + "\n\n" + + report += "-- Initialization --\nDetails: " + require('@electron/remote').getCurrentWindow().cmdlineargs.join(" ") + "\n\n" + + report += "-- System Details --\nDetails: \n"; + + report += " Kartik Version: " + pkg.version + "\n"; + try { + channel = require('../package.json').channel; + } catch (e) { + channel = require('./package.json').channel; + } + report += " Kartik Version ID: " + intver + "/" + channel + "+" + release + "\n"; + report += " Kartik Version SKU: " + pkg.serial + "\n"; + report += " Operating System: " + require('os').type() + " (" + require('os').arch() + ") version " + require('os').release() + "\n"; + report += " Electron Version: " + process.versions.electron + "\n"; + report += " Electron VM Version: " + process.versions.v8 + "\n"; + report += " Node Version: " + process.versions.node + "\n"; + report += " Memory: " + process.memoryUsage().heapUsed + " bytes (" + Math.round(process.memoryUsage().heapUsed / 1000000) + " MB) / " + process.memoryUsage().heapTotal + " bytes (" + Math.round(process.memoryUsage().heapTotal / 1000000) + " MB) up to " + process.memoryUsage().rss + " bytes (" + Math.round(process.memoryUsage().rss / 1000000) + " MB)\n"; + report += " CPUs: " + require('os').cpus().length + "\n"; + if (require('@electron/remote').getCurrentWindow().mods.length > 0) { + report += " KMP Mods:\n"; + for (mod of require('@electron/remote').getCurrentWindow().mods) { + report += " " + mod + "\n"; + } + } + report += " Is Modded: "; + if (require('@electron/remote').getCurrentWindow().mods.length > 0) { + report += "Definitely; Client brand changed to 'kmp-client'" + } else if (require('@electron/remote').getCurrentWindow().invalidfiles.length > 0) { + if (require('@electron/remote').getCurrentWindow().invalidfiles.length > 1) { + report += "Very likely; " + require('@electron/remote').getCurrentWindow().invalidfiles.length + " signatures invalidated"; + } else { + report += "Very likely; " + require('@electron/remote').getCurrentWindow().invalidfiles.length + " signature invalidated"; + } + } else { + report += "Probably not. All signatures remains and client brand is untouched."; + } + report += "\n"; + report += " CPU: " + require('os').cpus().length + "x " + require('os').cpus()[0].model.trim() + "\n"; + + require('fs').copyFileSync(homedir + "/.kartik/current.kfn", homedir + "/.kartik/crashed.kfn"); + require('fs').writeFileSync(require('os').userInfo().homedir + "/.kartik/crashes/" + id + ".txt", report); + require('@electron/remote').getCurrentWindow().webContents.send("crashreport", report); + } + + window.onerror = (_a, _b, _c, _d, error) => { + if (typeof error != "undefined") { + crash(error); + } else { + error("CrashManager", "An exception was thrown without details about it"); + crash(new Error("Unknown error")); + } + } + + process.on('uncaughtException', (error) => { + if (typeof error != "undefined") { + crash(error); + } else { + error("CrashManager", "An exception was thrown without details about it"); + crash(new Error("Unknown error")); + } + }) +} diff --git a/kartik/crash/crash.html b/kartik/crash/crash.html new file mode 100755 index 0000000..ec4e5ca --- /dev/null +++ b/kartik/crash/crash.html @@ -0,0 +1,72 @@ + + + + + + + + + + +
+ +
+
+

+

+

+

+
+ + + + diff --git a/kartik/crash/wrapper.js b/kartik/crash/wrapper.js new file mode 100755 index 0000000..16ecfd9 --- /dev/null +++ b/kartik/crash/wrapper.js @@ -0,0 +1,39 @@ +const { app, BrowserWindow } = require('electron') + +lp = "en"; + +function createWindow () { + const win = new BrowserWindow({ + width: 800, + height: 375, + resizeable: false, + resizable: false, + maximizable: false, + bgColor: "#ffffff", + title: "Kartik", + webPreferences: { + nodeIntegration: true, + contextIsolation: false, + enableRemoteModule: true, + webviewTag: true + } + }) + + win.lp = lp; + win.loadFile('crash.html') + win.setMenu(null); +} + +app.whenReady().then(createWindow) + +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') { + app.quit() + } +}) + +app.on('activate', () => { + if (BrowserWindow.getAllWindows().length === 0) { + createWindow() + } +}) \ No newline at end of file diff --git a/kartik/discord/client.js b/kartik/discord/client.js new file mode 100755 index 0000000..d849ed3 --- /dev/null +++ b/kartik/discord/client.js @@ -0,0 +1,40 @@ +const DiscordRPC = require('discord-rpc'); + +// Set this to your Client ID. +const clientId = '821064368535633920'; + +// Only needed if you want to use spectate, join, or ask to join +DiscordRPC.register(clientId); + +const rpc = new DiscordRPC.Client({ transport: 'ipc' }); +const startTimestamp = new Date(); + +async function setActivity() { + if (!rpc) { + return; + } + + //const boops = await mainWindow.webContents.executeJavaScript('window.boops'); + + // You'll need to have snek_large and snek_small assets uploaded to + // https://discord.com/developers/applications//rich-presence/assets + rpc.setActivity({ + details: win.ddetails, + state: win.dstate, + startTimestamp, + largeImageKey: 'kartik', + largeImageText: 'Kartik, ' + lang.game.credits.by + ' Minteck', + smallImageKey: dimg, + smallImageText: dchan, + instance: false, + }); +} + +rpc.on('ready', () => { + // activity can only be set every 15 seconds + setInterval(() => { + setActivity(); + }, 15e3); +}); + +rpc.login({ clientId }).catch(console.error); \ No newline at end of file diff --git a/kartik/game.svg b/kartik/game.svg new file mode 100644 index 0000000..2d0d2b8 --- /dev/null +++ b/kartik/game.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/back.svg b/kartik/icons/back.svg new file mode 100755 index 0000000..06cddd0 --- /dev/null +++ b/kartik/icons/back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/credits.svg b/kartik/icons/credits.svg new file mode 100755 index 0000000..9580654 --- /dev/null +++ b/kartik/icons/credits.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/exit.svg b/kartik/icons/exit.svg new file mode 100755 index 0000000..0f82fc7 --- /dev/null +++ b/kartik/icons/exit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/gamepad.svg b/kartik/icons/gamepad.svg new file mode 100755 index 0000000..29e3d11 --- /dev/null +++ b/kartik/icons/gamepad.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/language.svg b/kartik/icons/language.svg new file mode 100755 index 0000000..50e43d5 --- /dev/null +++ b/kartik/icons/language.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/local.svg b/kartik/icons/local.svg new file mode 100755 index 0000000..9cc4b19 --- /dev/null +++ b/kartik/icons/local.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/music.svg b/kartik/icons/music.svg new file mode 100755 index 0000000..05f02ce --- /dev/null +++ b/kartik/icons/music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/online.svg b/kartik/icons/online.svg new file mode 100755 index 0000000..61652f5 --- /dev/null +++ b/kartik/icons/online.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/scale.svg b/kartik/icons/scale.svg new file mode 100755 index 0000000..b244dfd --- /dev/null +++ b/kartik/icons/scale.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/scenario.svg b/kartik/icons/scenario.svg new file mode 100755 index 0000000..b9976c7 --- /dev/null +++ b/kartik/icons/scenario.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/settings.svg b/kartik/icons/settings.svg new file mode 100755 index 0000000..ee88e8d --- /dev/null +++ b/kartik/icons/settings.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/singleplayer.svg b/kartik/icons/singleplayer.svg new file mode 100755 index 0000000..4007791 --- /dev/null +++ b/kartik/icons/singleplayer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/icons/stats.svg b/kartik/icons/stats.svg new file mode 100755 index 0000000..4cda1b2 --- /dev/null +++ b/kartik/icons/stats.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/index.html b/kartik/index.html new file mode 100755 index 0000000..98714a3 --- /dev/null +++ b/kartik/index.html @@ -0,0 +1,143 @@ + + + + + + + + + Kartik: A New Start | Minteck Arcade + + + + + + + + + + + + +
+
+
+ +
+ hello + goodbye +
+
+ + + + + + + + + + + + + diff --git a/kartik/lang/de.json b/kartik/lang/de.json new file mode 100755 index 0000000..1e18c6f --- /dev/null +++ b/kartik/lang/de.json @@ -0,0 +1,237 @@ +{ + "crash": { + "title": "Kartik Crash Reporter", + "head": "Kartik hat aufgeh\u00f6rt zu arbeiten", + "intro": "Kartik ist auf ein Problem gesto\u00dfen und hat unerwartet angehalten. ", + "report": [ + "Au\u00dferdem wurde ein Absturzbericht in \"", + "Damit Sie es an die Entwickler senden k\u00f6nnen, wenn Sie einen Internetzugang haben." + ], + "close": "Schlie\u00dfen", + "reset": "Kartik zur\u00fccksetzen und schlie\u00dfen" + }, + "updates": { + "ok": "Auf dem Laufenden", + "available": "Spiel-Updates verf\u00fcgbar", + "git": "Ausf\u00fchren der Trunk-Version", + "error": "Suche nach Updates nicht m\u00f6glich", + "wait": "Suche nach Updates ...", + "warn": [ + "Updates sind verf\u00fcgbar", + "Laden Sie die neue Version von Kartik von der offiziellen Website herunter, um von den neuesten Funktionen und Fehlerbehebungen zu profitieren." + ] + }, + "scenario": { + "intro": [ + "Hey, hallo, wie w\u00e4re es mit einem schnellen Lauf?", + "Ah, da bist du wieder! ", + "Wie w\u00e4re es mit einem kleinen Rennen?", + "Machen wir einen Spaziergang?" + ], + "ahead1": [ + "Ach nein !", + "Verdammt, das ist nicht m\u00f6glich!", + "Aber ich komm da nicht hin...", + "Und Schei\u00dfe...", + "Warum du ?" + ], + "ahead2": [ + "Hee hee hee", + "Dieser ist f\u00fcr mich!", + "Ich werde es haben !", + "Es ist f\u00fcr mich!", + "Es geh\u00f6rt mir !" + ], + "won1": [ + "Gute Partie !", + "Schade f\u00fcr mich...", + "ich h\u00e4tte hoffen k\u00f6nnen...", + "Aber es ist nicht sehr sch\u00f6n!", + "Gut gemacht !" + ], + "won2": [ + "Ich habe es dir gesagt !", + "Als h\u00e4tte ich dich nicht gewarnt!", + "Ich habe gewonnen !", + "Super, ich habe gewonnen!", + "Und noch eins f\u00fcr mich!" + ], + "wall1": [ + "Ah ah!", + "Na dann, gehen wir nicht richtig?", + "Autsch", + "Es muss weh tun...", + "Spaf, c't'obstacle!" + ], + "wall2": [ + "Scheisse", + "Kacke", + "Nicht m\u00f6glich", + "Puti" + ], + "start": [ + "Ich werde Spa\u00df haben!", + "Du wirst sehen, ich mache dich zu einer dieser Rassen!", + "Erz\u00e4hl mir Neuigkeiten", + "Lass uns gehen!", + "Auf geht's !", + "Wooo, vorw\u00e4rts!" + ] + }, + "discord": { + "credits": [ + "Warten", + "Im Abspann" + ], + "game": [ + "Eins\u00e4tze", + "Solo-Modus", + "Versus-Modus", + "In der Pause" + ], + "intro": [ + "Warten", + "\u00dcber die Einf\u00fchrung" + ], + "settings": [ + "Warten", + "In den Einstellungen" + ], + "win": [ + "Gerade gewonnen", + "Gerade verloren" + ] + }, + "intro": [ + "Dr\u00fccken Sie die Eingabetaste, um zu starten", + "Dr\u00fccke A zum Starten" + ], + "game": { + "credits": { + "by": "von" + }, + "gpause": { + "title": "Spiel pausiert", + "continueg": "Weitermachen", + "showhb": "Hitbox anzeigen", + "hidehb": "Hitbox ausblenden", + "quit": "Verlassen" + } + }, + "menu": { + "titles": [ + "Solo", + "Gegen", + "Optionen", + "Credits", + "Verlassen" + ], + "descriptions": [ + "Spiele alleine und offline gegen einen Roboter", + "Spielen Sie zwei auf demselben Bildschirm", + "Zoom und Einstellungen \u00e4ndern", + "Liste der Spieleautoren anzeigen", + "Schlie\u00dfe das Spiel und kehre zur\u00fcck zu" + ], + "distribute": "Nicht st\u00f6ren" + }, + "settings": { + "title": "Optionen", + "back": "Zur\u00fcckkehren", + "size": "Schnittstellengr\u00f6\u00dfe", + "music": "Musik aktivieren", + "lang": "Zunge", + "voice": "Stimme aktivieren", + "yes": "Jawohl", + "no": "Nein", + "notice": "Die Einstellungen werden erst nach dem Neustart von Kartik \u00fcbernommen" + }, + "win": { + "solo": { + "win": "Du hast gewonnen !", + "lose": "Du hast verloren !" + }, + "versus": "Spieler 0 hat gewonnen!", + "quit": [ + "Zum Beenden Esc dr\u00fccken", + "Dr\u00fccken Sie B zum Beenden" + ] + }, + "online": { + "menu": { + "local": "Lokal", + "online": "In der Reihe", + "dlocal": "Spiele mit einem Freund auf derselben Maschine", + "donline": "Spiele mit einem Freund auf verschiedenen Maschinen" + }, + "error": { + "connection": "Kommunikationsfehler", + "disconnect": "Getrennt" + }, + "connecting": "Verbindung zum Server...", + "intro": { + "create": "Erstelle ein Spiel", + "pcreate": "Geben Sie Ihrem Teamkollegen diesen Code, um sich in Ihr Spiel einzuloggen:", + "join": "Mach mit bei einem Spiel", + "pjoin": "Geben Sie den Code Ihres Teamkollegen ein, um an seinem Spiel teilzunehmen:" + }, + "disconnected": "Verbindung unterbrochen", + "unable": "Verbindung zum Server nicht m\u00f6glich", + "internal": "Interner Systemfehler", + "loading": "Vorbereitung auf das Spiel...", + "discord": "In der Reihe", + "generate": "Laden des Landes ...", + "discord2": "Auf einen Fehler sto\u00dfen", + "timeout": "Das Timeout wurde \u00fcberschritten", + "aborted": "Der andere Spieler hat das Spiel verlassen", + "car0": "Dein Auto", + "car1": "Sein Auto" + }, + "stats": { + "menu": "Statistiken", + "title": "Spielstatistiken", + "items": { + "times.single": "Im Einzelspielermodus verbrachte Zeit", + "times.local": "Im lokalen Modus verbrachte Zeit", + "times.online": "Im Online-Modus verbrachte Zeit", + "results.wins": "Anzahl der gewonnenen Spiele", + "results.loses": "Anzahl der verlorenen Spiele", + "ingame.walls": "Gesamtzahl der Kollisionen", + "ingame.laps": "Gesamtzahl der Runden", + "ingame.turns": "Gesamtzahl der Umdrehungen" + } + }, + "polymer": { + "gpu": "GPU-Unterst\u00fctzungsstatus", + "gpuShift": "Dr\u00fccken Sie die Umschalttaste, um mehr zu sehen", + "logging": "Wir verbinden Sie; ", + "loginClose": "Sie k\u00f6nnen nun diese Registerkarte oder dieses Fenster schlie\u00dfen und zu Kartik zur\u00fcckkehren.", + "gatheringLogin": "Wir verifizieren Ihr Konto; ", + "loginIntro": "Dr\u00fccken Sie L, um eine Verbindung herzustellen", + "logout": "L zum Abmelden", + "ktoLevel": "Niveau", + "ktoMaxLevel": "Gott", + "error": [ + "Kommunikation mit Servern nicht m\u00f6glich", + "Sie k\u00f6nnen Kartik Online erst nutzen, wenn wir mit den Servern kommunizieren k\u00f6nnen.", + "Mit dem Internet verbinden" + ], + "updateError": [ + "Suche nach Updates nicht m\u00f6glich", + "Wir k\u00f6nnen derzeit nicht nach Updates suchen. Bitte versuchen Sie es sp\u00e4ter erneut." + ], + "levelup": [ + "H\u00f6heres Level !", + "Du hast das Level erreicht", + "und du gewinnst an Macht! " + ], + "finished": [ + "Du hast das Spiel geschlagen!", + "Fertige Kartik ?! " + ], + "token": [ + "Von woanders getrennt", + "Sie wurden von Kartik Online abgemeldet, weil Ihre Sitzung an anderer Stelle beendet wurde." + ] + } +} \ No newline at end of file diff --git a/kartik/lang/en.json b/kartik/lang/en.json new file mode 100755 index 0000000..d6d25c9 --- /dev/null +++ b/kartik/lang/en.json @@ -0,0 +1,237 @@ +{ + "crash": { + "title": "Kartik Crash Reporter", + "head": "Kartik stopped working", + "intro": "Kartik encountered a problem and exited unexpectedly. We recorded some additional information, and a crash report has been automatically sent to the developers if you were connected to the Internet.", + "report": [ + "Alternately, a crash report has been created in « ", + " », so that you can send it to the developers when you will have Internet access." + ], + "close": "Close", + "reset": "Reset Kartik and close" + }, + "updates": { + "ok": "Up to date", + "available": "Game updates available", + "git": "Running trunk version", + "error": "Unable to check for updates", + "wait": "Checking for updates...", + "warn": [ + "Updates available", + "Download the new version of Kartik from the official website to get the newest features and bug fixes." + ] + }, + "scenario": { + "intro": [ + "Heyo, what about a lil race?", + "Hey, you're back! What 'bout a lil race?", + "Shall we do a lil race?", + "Have a race?" + ], + "ahead1": [ + "Oh no!", + "Aw shit, that's not possible!", + "But I won't get it...", + "Damnit...", + "Why you?" + ], + "ahead2": [ + "Hey hey hey", + "This one's for me!", + "I'll get it!", + "It's for me!", + "For me!" + ], + "won1": [ + "Good game!", + "Nevermind...", + "At least I hoped...", + "But, that's not kind!", + "Congrats!" + ], + "won2": [ + "I told ya!", + "As if I hadn't told you!", + "I won!", + "Great, I won this one!", + "And one more for me!" + ], + "wall1": [ + "Hey hey!", + "Well then, you don't drive well?", + "Ouch", + "That must've hurt...", + "Ouch, in the wall..." + ], + "wall2": [ + "Damnit...", + "Well...", + "Impossible", + "Aw crap" + ], + "start": [ + "Let's get you airborne!", + "You'll see, I'll make you one of those races!", + "You'll tell me what ya think", + "Let's go!", + "And, let's go!", + "Wooo, right away!" + ] + }, + "discord": { + "credits": [ + "Waiting", + "Viewing the credits" + ], + "game": [ + "In game", + "Singleplayer", + "Versus", + "Paused" + ], + "intro": [ + "Waiting", + "On the intro" + ], + "settings": [ + "Waiting", + "In the settings" + ], + "win": [ + "Just won", + "Just lost" + ] + }, + "intro": [ + "Press Enter to start", + "Press A to start" + ], + "game": { + "credits": { + "by": "by" + }, + "gpause": { + "title": "Game Paused", + "continueg": "Continue", + "showhb": "Show hitboxes", + "hidehb": "Hide hitboxes", + "quit": "Quit" + } + }, + "menu": { + "titles": [ + "Singleplayer", + "Versus", + "Settings", + "Credits", + "Quit" + ], + "descriptions": [ + "Play alone and offline against a robot", + "Play with a friend on one screen", + "Change zoom and other settings", + "View game authors list", + "Close the game and return to" + ], + "distribute": "Do not distribute" + }, + "settings": { + "title": "Settings", + "back": "Back", + "size": "Interface size", + "music": "Enable music", + "lang": "Language", + "voice": "Enable voice", + "yes": "yes", + "no": "no", + "notice": "Changed settings won't apply until you restart Kartik" + }, + "win": { + "solo": { + "win": "You win!", + "lose": "You lose!" + }, + "versus": "Player 0 win!", + "quit": [ + "Press Esc to quit", + "Press B to quit" + ] + }, + "online": { + "menu": { + "local": "Local", + "online": "Online", + "dlocal": "Play with a friend on the same computer", + "donline": "Play with a friend on different computers" + }, + "error": { + "connection": "Communication Error", + "disconnect": "Disconnected" + }, + "connecting": "Connecting to server...", + "intro": { + "create": "Create a party", + "join": "Join a party", + "pcreate": "Give this code to your teammate so they can connect to your party:", + "pjoin": "Enter the code your teammate gave to connect to their party:" + }, + "disconnected": "Connection Lost", + "unable": "Unable to connect to server", + "internal": "Internal System Error", + "loading": "Preparing to play...", + "discord": "Online", + "generate": "Loading terrain...", + "discord2": "Facing an error", + "timeout": "The connection timed out", + "aborted": "The other player ended the game", + "car0": "Your car", + "car1": "Their car" + }, + "stats": { + "menu": "Statistics", + "title": "Game Statistics", + "items": { + "times.single": "Time spent in singleplayer", + "times.local": "Time spent in local mode", + "times.online": "Time spent playing online", + "results.wins": "Number of games that you won", + "results.loses": "Number of games that you lost", + "ingame.walls": "Number of collisions you had", + "ingame.laps": "Number of laps you made", + "ingame.turns": "Number of rotations you made" + } + }, + "polymer": { + "gpu": "GPU Support Status", + "gpuShift": "Press Shift for details", + "logging": "We are logging you in ; check for your Web browser window and accept the login.", + "loginClose": "You can now close this tab/window and go back to Kartik.", + "gatheringLogin": "We are checking your account ; this may take a while.", + "loginIntro": "Press L to login", + "logout": "L to logout", + "ktoLevel": "Level", + "ktoMaxLevel": "God", + "error": [ + "Unable to communicate with servers", + "You won't be able to use Kartik Online until we can connect to the servers.", + "Go online to log in" + ], + "updateError": [ + "Unable to check for updates", + "We cannot check for new updates right now, please try again later." + ], + "levelup": [ + "Level up!", + "You have reached level", + "and you're gaining power! Continue and try to reach the maximum level." + ], + "finished": [ + "You've beaten the game!", + "Finished Kartik?! Yes. You've reached the god level!" + ], + "token": [ + "Logged out from another place", + "You have been logged out from Kartik Online because your session has been terminated from somewhere else." + ] + } +} diff --git a/kartik/lang/es.json b/kartik/lang/es.json new file mode 100755 index 0000000..7eacf11 --- /dev/null +++ b/kartik/lang/es.json @@ -0,0 +1,237 @@ +{ + "crash": { + "title": "Kartik Crash Reportero", + "head": "Kartik ha dejado de funcionar", + "intro": "Kartik se encontr\u00f3 con un problema y se detuvo inesperadamente.Recopilamos informaci\u00f3n adicional y se envi\u00f3 autom\u00e1ticamente un informe de bloqueo a los desarrolladores si estaba conectado a Internet.", + "report": [ + "Adem\u00e1s, se cre\u00f3 un informe de bloqueo en \"", + "\", para que pueda enviarlo a los desarrolladores cuando tenga acceso a Internet." + ], + "close": "cerrar", + "reset": "Reinicializaci\u00f3n Kartik y cierre" + }, + "updates": { + "ok": "Hasta la fecha", + "available": "Actualizaciones de juegos disponibles", + "git": "Ejecuci\u00f3n de la versi\u00f3n troncal", + "error": "No se puede comprobar si hay actualizaciones", + "wait": "Buscando actualizaciones...", + "warn": [ + "Las actualizaciones est\u00e1n disponibles", + "Descargue la nueva versi\u00f3n de Kartik desde el sitio web oficial para beneficiarse de las \u00faltimas caracter\u00edsticas y correcciones de errores." + ] + }, + "scenario": { + "intro": [ + "Oye, hola, eso te dice una peque\u00f1a carrera?", + "\u00a1Ah, aqu\u00ed est\u00e1s de nuevo! \u00bfEso te dice un poco de raza?", + "\u00bfY si tuvi\u00e9ramos una peque\u00f1a carrera?", + "\u00bfVamos a dar un paseo?" + ], + "ahead1": [ + "\u00a1No!", + "\u00a1Joder, no es posible!", + "Pero no voy a llegar all\u00ed...", + "oh...", + "\u00bfPor qu\u00e9?" + ], + "ahead2": [ + "Hola hola hola", + "\u00a1Este es para m\u00ed!", + "\u00a1Lo tendr\u00e9!", + "\u00a1Es para m\u00ed!", + "\u00a1Es m\u00edo!" + ], + "won1": [ + "\u00a1Bien hecho!", + "L\u00e1stima para m\u00ed...", + "Podr\u00eda haber esperado...", + "Pero, no es muy agradable!", + "\u00a1Bien hecho!" + ], + "won2": [ + "Te lo hab\u00eda dicho !", + "\u00a1Como si no te lo hubiera advertido!", + "He ganado !", + "\u00a1Genial, lo gan\u00e9!", + "\u00a1Y uno m\u00e1s para m\u00ed!" + ], + "wall1": [ + "\u00a1Ah ah!", + "Bueno, entonces, \u00bfno vamos bien?", + "Ay", + "Debe doler ...", + "\u00a1Splaf, c't'obstacle!" + ], + "wall2": [ + "Mierda", + "Caca", + "No es posible", + "Puti" + ], + "start": [ + "\u00a1Voy a divertirme!", + "Ya ver\u00e1s, \u00a1te har\u00e9 una de esas carreras!", + "Dime alguna noticia", + "\u00a1Vamos!", + "Aqu\u00ed vamos !", + "\u00a1Wooo, adelante!" + ] + }, + "discord": { + "credits": [ + "A la espera", + "En los creditos" + ], + "game": [ + "Apuesta", + "Modo solo", + "Modo Versus", + "Pausa" + ], + "intro": [ + "A la espera", + "Sobre la introducci\u00f3n" + ], + "settings": [ + "A la espera", + "En la configuraci\u00f3n" + ], + "win": [ + "Acaba de ganar", + "Acaba de perder" + ] + }, + "intro": [ + "Presiona enter para comenzar", + "Presione A para comenzar" + ], + "game": { + "credits": { + "by": "por" + }, + "gpause": { + "title": "Juego pausado", + "continueg": "seguir", + "showhb": "Mostrar hitbox", + "hidehb": "Ocultar hitbox", + "quit": "Dejar" + } + }, + "menu": { + "titles": [ + "Solo", + "Versus", + "Opciones", + "Cr\u00e9ditos", + "Dejar" + ], + "descriptions": [ + "Juega solo y sin conexi\u00f3n contra un robot", + "Juega dos en la misma pantalla", + "Cambiar el zoom y la configuraci\u00f3n", + "Muestra la lista de autores del juego.", + "Cierra el juego y vuelve a" + ], + "distribute": "No distribuir" + }, + "settings": { + "title": "Opciones", + "back": "Regresar", + "size": "Tama\u00f1o de la interfaz", + "music": "Activar musica", + "lang": "Lengua", + "voice": "Activar voz", + "yes": "s\u00ed", + "no": "No", + "notice": "La configuraci\u00f3n solo se aplicar\u00e1 despu\u00e9s de reiniciar Kartik" + }, + "win": { + "solo": { + "win": "Hab\u00e9is ganado !", + "lose": "Perdiste !" + }, + "versus": "\u00a1El jugador 0 ha ganado!", + "quit": [ + "Presione Esc para salir", + "Presione B para salir" + ] + }, + "online": { + "menu": { + "local": "Local", + "online": "En l\u00ednea", + "dlocal": "Juega con un amigo en la misma m\u00e1quina", + "donline": "Juega con un amigo en diferentes m\u00e1quinas." + }, + "error": { + "connection": "Error de comunicaci\u00f3n", + "disconnect": "Desconectado" + }, + "connecting": "Conexi\u00f3n al servidor ...", + "intro": { + "create": "Crea un juego", + "pcreate": "Dale este c\u00f3digo a tu compa\u00f1ero de equipo para que inicie sesi\u00f3n en tu juego:", + "join": "Unirse a un juego", + "pjoin": "Ingrese el c\u00f3digo de su compa\u00f1ero de equipo para unirse a su juego:" + }, + "disconnected": "Conexi\u00f3n perdida", + "unable": "Imposible conectarse al servidor", + "internal": "Error interno del sistema", + "loading": "Prepar\u00e1ndose para el juego ...", + "discord": "En l\u00ednea", + "generate": "Cargando la tierra ...", + "discord2": "Encontrar un error", + "timeout": "Se super\u00f3 el tiempo de espera", + "aborted": "El otro jugador ha dejado el juego.", + "car0": "Tu carro", + "car1": "Su auto" + }, + "stats": { + "menu": "Estad\u00edsticas", + "title": "Estad\u00edsticas de juego", + "items": { + "times.single": "Tiempo empleado en el modo de un jugador", + "times.local": "Tiempo empleado en modo local", + "times.online": "Tiempo pasado en modo online", + "results.wins": "Numero de juegos ganados", + "results.loses": "N\u00famero de juegos perdidos", + "ingame.walls": "N\u00famero total de colisiones", + "ingame.laps": "N\u00famero total de vueltas", + "ingame.turns": "N\u00famero total de vueltas" + } + }, + "polymer": { + "gpu": "Estado de soporte de GPU", + "gpuShift": "Presione Shift para ver m\u00e1s", + "logging": "Te conectamos; ", + "loginClose": "Ahora puede cerrar esta pesta\u00f1a o ventana y volver a Kartik.", + "gatheringLogin": "Verificamos su cuenta; ", + "loginIntro": "Presione L para conectarse", + "logout": "L para cerrar la sesi\u00f3n", + "ktoLevel": "Nivel", + "ktoMaxLevel": "Dios", + "error": [ + "No se puede comunicar con los servidores.", + "No podr\u00e1 utilizar Kartik Online hasta que podamos comunicarnos con los servidores.", + "Conectar a internet" + ], + "updateError": [ + "No se puede buscar actualizaciones", + "No podemos buscar actualizaciones en este momento, int\u00e9ntelo de nuevo m\u00e1s tarde." + ], + "levelup": [ + "Nivel Superior !", + "Has alcanzado el nivel", + "y ganas poder! " + ], + "finished": [ + "\u00a1Ganaste el juego!", + "\u00a1\u00bfKartik terminado ?! " + ], + "token": [ + "Desconectado de otro lugar", + "Se ha desconectado de Kartik Online porque su sesi\u00f3n se termin\u00f3 en otro lugar." + ] + } +} \ No newline at end of file diff --git a/kartik/lang/fr.json b/kartik/lang/fr.json new file mode 100755 index 0000000..b09debc --- /dev/null +++ b/kartik/lang/fr.json @@ -0,0 +1,237 @@ +{ + "crash": { + "title": "Rapporteur de plantages de Kartik", + "head": "Kartik a cessé de fonctionner", + "intro": "Kartik a rencontré un problème et s'est arrêté inopinément. Nous avons collecté des informations supplémentaires, et un rapport de plantage a automatiquement été envoyé aux développeurs si vous étiez connecté à Internet.", + "report": [ + "De plus, un rapport de plantage a été créé dans « ", + " », afin que vous puissiez l'envoyer aux développeurs lorsque vous aurez accès à Internet." + ], + "close": "Fermer", + "reset": "Réinitialiser Kartik et fermer" + }, + "updates": { + "ok": "À jour", + "available": "Mises à jour du jeu disponibles", + "git": "Exécution de la version trunk", + "error": "Impossible de rechercher les mises à jour", + "wait": "Recherche de mises à jour...", + "warn": [ + "Des mises à jour sont disponibles", + "Téléchargez la nouvelle version de Kartik depuis le site officiel pour bénéficier des dernières fonctionnalités et corrections de bugs." + ] + }, + "scenario": { + "intro": [ + "Hey, salut, ça te dit une petite course ?", + "Ah, te revoilà ! Ça te dit une petite course ?", + "Et si on se faisait une petite course ?", + "On fait un tour ?" + ], + "ahead1": [ + "Oh non !", + "Putain, c'est pas possible !", + "Mais je vais pas y arriver...", + "Et merde...", + "Pourquoi toi ?" + ], + "ahead2": [ + "Hi hi hi", + "Celle-là est pour moi !", + "Je l'aurai !", + "Elle est pour moi !", + "C'est à moi !" + ], + "won1": [ + "Bien joué !", + "Tant pis pour moi...", + "J'aurai pu espérer...", + "Mais, c'est pas très sympa !", + "Bravo !" + ], + "won2": [ + "Je te l'avais dit !", + "Comme si je t'avais pas prévenu !", + "J'ai gagné !", + "Génial, je l'ai gagnée !", + "Et une de plus pour moi !" + ], + "wall1": [ + "Ah ah !", + "Bah alors, on va pas droit ?", + "Ouch", + "Ça doit faire mal...", + "Splaf, c't'obstacle !" + ], + "wall2": [ + "Merde", + "Crotte", + "Pas possible", + "Puti" + ], + "start": [ + "Je vais t'éclater !", + "Tu vas voir, je vais t'en faire une de ces courses !", + "Tu m'en diras des nouvelles", + "Allons-y !", + "Et, c'est parti !", + "Wooo, en avant !" + ] + }, + "discord": { + "credits": [ + "En attente", + "Dans les crédits" + ], + "game": [ + "En jeu", + "Mode Solo", + "Mode Versus", + "En pause" + ], + "intro": [ + "En attente", + "Sur l'introduction" + ], + "settings": [ + "En attente", + "Dans les paramètres" + ], + "win": [ + "Vient de gagner", + "Vient de perdre" + ] + }, + "intro": [ + "Appuyez sur Entrée pour commencer", + "Appuyez sur A pour commencer" + ], + "game": { + "credits": { + "by": "par" + }, + "gpause": { + "title": "Jeu en pause", + "continueg": "Continuer", + "showhb": "Afficher hitbox", + "hidehb": "Masquer hitbox", + "quit": "Quitter" + } + }, + "menu": { + "titles": [ + "Solo", + "Versus", + "Options", + "Crédits", + "Quitter" + ], + "descriptions": [ + "Jouer seul et hors ligne contre un robot", + "Jouer à deux sur le même écran", + "Modifier le zoom et les paramètres", + "Afficher la liste des auteurs du jeu", + "Fermer le jeu et retourner à" + ], + "distribute": "Ne pas distribuer" + }, + "settings": { + "title": "Options", + "back": "Retour", + "size": "Taille de l'interface", + "music": "Activer la musique", + "lang": "Langue", + "voice": "Activer la voix", + "yes": "oui", + "no": "non", + "notice": "Les paramètres ne seront appliqués qu'après le redémarrage de Kartik" + }, + "win": { + "solo": { + "win": "Vous avez gagné !", + "lose": "Vous avez perdu !" + }, + "versus": "Joueur 0 a gagné !", + "quit": [ + "Appuyez sur Échap pour quitter", + "Appuyez sur B pour quitter" + ] + }, + "online": { + "menu": { + "local": "Local", + "online": "En ligne", + "dlocal": "Jouer avec un ami sur la même machine", + "donline": "Jouer avec un ami sur des machines différentes" + }, + "error": { + "connection": "Erreur de communication", + "disconnect": "Déconnecté" + }, + "connecting": "Connexion au serveur...", + "intro": { + "create": "Créer une partie", + "pcreate": "Donnez ce code à votre coéquipier pour qu'il se connecte à votre partie :", + "join": "Rejoindre une partie", + "pjoin": "Entrez le code de votre coéquipier pour rejoindre sa partie :" + }, + "disconnected": "Connexion perdue", + "unable": "Impossible de se connecter au serveur", + "internal": "Erreur système interne", + "loading": "Préparation de la partie...", + "discord": "En ligne", + "generate": "Chargement du terrain...", + "discord2": "Rencontre une erreur", + "timeout": "Le délai d'attente a été dépassé", + "aborted": "L'autre joueur à quitté la partie", + "car0": "Votre voiture", + "car1": "Sa voiture" + }, + "stats": { + "menu": "Statistiques", + "title": "Statistiques sur le jeu", + "items": { + "times.single": "Temps passé en mode solo", + "times.local": "Temps passé en mode local", + "times.online": "Temps passé en mode en ligne", + "results.wins": "Nombre de parties gagnées", + "results.loses": "Nombre de parties perdues", + "ingame.walls": "Nombre total de collisions", + "ingame.laps": "Nombre total de tours", + "ingame.turns": "Nombre total de virages" + } + }, + "polymer": { + "gpu": "État de support GPU", + "gpuShift": "Appuyez sur Shift pour voir plus", + "logging": "Nous vous connectons ; vérifiez la fenêtre de votre navigateur Web et autorisez la connexion.", + "loginClose": "Vous pouvez maintenant fermer cet onglet ou cette fenêtre et retourner à Kartik.", + "gatheringLogin": "Nous vérifions votre compte ; cela peut prendre un moment.", + "loginIntro": "Appuyez sur L pour vous connecter", + "logout": "L pour vous déconnecter", + "ktoLevel": "Niveau", + "ktoMaxLevel": "Dieu", + "error": [ + "Impossible de communiquer avec les serveurs", + "Vous ne pourrez pas utiliser Kartik Online tant que nous n'arrivons pas à communiquer avec les serveurs.", + "Connectez-vous à Internet" + ], + "updateError": [ + "Impossible de rechercher les mises à jour", + "Nous ne pouvons pas rechercher les mises à jour en ce moment, réessayez plus tard." + ], + "levelup": [ + "Niveau supérieur !", + "Vous avez atteint le niveau", + "et vous gagnez du pouvoir ! Continuez et essayez d'atteindre le niveau maximal." + ], + "finished": [ + "Vous avez battu le jeu !", + "Fini Kartik ?! Oui. Vous avez atteint le niveau Dieu!" + ], + "token": [ + "Déconnecté depuis autre part", + "Vous avez été déconnecté de Kartik Online parce que votre session a été terminée depuis autre part." + ] + } +} diff --git a/kartik/lang/it.json b/kartik/lang/it.json new file mode 100755 index 0000000..4b32d71 --- /dev/null +++ b/kartik/lang/it.json @@ -0,0 +1,237 @@ +{ + "crash": { + "title": "Kartik Crash Reporter", + "head": "Kartik ha smesso di funzionare", + "intro": "Kartik ha incontrato un problema e si \u00e8 fermato inaspettatamente.Abbiamo raccolto informazioni aggiuntive e un rapporto sull'arresto anomalo \u00e8 stato inviato automaticamente agli sviluppatori se eri connesso a Internet.", + "report": [ + "Inoltre, \u00e8 stato creato un rapporto sugli arresti anomalo in \"", + "\", in modo da poterlo inviare agli sviluppatori quando si ha accesso a Internet." + ], + "close": "Chiudi", + "reset": "ResetTa Kartik e chiudi" + }, + "updates": { + "ok": "Aggiornato", + "available": "Aggiornamenti di gioco disponibili", + "git": "Esecuzione della versione trunk", + "error": "Impossibile verificare la disponibilit\u00e0 di aggiornamenti", + "wait": "Controllo della disponibilit\u00e0 di aggiornamenti in...", + "warn": [ + "Gli aggiornamenti sono disponibili", + "Scarica la nuova versione di Kartik dal sito ufficiale per beneficiare delle ultime funzionalit\u00e0 e correzioni di bug." + ] + }, + "scenario": { + "intro": [ + "Ehi, ciao, questo ti dice una piccola gara?", + "Ah, eccoti di nuovo qui! Questo ti dice una piccola gara?", + "E se avessimo una piccola gara?", + "Andiamo a fare un giro?" + ], + "ahead1": [ + "Oh no!", + "Accidenti, non \u00e8 possibile!", + "Ma non ci andro'...", + "Oh...", + "Perch\u00e9 tu?" + ], + "ahead2": [ + "Ciao ciao ciao", + "Questo \u00e8 per me!", + "Lo avr\u00f2!", + "\u00c8 per me!", + "\u00c8 mio!" + ], + "won1": [ + "Ben fatto!", + "Peccato per me...", + "Avrei potuto sperare...", + "Ma non \u00e8 molto bello!", + "Ben fatto!" + ], + "won2": [ + "Te l'avevo detto!", + "Come se non ti avessi avvertito!", + "Ho vinto!", + "Grandioso, l'ho vinto!", + "E un altro per me!" + ], + "wall1": [ + "Ah ah!", + "Beh, allora non andremo dritti?", + "ahi", + "Deve far male...", + "Splaf, \u00e8 un ostacolo!" + ], + "wall2": [ + "dannare", + "merda", + "Assolutamente no", + "" + ], + "start": [ + "Mi divertir\u00f2 con te!", + "Vedrai, ti far\u00f2 una di queste gare!", + "Me lo dirai", + "Andiamo!", + "Ci siamo!", + "Wooo, avanti!" + ] + }, + "discord": { + "credits": [ + "In sospeso", + "Nei crediti" + ], + "game": [ + "a rischio", + "Modalit\u00e0 Solo", + "Modalit\u00e0 rispetto", + "Pausa" + ], + "intro": [ + "In sospeso", + "L'introduzione" + ], + "settings": [ + "In sospeso", + "Nelle impostazioni" + ], + "win": [ + "Appena vinto", + "Appena perso" + ] + }, + "intro": [ + "Premere INVIO per iniziare", + "Premere A per iniziare" + ], + "game": { + "credits": { + "by": "presso" + }, + "gpause": { + "title": "Gioco in pausa", + "continueg": "continuare", + "showhb": "Mostra hitbox", + "hidehb": "Nascondi hitbox", + "quit": "Lasciare" + } + }, + "menu": { + "titles": [ + "assolo", + "contro", + "Opzioni", + "Crediti", + "Lasciare" + ], + "descriptions": [ + "Gioca da solo e offline contro un robot", + "Riproduci due sullo stesso schermo", + "Modificare lo zoom e le impostazioni", + "Visualizzare l'elenco degli autori di giochi", + "Chiudere la partita e tornare a" + ], + "distribute": "Non distribuire" + }, + "settings": { + "title": "Opzioni", + "back": "ritorno", + "size": "Dimensioni interfaccia", + "music": "Attivare la musica", + "lang": "lingua", + "voice": "Abilitare la voce", + "yes": "s\u00ec", + "no": "No", + "notice": "Le impostazioni verranno applicate solo dopo il riavvio di Kartik" + }, + "win": { + "solo": { + "win": "Hai vinto!", + "lose": "Hai perso!" + }, + "versus": "Giocatore 0 ha vinto!", + "quit": [ + "Premere ESC per uscire", + "Premere B per uscire" + ] + }, + "online": { + "menu": { + "local": "locale", + "online": "in linea", + "dlocal": "Gioca con un amico sulla stessa macchina", + "donline": "Gioca con un amico su macchine diverse" + }, + "error": { + "connection": "Errore di comunicazione", + "disconnect": "sconnesso" + }, + "connecting": "Connessione al server in linea con il server in...", + "intro": { + "create": "Creare una parte", + "pcreate": "Dai questo codice al tuo compagno di squadra per connetterti al tuo gioco:", + "join": "Partecipa a una partita", + "pjoin": "Inserisci il codice del tuo compagno di squadra per unirti al suo gioco:" + }, + "disconnected": "Connessione persa", + "unable": "Impossibile connettersi al server", + "internal": "Errore interno del sistema", + "loading": "Preparazione della parte...", + "discord": "in linea", + "generate": "Caricare il terreno...", + "discord2": "Rileva un errore", + "timeout": "Il timeout \u00e8 stato superato", + "aborted": "L'altro giocatore ha lasciato il gioco", + "car0": "La tua auto", + "car1": "La sua auto" + }, + "stats": { + "menu": "statistica", + "title": "Statistiche di gioco", + "items": { + "times.single": "Tempo trascorso in modalit\u00e0 giocatore singolo", + "times.local": "Tempo trascorso in modalit\u00e0 locale", + "times.online": "Tempo trascorso in modalit\u00e0 online", + "results.wins": "Numero di partite vinte", + "results.loses": "Numero di partite perse", + "ingame.walls": "Numero totale di collisioni", + "ingame.laps": "Numero totale di turni", + "ingame.turns": "Numero totale di turni" + } + }, + "polymer": { + "gpu": "Stato supporto GPU", + "gpuShift": "Toccare MAIUSC per saperne di pi\u00f9", + "logging": "Ti colleghiamo; controllare la finestra del browser Web e consentire la connessione.", + "loginClose": "Ora puoi chiudere questa scheda o finestra e tornare a Kartik.", + "gatheringLogin": "Verifichiamo il tuo account; potrebbe volere un po'.", + "loginIntro": "Premere L per accedere", + "logout": "L per disconnettersi", + "ktoLevel": "livello", + "ktoMaxLevel": "dio", + "error": [ + "Impossibile comunicare con i server", + "Non potrai utilizzare Kartik Online fino a quando non saremo in grado di comunicare con i server.", + "Connettersi a Internet" + ], + "updateError": [ + "Impossibile verificare la disponibilit\u00e0 di aggiornamenti", + "Non \u00e8 possibile verificare la disponibilit\u00e0 di aggiornamenti in questo momento, riprovare pi\u00f9 tardi." + ], + "levelup": [ + "Di alto livello!", + "Hai raggiunto il livello", + "e si ottiene il potere! Vai avanti e cerca di raggiungere il livello massimo." + ], + "finished": [ + "Hai battuto la partita!", + "Niente pi\u00f9 Kartik?! s\u00ec. Avete raggiunto il livello di Dio!" + ], + "token": [ + "Disconnesso da altrove", + "Sei stato disconnesso da Kartik Online perch\u00e9 la tua sessione \u00e8 terminata da altrove." + ] + } +} \ No newline at end of file diff --git a/kartik/lang/jp.json b/kartik/lang/jp.json new file mode 100755 index 0000000..ca98eb7 --- /dev/null +++ b/kartik/lang/jp.json @@ -0,0 +1,237 @@ +{ + "crash": { + "title": "Kartik\u30af\u30e9\u30c3\u30b7\u30e5\u30ec\u30dd\u30fc\u30bf\u30fc", + "head": "Kartik\u306f\u52d5\u4f5c\u3092\u505c\u6b62\u3057\u307e\u3057\u305f", + "intro": "Kartik\u306f\u554f\u984c\u306b\u906d\u9047\u3057\u3001\u4e88\u671f\u305b\u305a\u505c\u6b62\u3057\u307e\u3057\u305f\u3002", + "report": [ + "\u3055\u3089\u306b\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u30ec\u30dd\u30fc\u30c8\u306f\u300c", + "\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3068\u304d\u306b\u958b\u767a\u8005\u306b\u9001\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002" + ], + "close": "\u9589\u3058\u308b\u306b\u306f", + "reset": "Kartik\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u9589\u3058\u307e\u3059" + }, + "updates": { + "ok": "\u6700\u65b0\u306e", + "available": "\u5229\u7528\u53ef\u80fd\u306a\u30b2\u30fc\u30e0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8", + "git": "\u30c8\u30e9\u30f3\u30af\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5b9f\u884c", + "error": "\u66f4\u65b0\u3092\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093", + "wait": "\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u78ba\u8a8d ...", + "warn": [ + "\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059", + "\u6700\u65b0\u306e\u6a5f\u80fd\u3068\u30d0\u30b0\u4fee\u6b63\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001\u516c\u5f0fWeb\u30b5\u30a4\u30c8\u304b\u3089\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eKartik\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002" + ] + }, + "scenario": { + "intro": [ + "\u306d\u3048\u3001\u3053\u3093\u306b\u3061\u306f\u3001\u30af\u30a4\u30c3\u30af\u30e9\u30f3\u306f\u3069\u3046\u3067\u3059\u304b\uff1f", + "\u3042\u3042\u3001\u307e\u305f\u3044\u308b\u3088\uff01", + "\u3061\u3087\u3063\u3068\u3057\u305f\u30ec\u30fc\u30b9\u306f\u3044\u304b\u304c\u3067\u3059\u304b\uff1f", + "\u6563\u6b69\u3057\u307e\u305b\u3093\u304b\uff1f" + ], + "ahead1": [ + "\u5927\u91ce \uff01", + "\u304f\u305d\u30fc\u3001\u305d\u308c\u306f\u4e0d\u53ef\u80fd\u3067\u3059\uff01", + "\u3057\u304b\u3057\u3001\u79c1\u306f\u305d\u3053\u306b\u884c\u304f\u3064\u3082\u308a\u306f\u3042\u308a\u307e\u305b\u3093...", + "\u305d\u3057\u3066\u305f\u308f\u3054\u3068...", + "\u306a\u305c\u3042\u306a\u305f\u306f\uff1f" + ], + "ahead2": [ + "\u30d2\u30d2\u30d2\u30d2", + "\u3053\u308c\u306f\u79c1\u306e\u305f\u3081\u3067\u3059\uff01", + "\u6301\u3063\u3066\u3044\u304d\u307e\u3059\uff01", + "\u305d\u308c\u306f\u79c1\u306e\u305f\u3081\u3067\u3059\uff01", + "\u305d\u308c\u306f\u79c1\u306e\u3082\u306e\u3067\u3059\uff01" + ], + "won1": [ + "\u826f\u3044\u30b2\u30fc\u30e0\u3067\u3059\uff01", + "\u79c1\u306b\u306f\u6b8b\u5ff5\u3067\u3059...", + "\u79c1\u306f\u671b\u3093\u3060\u304b\u3082\u3057\u308c\u306a\u3044...", + "\u3057\u304b\u3057\u3001\u305d\u308c\u306f\u3042\u307e\u308a\u3044\u3044\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\uff01", + "\u7d20\u6674\u3089\u3057\u3044 \uff01" + ], + "won2": [ + "\u5148\u307b\u3069\u3082\u8a00\u3044\u307e\u3057\u305f \uff01", + "\u79c1\u304c\u3042\u306a\u305f\u306b\u8b66\u544a\u3057\u306a\u304b\u3063\u305f\u304b\u306e\u3088\u3046\u306b\uff01", + "\u52dd\u3063\u305f \uff01", + "\u7d20\u6674\u3089\u3057\u3044\u3001\u79c1\u306f\u305d\u308c\u3092\u52dd\u3061\u53d6\u308a\u307e\u3057\u305f\uff01", + "\u305d\u3057\u3066\u79c1\u306e\u305f\u3081\u306b\u3082\u30461\u3064\uff01" + ], + "wall1": [ + "\u3042\u3042\u3042\u3042\uff01", + "\u305d\u308c\u3067\u306f\u3001\u79c1\u305f\u3061\u306f\u6b63\u3057\u304f\u884c\u304b\u306a\u3044\u306e\u3067\u3059\u304b\uff1f", + "\u75db\u3044", + "\u75db\u3044\u306b\u9055\u3044\u306a\u3044...", + "Splaf\u3001c't'obstacle\uff01" + ], + "wall2": [ + "\u305f\u308f\u3054\u3068", + "\u3046\u3093\u3053", + "\u3042\u308a\u3048\u306a\u3044", + "\u30d7\u30c6\u30a3" + ], + "start": [ + "\u697d\u3057\u307f\u307e\u3059\uff01", + "\u3042\u306a\u305f\u304c\u898b\u308b\u3067\u3057\u3087\u3046\u3001\u79c1\u306f\u3042\u306a\u305f\u3092\u305d\u308c\u3089\u306e\u30ec\u30fc\u30b9\u306e1\u3064\u306b\u3057\u307e\u3059\uff01", + "\u30cb\u30e5\u30fc\u30b9\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044", + "\u3055\u3042\u884c\u3053\u3046\uff01", + "\u3069\u3046\u305e \uff01", + "\u3046\u308f\u30fc\u3001\u30d5\u30a9\u30ef\u30fc\u30c9\uff01" + ] + }, + "discord": { + "credits": [ + "\u5f85\u3063\u3066\u3044\u308b", + "\u30af\u30ec\u30b8\u30c3\u30c8\u3067" + ], + "game": [ + "\u30b9\u30c6\u30fc\u30af\u30b9", + "\u30bd\u30ed\u30e2\u30fc\u30c9", + "\u5bfe\u30e2\u30fc\u30c9", + "\u4f11\u3093\u3067" + ], + "intro": [ + "\u5f85\u3063\u3066\u3044\u308b", + "\u7d39\u4ecb\u306b\u3064\u3044\u3066" + ], + "settings": [ + "\u5f85\u3063\u3066\u3044\u308b", + "\u8a2d\u5b9a\u3067" + ], + "win": [ + "\u52dd\u3063\u305f\u3070\u304b\u308a", + "\u8ca0\u3051\u305f\u3070\u304b\u308a" + ] + }, + "intro": [ + "Enter\u30ad\u30fc\u3092\u62bc\u3057\u3066\u958b\u59cb\u3057\u307e\u3059", + "A\u3092\u62bc\u3057\u3066\u958b\u59cb\u3057\u307e\u3059" + ], + "game": { + "credits": { + "by": "\u306b" + }, + "gpause": { + "title": "\u30b2\u30fc\u30e0\u304c\u4e00\u6642\u505c\u6b62\u3057\u307e\u3057\u305f", + "continueg": "\u7d9a\u3051\u308b", + "showhb": "\u30d2\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u8868\u793a", + "hidehb": "\u30d2\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u975e\u8868\u793a", + "quit": "\u53bb\u308b\u306b\u306f" + } + }, + "menu": { + "titles": [ + "\u30bd\u30ed", + "\u5bfe", + "\u30aa\u30d7\u30b7\u30e7\u30f3", + "\u30af\u30ec\u30b8\u30c3\u30c8", + "\u53bb\u308b\u306b\u306f" + ], + "descriptions": [ + "\u30ed\u30dc\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u4e00\u4eba\u3067\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u904a\u3076", + "\u540c\u3058\u753b\u9762\u30672\u3064\u518d\u751f\u3059\u308b", + "\u30ba\u30fc\u30e0\u3068\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b", + "\u30b2\u30fc\u30e0\u306e\u4f5c\u8005\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b", + "\u30b2\u30fc\u30e0\u3092\u9589\u3058\u3066\u3001\u306b\u623b\u308a\u307e\u3059" + ], + "distribute": "\u914d\u5e03\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044" + }, + "settings": { + "title": "\u30aa\u30d7\u30b7\u30e7\u30f3", + "back": "\u623b\u308b", + "size": "\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30b5\u30a4\u30ba", + "music": "\u97f3\u697d\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b", + "lang": "\u820c", + "voice": "\u97f3\u58f0\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b", + "yes": "\u306f\u3044", + "no": "\u3044\u3044\u3048", + "notice": "\u8a2d\u5b9a\u306f\u3001Kartik\u3092\u518d\u8d77\u52d5\u3057\u305f\u5f8c\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u307e\u3059" + }, + "win": { + "solo": { + "win": "\u3042\u306a\u305f\u306f\u52dd\u3061\u307e\u3057\u305f\uff01", + "lose": "\u3042\u306a\u305f\u304c\u8ca0\u3051\u305f \uff01" + }, + "versus": "\u30d7\u30ec\u30a4\u30e4\u30fc0\u304c\u52dd\u3061\u307e\u3057\u305f\uff01", + "quit": [ + "Esc\u30ad\u30fc\u3092\u62bc\u3057\u3066\u7d42\u4e86\u3057\u307e\u3059", + "B\u3092\u62bc\u3057\u3066\u7d42\u4e86\u3057\u307e\u3059" + ] + }, + "online": { + "menu": { + "local": "\u30ed\u30fc\u30ab\u30eb", + "online": "\u5217\u3092\u306a\u3057\u3066", + "dlocal": "\u540c\u3058\u30de\u30b7\u30f3\u3067\u53cb\u9054\u3068\u904a\u3076", + "donline": "\u5225\u306e\u30de\u30b7\u30f3\u3067\u53cb\u9054\u3068\u904a\u3076" + }, + "error": { + "connection": "\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc", + "disconnect": "\u5207\u65ad\u3055\u308c\u307e\u3057\u305f" + }, + "connecting": "\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a...", + "intro": { + "create": "\u30b2\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b", + "pcreate": "\u3053\u306e\u30b3\u30fc\u30c9\u3092\u30c1\u30fc\u30e0\u30e1\u30a4\u30c8\u306b\u6e21\u3057\u3066\u3001\u30b2\u30fc\u30e0\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002", + "join": "\u30b2\u30fc\u30e0\u306b\u53c2\u52a0\u3059\u308b", + "pjoin": "\u30c1\u30fc\u30e0\u30e1\u30a4\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u3001\u30b2\u30fc\u30e0\u306b\u53c2\u52a0\u3057\u307e\u3059\u3002" + }, + "disconnected": "\u63a5\u7d9a\u5207\u65ad", + "unable": "\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093", + "internal": "\u5185\u90e8\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc", + "loading": "\u30b2\u30fc\u30e0\u306e\u6e96\u5099..\u3002", + "discord": "\u5217\u3092\u306a\u3057\u3066", + "generate": "\u571f\u5730\u306e\u8aad\u307f\u8fbc\u307f..\u3002", + "discord2": "\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f", + "timeout": "\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u8d85\u3048\u307e\u3057\u305f", + "aborted": "\u4ed6\u306e\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u30b2\u30fc\u30e0\u3092\u96e2\u308c\u307e\u3057\u305f", + "car0": "\u3042\u306a\u305f\u306e\u8eca", + "car1": "\u5f7c\u306e\u8eca" + }, + "stats": { + "menu": "\u7d71\u8a08", + "title": "\u30b2\u30fc\u30e0\u7d71\u8a08", + "items": { + "times.single": "\u30b7\u30f3\u30b0\u30eb\u30d7\u30ec\u30a4\u30e4\u30fc\u30e2\u30fc\u30c9\u3067\u8cbb\u3084\u3057\u305f\u6642\u9593", + "times.local": "\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3067\u8cbb\u3084\u3057\u305f\u6642\u9593", + "times.online": "\u30aa\u30f3\u30e9\u30a4\u30f3\u30e2\u30fc\u30c9\u3067\u8cbb\u3084\u3057\u305f\u6642\u9593", + "results.wins": "\u52dd\u3063\u305f\u30b2\u30fc\u30e0\u306e\u6570", + "results.loses": "\u5931\u308f\u308c\u305f\u30b2\u30fc\u30e0\u306e\u6570", + "ingame.walls": "\u885d\u7a81\u306e\u7dcf\u6570", + "ingame.laps": "\u7dcf\u5468\u56de\u6570", + "ingame.turns": "\u7dcf\u30bf\u30fc\u30f3\u6570" + } + }, + "polymer": { + "gpu": "GPU\u30b5\u30dd\u30fc\u30c8\u30b9\u30c6\u30fc\u30bf\u30b9", + "gpuShift": "Shift\u30ad\u30fc\u3092\u62bc\u3057\u3066\u3001\u8a73\u7d30\u3092\u8868\u793a\u3057\u307e\u3059", + "logging": "\u79c1\u305f\u3061\u306f\u3042\u306a\u305f\u3092\u3064\u306a\u304e\u307e\u3059\u3002 ", + "loginClose": "\u3053\u308c\u3067\u3001\u3053\u306e\u30bf\u30d6\u307e\u305f\u306f\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u3066\u3001Kartik\u306b\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002", + "gatheringLogin": "\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002", + "loginIntro": "L\u3092\u62bc\u3057\u3066\u63a5\u7d9a\u3057\u307e\u3059", + "logout": "\u30ed\u30b0\u30a2\u30a6\u30c8\u3059\u308bL", + "ktoLevel": "\u30ec\u30d9\u30eb", + "ktoMaxLevel": "\u795e\u69d8", + "error": [ + "\u30b5\u30fc\u30d0\u30fc\u3068\u901a\u4fe1\u3067\u304d\u307e\u305b\u3093", + "\u30b5\u30fc\u30d0\u30fc\u3068\u901a\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u3001KartikOnline\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002", + "\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3059\u308b" + ], + "updateError": [ + "\u66f4\u65b0\u3092\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093", + "\u73fe\u5728\u3001\u66f4\u65b0\u3092\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093\u3002\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002" + ], + "levelup": [ + "\u3088\u308a\u9ad8\u3044\u30ec\u30d9\u30eb\uff01", + "\u30ec\u30d9\u30eb\u306b\u9054\u3057\u307e\u3057\u305f", + "\u305d\u3057\u3066\u3042\u306a\u305f\u306f\u529b\u3092\u5f97\u308b\uff01" + ], + "finished": [ + "\u3042\u306a\u305f\u306f\u30b2\u30fc\u30e0\u306b\u52dd\u3061\u307e\u3057\u305f\uff01", + "\u5b8c\u6210\u3057\u305fKartik \uff1f\uff01" + ], + "token": [ + "\u4ed6\u306e\u5834\u6240\u304b\u3089\u5207\u65ad\u3055\u308c\u307e\u3057\u305f", + "\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u4ed6\u306e\u5834\u6240\u3067\u7d42\u4e86\u3057\u305f\u305f\u3081\u3001KartikOnline\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u307e\u3057\u305f\u3002" + ] + } +} \ No newline at end of file diff --git a/kartik/lang/languages.json b/kartik/lang/languages.json new file mode 100755 index 0000000..7cdf3f6 --- /dev/null +++ b/kartik/lang/languages.json @@ -0,0 +1,12 @@ +{ + "en": "English", + "fr": "Français", + "es": "Español", + "it": "Italiano", + "pt": "Português", + "de": "Deutsch", + "nl": "Nederlands", + "zh": "中国人", + "jp": "日本語", + "ru": "русский" +} diff --git a/kartik/lang/loader.js b/kartik/lang/loader.js new file mode 100755 index 0000000..dff903a --- /dev/null +++ b/kartik/lang/loader.js @@ -0,0 +1,28 @@ +function getCookie(cname) { + var name = cname + "="; + var decodedCookie = decodeURIComponent(document.cookie); + var ca = decodedCookie.split(';'); + for(var i = 0; i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kartik/logo/logo-beta.png b/kartik/logo/logo-beta.png new file mode 100755 index 0000000..6f6229a Binary files /dev/null and b/kartik/logo/logo-beta.png differ diff --git a/kartik/logo/logo-eap.png b/kartik/logo/logo-eap.png new file mode 100755 index 0000000..142903a Binary files /dev/null and b/kartik/logo/logo-eap.png differ diff --git a/kartik/logo/logo-git.png b/kartik/logo/logo-git.png new file mode 100755 index 0000000..fb0e72c Binary files /dev/null and b/kartik/logo/logo-git.png differ diff --git a/kartik/logo/logo-nightly.png b/kartik/logo/logo-nightly.png new file mode 100755 index 0000000..8f83abb Binary files /dev/null and b/kartik/logo/logo-nightly.png differ diff --git a/kartik/logo/logo.ico b/kartik/logo/logo.ico new file mode 100755 index 0000000..b008109 Binary files /dev/null and b/kartik/logo/logo.ico differ diff --git a/kartik/logo/logo.png b/kartik/logo/logo.png new file mode 100755 index 0000000..fac4ab3 Binary files /dev/null and b/kartik/logo/logo.png differ diff --git a/kartik/logo/mod.png b/kartik/logo/mod.png new file mode 100755 index 0000000..4aadc92 Binary files /dev/null and b/kartik/logo/mod.png differ diff --git a/kartik/logo/newloader.svg b/kartik/logo/newloader.svg new file mode 100755 index 0000000..1020f47 --- /dev/null +++ b/kartik/logo/newloader.svg @@ -0,0 +1,1914 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kartik/logo/old/logo-beta.png b/kartik/logo/old/logo-beta.png new file mode 100755 index 0000000..7b1890b Binary files /dev/null and b/kartik/logo/old/logo-beta.png differ diff --git a/kartik/logo/old/logo-git.png b/kartik/logo/old/logo-git.png new file mode 100755 index 0000000..4ba8f09 Binary files /dev/null and b/kartik/logo/old/logo-git.png differ diff --git a/kartik/logo/old/logo-nightly.png b/kartik/logo/old/logo-nightly.png new file mode 100755 index 0000000..fcfb226 Binary files /dev/null and b/kartik/logo/old/logo-nightly.png differ diff --git a/kartik/logo/old/logo.png b/kartik/logo/old/logo.png new file mode 100755 index 0000000..148fba5 Binary files /dev/null and b/kartik/logo/old/logo.png differ diff --git a/kartik/logo/server.png b/kartik/logo/server.png new file mode 100755 index 0000000..d1479d3 Binary files /dev/null and b/kartik/logo/server.png differ diff --git a/kartik/logo/vendor.png b/kartik/logo/vendor.png new file mode 100755 index 0000000..fbcc643 Binary files /dev/null and b/kartik/logo/vendor.png differ diff --git a/kartik/modding/compiler.js b/kartik/modding/compiler.js new file mode 100755 index 0000000..240c9a9 --- /dev/null +++ b/kartik/modding/compiler.js @@ -0,0 +1,17 @@ +class BuildError extends Error { + constructor(orig, ...params) { + super(...params); + this.name = "BuildError"; + this.stack = this.stack + "\n" + orig.stack; + } +} + +const tsbuild = require('../typescript/builder'); + +for (file of importedTypeScriptFiles) { + try { + tsbuild(file.file, homedir + "/.kartik/build/" + file.output); + } catch (e) { + throw new BuildError(e, "Error while building " + file.file + " from package " + file.pkg) + } +} \ No newline at end of file diff --git a/kartik/modding/hooks.js b/kartik/modding/hooks.js new file mode 100755 index 0000000..8e189d2 --- /dev/null +++ b/kartik/modding/hooks.js @@ -0,0 +1,261 @@ +const { dialog } = require('electron'); +const fs = require('fs'); + +function hook_Music(mod, type, hname) { + hook = mod["Hook"][hname]; + names = Object.keys(hook); + + for (i in names) { + name = names[i]; + if (name !== "Music.Start" && name !== "Music.Prepare" && name !== "Music.Title" && name !== "Music.Credits" && name !== "Music.Win" && name !== "Music.Game1" && name !== "Music.Game2" && name !== "Music.Game3" && name !== "Music.Game4" && name !== "Music.Game5" && name !== "Music.Game6" && name !== "Music.Game7" && name !== "Music.Game8" && name !== "Music.Game9" && name !== "Music.Menu") { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": hook " + hname + " (" + type + "): invalid hook data, EXITING" + } + ) + process.exit(2); + } else { + switch (name) { + case "Music.Start": + resources.music['start'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['start'].original = false; + break; + case "Music.Title": + resources.music['title'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['title'].original = false; + break; + case "Music.Menu": + resources.music['title'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['title'].original = false; + break; + case "Music.Credits": + resources.music['credits'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['credits'].original = false; + break; + case "Music.Win": + resources.music['win'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['win'].original = false; + break; + case "Music.Prepare": + resources.music['prepare'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['prepare'].original = false; + break; + case "Music.Game1": + resources.music['game1'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game1'].original = false; + break; + case "Music.Game2": + resources.music['game2'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game2'].original = false; + break; + case "Music.Game3": + resources.music['game3'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game3'].original = false; + break; + case "Music.Game4": + resources.music['game4'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game4'].original = false; + break; + case "Music.Game5": + resources.music['game5'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game5'].original = false; + break; + case "Music.Game6": + resources.music['game6'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game6'].original = false; + break; + case "Music.Game7": + resources.music['game7'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game7'].original = false; + break; + case "Music.Game8": + resources.music['game8'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game8'].original = false; + break; + case "Music.Game9": + resources.music['game9'].file = mod["_Path"] + "/" + mod["Hook"][hname][name]; + resources.music['game9'].original = false; + break; + } + } + } +} + +function hook_SoundFX(mod, type, hname) { + hook = mod["Hook"][hname]; + names = Object.keys(hook); + + for (i in names) { + name = names[i]; + if (name !== "SFX.Click" && name !== "SFX.Crash" && name !== "SFX.Intro" && name !== "SFX.Last" && name !== "SFX.Menu" && name !== "SFX.Pass" && name !== "SFX.Pause" && name !== "SFX.Start" && name !== "SFX.Win") { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": hook " + hname + " (" + type + "): invalid hook data, EXITING" + } + ) + process.exit(2); + } else { + switch (name) { + case "SFX.Click": + resources.sfx['click'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Crash": + resources.sfx['crash'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Intro": + resources.sfx['intro'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Last": + resources.sfx['last'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Menu": + resources.sfx['menu'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Pass": + resources.sfx['pass'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Pause": + resources.sfx['pause'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Start": + resources.sfx['start'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + case "SFX.Win": + resources.sfx['win'] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + break; + } + } + } +} + +function hook_Car(mod, type, hname) { + hook = mod["Hook"][hname]; + names = Object.keys(hook); + + for (i in names) { + name = names[i]; + + if (name.startsWith("Car.")) { + resources.cars[name.substr(4)] = mod["_Path"] + "/" + mod["Hook"][hname][name]; + } else { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": hook " + hname + " (" + type + "): invalid hook data, EXITING" + } + ) + process.exit(2); + } + } +} + +function hook_Circuit(mod, type, hname) { + hook = mod["Hook"][hname]; + names = Object.keys(hook); + + for (i in names) { + name = names[i]; + + if (name.startsWith("Circuit.")) { + resources.races[name.substr(4)] = mod["_Path"] + "/" + mod["Hook"][hname][name] + ".html"; + } else { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": hook " + hname + " (" + type + "): invalid hook data, EXITING" + } + ) + process.exit(2); + } + } +} + +function hook_API(mod, type, hname) { + console.log(" * KMP-API TypeScript engine: " + item + "$" + hname) + hook = mod["Hook"][hname]; + names = Object.keys(hook); + + for (i in names) { + name = names[i]; + + if (name === "API.Includes") { + if (fs.existsSync(mod["_Path"] + "/" + mod["Hook"][hname][name])) { + if (fs.statSync(mod["_Path"] + "/" + mod["Hook"][hname][name]).isDirectory()) { + flist = fs.readdirSync(mod["_Path"] + "/" + mod["Hook"][hname][name]); + for (file of flist) { + if (file.endsWith(".ts")) { + importedTypeScriptFiles.push({ + file: mod["_Path"] + "/" + mod["Hook"][hname][name] + "/" + file, + pkg: item, + output: item + "--" + file + ".js" + }); + } + } + } else { + importedTypeScriptFiles.push({ + file: mod["_Path"] + "/" + mod["Hook"][hname][name], + pkg: item, + output: item + "--" + mod["Hook"][hname][name] + ".js" + }); + } + } else { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": KMP-API includes " + mod["Hook"][hname][name] + " (" + mod["_Path"] + "/" + mod["Hook"][hname][name] + "): no such file or directory, EXITING" + } + ) + process.exit(2); + } + } else { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": hook " + hname + " (" + type + "): invalid hook data, EXITING" + } + ) + process.exit(2); + } + } +} + +module.exports = (mod, type, name) => { + hook = mod["Hook"][name]; + + if (type !== "Kartik.Music" && type !== "Kartik.SoundFX" && type !== "Kartik.Circuit" && type !== "Kartik.Car" && type !== "Kartik.API") { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid hook type, EXITING" + } + ) + process.exit(2); + } + + switch (type) { + case "Kartik.Music": + hook_Music(mod, type, name); + break; + case "Kartik.SoundFX": + hook_SoundFX(mod, type, name); + break; + case "Kartik.Car": + hook_Car(mod, type, name); + break; + case "Kartik.Circuit": + hook_Circuit(mod, type, name); + break; + case "Kartik.API": + hook_API(mod, type, name); + break; + } +} diff --git a/kartik/modding/parser.js b/kartik/modding/parser.js new file mode 100755 index 0000000..2c39055 --- /dev/null +++ b/kartik/modding/parser.js @@ -0,0 +1,278 @@ +const fs = require('fs'); +const os = require('os'); +const ini = require('ini'); +const YAML = require('yaml'); +const { dialog } = require('electron'); +const semver = require('semver'); + +function unload(arr) { + var what, a = arguments, L = a.length, ax; + while (L > 1 && arr.length) { + what = a[--L]; + while ((ax= arr.indexOf(what)) !== -1) { + arr.splice(ax, 1); + } + } + return arr; +} + +list = fs.readdirSync(homedir + "/.kartik/mods"); + +for (index in list) { + item = list[index]; + + if (!fs.existsSync(homedir + "/.kartik/mods/" + item + "/kartik.ini") && !fs.existsSync(homedir + "/.kartik/mods/" + item + "/kartik.yml")) { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": no kartik.ini or kartik.yml file found" + } + ) + } +} + +for (index in list) { + item = list[index]; + + parts = item.split("."); + if (parts.length < 2 || parts[0].length > 5 || item.length > 49 || parts.length > 7 || !/^[a-zA-Z0-9.]*$/gm.test(item)) { + unload(list, item); + if (parts.length < 2) { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid package name: not enough parts" + } + ) + } + if (parts[0].length > 5) { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid package name: tld too long" + } + ) + } + if (item.length > 49) { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid package name: too long" + } + ) + } + if (parts.length > 7) { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid package name: too many parts" + } + ) + } + if (!/^[a-zA-Z0-9.]*$/gm.test(item)) { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid package name: invalid format" + } + ) + } + } +} + +for (index in list) { + item = list[index]; + + if (fs.existsSync(homedir + "/.kartik/mods/" + item + "/kartik.ini") && fs.existsSync(homedir + "/.kartik/mods/" + item + "/kartik.yml")) { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": both kartik.ini and kartik.yml found" + } + ) + } +} + +global.moddata = {}; + +for (index in list) { + if (fs.existsSync(homedir + "/.kartik/mods/" + item + "/kartik.ini")) { + try { + moddata[list] = ini.parse(fs.readFileSync(homedir + "/.kartik/mods/" + item + "/kartik.ini", "utf-8")); + } catch (e) { + unload(list, item); + console.error(e); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": ini parser error" + } + ) + } + } else { + try { + moddata[list] = YAML.parse(fs.readFileSync(homedir + "/.kartik/mods/" + item + "/kartik.yml", "utf-8")); + } catch (e) { + unload(list, item); + console.error(e); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": yaml parser error" + } + ) + } + } +} + +for (index in list) { + item = list[index]; + mod = moddata[item]; + + roots = Object.keys(mod); + + for (i1 in roots) { + r = roots[i1]; + if (r !== "Meta" && r !== "Hook") { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid root section: " + r + } + ) + } + } + + for (i2 in Object.keys(mod["Meta"])) { + r = Object.keys(mod["Meta"])[i2]; + if (r !== "Properties" && r !== "Hooks") { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid meta section: " + r + } + ) + } + } + + if (Object.keys(mod["Meta"]).length < 2) { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": meta sections incomplete" + } + ) + } + + meta = mod["Meta"]; + + for (i3 in Object.keys(meta["Properties"])) { + r = Object.keys(meta["Properties"])[i3]; + if (r !== "Mod.Name" && r !== "Mod.Version" && r !== "Mod.Author" && r !== "Mod.Required") { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid property: " + r + } + ) + } + } + + if (Object.keys(meta["Properties"]).length < 4) { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": properties incomplete" + } + ) + } + + props = meta.Properties; + + if (props["Mod.Required"].trim() !== "*") { + sver = require('../package.json').version.split(".").map((i) => { if (!isNaN((i - 1 + 1))) { return (i - 1 + 1).toString(); } else { return i; } }).join("."); + if (semver.valid(sver)) { + if (!semver.satisfies(sver, props["Mod.Required"].trim())) { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": mod made for another version of Kartik" + } + ) + } + } else { + if (require('../package.json').channel !== "git" && require('../package.json').channel !== "nightly") { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": invalid game version" + } + ) + } + } + } + + hooks = meta["Hooks"]; + hname = Object.keys(hooks); + + for (i4 in hname) { + hookn = hname[i4]; + hook = hooks[hookn]; + if (typeof mod["Hook"][hook] === "undefined") { + unload(list, item); + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": block " + hook + " required by hook " + hookn + " not found" + } + ) + } + } +} + +for (index in list) { + item = list[index]; + mod = moddata[item]; + meta = mod["Meta"]; + + hooks = meta["Hooks"]; + hname = Object.keys(hooks); + + for (i4 in hname) { + hookn = hname[i4]; + hook = hooks[hookn]; + + mod["_Path"] = homedir + "/.kartik/mods/" + item; + + console.log(" * KMP hook: " + item + "$" + hookn) + require('./hooks')(mod, hookn, hook); + } +} + +global.mods = list; diff --git a/kartik/modding/resources.js b/kartik/modding/resources.js new file mode 100755 index 0000000..7301901 --- /dev/null +++ b/kartik/modding/resources.js @@ -0,0 +1,65 @@ +const fs = require('fs'); + +global.resources = { + music: {}, + sfx: {}, + races: {}, + cars: {}, + scenario: { + voice: {}, + averi: {} + } +}; + +music_list = fs.readdirSync("./music"); +for (index in music_list) { + music = music_list[index]; + name = music.split(".")[0]; + resources.music[name] = { + file: KartikRoot + "/music/" + music, + original: true + }; +} + +sfx_list = fs.readdirSync("./sfx"); +for (index in sfx_list) { + sfx = sfx_list[index]; + name = sfx.split(".")[0]; + if (sfx.split(".")[1] === "mp3") { + resources.sfx[name] = KartikRoot + "/sfx/" + sfx; + } +} + +races_list = fs.readdirSync("./race/circuits"); +for (index in races_list) { + races = races_list[index]; + name = races.split(".")[0]; + if (races.split(".")[1] === "html") { + resources.races[name] = "./race/circuits/" + races; + } +} + +cars_list = fs.readdirSync("./race/models"); +for (index in cars_list) { + cars = cars_list[index]; + name = cars.split(".")[0]; + resources.cars[name] = KartikRoot + "/race/models/" + cars; +} + +scvoice_list = fs.readdirSync("./scenario/voice"); +for (index in scvoice_list) { + scvoice = scvoice_list[index]; + name = scvoice.split(".")[0]; + resources.scenario.voice[name] = KartikRoot + "/scenario/voice/" + scvoice; +} + +scchar_list = fs.readdirSync("./scenario/character"); +for (index in scchar_list) { + scchar = scchar_list[index]; + name = scchar.split(".")[0]; + resources.scenario.averi[name] = KartikRoot + "/scenario/character/" + scchar; +} + +if (typeof building !== "undefined" && building) { + global.targetResources = JSON.stringify(resources); +} diff --git a/kartik/music/credits.mp3 b/kartik/music/credits.mp3 new file mode 100755 index 0000000..5186fbd Binary files /dev/null and b/kartik/music/credits.mp3 differ diff --git a/kartik/music/game1.mp3 b/kartik/music/game1.mp3 new file mode 100755 index 0000000..ba12bf1 Binary files /dev/null and b/kartik/music/game1.mp3 differ diff --git a/kartik/music/game2.mp3 b/kartik/music/game2.mp3 new file mode 100755 index 0000000..570acdb Binary files /dev/null and b/kartik/music/game2.mp3 differ diff --git a/kartik/music/game3.mp3 b/kartik/music/game3.mp3 new file mode 100755 index 0000000..9ecc48d Binary files /dev/null and b/kartik/music/game3.mp3 differ diff --git a/kartik/music/game4.mp3 b/kartik/music/game4.mp3 new file mode 100755 index 0000000..51b8292 Binary files /dev/null and b/kartik/music/game4.mp3 differ diff --git a/kartik/music/game5.mp3 b/kartik/music/game5.mp3 new file mode 100755 index 0000000..55789da Binary files /dev/null and b/kartik/music/game5.mp3 differ diff --git a/kartik/music/game6.mp3 b/kartik/music/game6.mp3 new file mode 100755 index 0000000..fbc0501 Binary files /dev/null and b/kartik/music/game6.mp3 differ diff --git a/kartik/music/game7.mp3 b/kartik/music/game7.mp3 new file mode 100755 index 0000000..be31140 Binary files /dev/null and b/kartik/music/game7.mp3 differ diff --git a/kartik/music/game8.mp3 b/kartik/music/game8.mp3 new file mode 100755 index 0000000..17e6820 Binary files /dev/null and b/kartik/music/game8.mp3 differ diff --git a/kartik/music/game9.mp3 b/kartik/music/game9.mp3 new file mode 100755 index 0000000..11fbcde Binary files /dev/null and b/kartik/music/game9.mp3 differ diff --git a/kartik/music/prepare.mp3 b/kartik/music/prepare.mp3 new file mode 100755 index 0000000..13f4ded Binary files /dev/null and b/kartik/music/prepare.mp3 differ diff --git a/kartik/music/start.mp3 b/kartik/music/start.mp3 new file mode 100755 index 0000000..b72156a Binary files /dev/null and b/kartik/music/start.mp3 differ diff --git a/kartik/music/title.mp3 b/kartik/music/title.mp3 new file mode 100755 index 0000000..a4e0f29 Binary files /dev/null and b/kartik/music/title.mp3 differ diff --git a/kartik/music/win.mp3 b/kartik/music/win.mp3 new file mode 100755 index 0000000..1447d14 Binary files /dev/null and b/kartik/music/win.mp3 differ diff --git a/kartik/nest/abi.js b/kartik/nest/abi.js new file mode 100755 index 0000000..5945705 --- /dev/null +++ b/kartik/nest/abi.js @@ -0,0 +1,76 @@ +const fs = require('fs'); +var zlib = require('zlib'); + +console.log("\n\nKartik Fox Nest, a compressed and simple data storage for Kartik.\n(c) Minteck, All Rights Reserved\n\n") + +module.exports = { + export(file, obj) { + fs.writeFileSync(file, zlib.deflateSync(Buffer.from(Buffer.from(JSON.stringify(obj)).toString("base64")).toString("base64"))) + }, + + load(file) { + data = fs.readFileSync(file) + uncomp = zlib.inflateSync(data); + + b1 = Buffer.from(uncomp, "base64").toString("utf-8"); + b2 = Buffer.from(b1, "base64").toString("utf-8"); + + item = Buffer.from(b2, "base64").toString("utf-8"); + decoded = JSON.parse(item); + + return decoded; + }, + + generate(file) { + o = { + "_version": "", + "stats": { + "times": { + "single": 0, + "local": 0, + "online": 0 + }, + "results": { + "wins": 0, + "loses": 0 + }, + "ingame": { + "walls": 0, + "laps": 0, + "turns": 0 + } + }, + "auth": null, + "config": { + "lang": "en", + "music": true, + "online": true, + "voice": false + } + } + + this.export(file, o); + }, + + convert(file, dotkartik) { + if (fs.existsSync(dotkartik + "/authentication.json")) { + auth = JSON.parse(fs.readFileSync(dotkartik + "/authentication.json")); + } else { + auth = null; + } + + o = { + "_version": "", + "stats": JSON.parse(fs.readFileSync(dotkartik + "/stats.json").toString()), + "auth": auth, + "config": { + "lang": fs.readFileSync(dotkartik + "/config/lang.txt").toString().trim(), + "music": fs.readFileSync(dotkartik + "/config/music.txt").toString().trim() === "1", + "online": fs.readFileSync(dotkartik + "/config/online.txt").toString().trim() === "1", + "voice": fs.readFileSync(dotkartik + "/config/voice.txt").toString().trim() === "1" + } + } + + this.export(file, o); + } +} \ No newline at end of file diff --git a/kartik/online/global.js b/kartik/online/global.js new file mode 100755 index 0000000..0cdb6f4 --- /dev/null +++ b/kartik/online/global.js @@ -0,0 +1,374 @@ +global.pingStart = null; +global.connecting = false; +global.role = null; +global.online = true; +global.guestInfo = { + hostCar: null, + guestCar: null, + circuit: null, + music: null +}; +global.onlineInitDone = false; + +function max(input) { + if (toString.call(input) !== "[object Array]") + return false; + return Math.max.apply(null, input); +} + +pingHistory = []; +function updatePing(ping) { + if (ping < 100000) { + document.getElementById('ping').innerText = ping + " ms"; + + pingHistory.push(ping); + while (pingHistory.length > 70) { + pingHistory.shift(); + } + + dom = ""; + highest = max(pingHistory); + pingHistory.forEach((p) => { + high = 1 + perc = (p/highest)*100 + if (ping > 70 && ping < 150) { + dom = dom + ``; + } else if (ping > 150) { + dom = dom + ``; + } else { + dom = dom + ``; + } + }) + + document.getElementById('ping-chart').innerHTML = dom; + } +} + +window.addEventListener('load', () => { + document.getElementById('credits').style.backgroundColor = "#000000"; + document.getElementById('cars-n1').innerText = lang.online.car0; + document.getElementById('cars-n2').innerText = lang.online.car1; + + class MessageBuffer { + constructor(delimiter) { + this.delimiter = delimiter + this.buffer = "" + } + + isFinished() { + if ( + this.buffer.length === 0 || + this.buffer.indexOf(this.delimiter) === -1 + ) { + return true + } + return false + } + + push(data) { + this.buffer += data + } + + getMessage() { + const delimiterIndex = this.buffer.indexOf(this.delimiter) + if (delimiterIndex !== -1) { + const message = this.buffer.slice(0, delimiterIndex) + this.buffer = this.buffer.replace(message + this.delimiter, "") + return message + } + return null + } + + handleData() { + /** + * Try to accumulate the buffer with messages + * + * If the server isnt sending delimiters for some reason + * then nothing will ever come back for these requests + */ + const message = this.getMessage() + return message + } + } + + const sampleData = { + _type: "init", + name: "Kartik Core", + version: require('../package.json').version, + id: null, + modded: false + } + + global.clientWriter = (data) => { + client.write(data + "\n"); + } + + function crash(e) { + console.error(e); + if (!quitting) { + location.href = "online.html#" + btoa(lang.online.error.connection); + } + } + + var net = require('net'); + + var host = require('../online/server.json').hostname; + var port = require('../online/server.json').port; + + global.client = new net.Socket(); + client.initialized = false; + + client.connect(port, host, () => { + console.log("Connected to " + host + ":" + port); + clientWriter(JSON.stringify(sampleData) + "|"); + setInterval(() => { + if (role === null) { + clientWriter(JSON.stringify({ + _type: "ping" + }) + "|") + } else { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "Ping", + message: null + }) + "|") + } + global.pingCrash = setTimeout(() => { + location.href = "online.html#" + btoa(lang.online.timeout); + }, 10000); + global.pingStart = new Date(); + }, 1000) + }) + + let received = new MessageBuffer("\n") + client.on("data", chunk => { + received.push(chunk) + while (!received.isFinished()) { + const data = received.handleData() + + raw = data.toString().replaceAll("}{", "}|{"); + datas = raw.split("|").filter(i => i.trim() !== ""); + datas.forEach((data) => { + try { + inf = JSON.parse(data); + } catch (e) { + console.dir(data); + throw e; + } + + if (typeof inf['_type'] != "string") { + crash(new Error("Invalid JSON data")); + } + if (!client.initialized) { + switch (inf['_type']) { + case "init": + if (inf['name'] !== "Kartik Server") { + crash(new Error("Invalid server")); + } + console.log("Connection initialized. Server running " + inf.name + " version " + inf.version + ", client ID " + inf.id); + document.getElementById("serveraddr").innerText = host + ":" + port; + if (inf.version.endsWith("-iridium")) { + document.getElementById("servername").innerText = "Iridium " + inf.version.substr(0, inf.version.length - "-iridium".length); + document.getElementById("servericon").src = "../logo/iridium.png"; + } else { + document.getElementById("servername").innerText = "Kartik Legacy Server " + inf.version; + document.getElementById("servericon").src = "../logo/server.png"; + } + document.getElementById('yourid').innerText = inf.id.toUpperCase(); + document.getElementById('intro').style.display = ""; + document.getElementById('connecting').style.display = "none"; + document.getElementById('loading').style.display = "none"; + client.initialized = true; + break; + case "error": + console.log(inf['type'] + ": " + inf['message']); + break; + default: + crash(new Error("Trying to receive data but client not initialized")); + break; + } + } else { + switch (inf['_type']) { + case "init": + crash(new Error("Trying to initialize client but client is already initialized")); + break; + case "error": + console.log(inf['type'] + ": " + inf['message']); + location.href = "online.html#" + btoa(inf['type'] + ": " + inf['message']); + break; + case "linked": + console.log("Now hooked into link: (H) " + inf['ids']['host'] + " <-> " + inf['ids']['guest'] + " (G)"); + document.getElementById('intro').style.display = "none"; + document.getElementById('connecting').style.display = "none"; + document.getElementById('loading').style.display = ""; + document.getElementById('loading').innerText = lang.online.generate; + global.role = inf['role']; + if (role === "host") { + startHooks.forEach((hook) => { + hook(this); + }) + $("#online-login").fadeOut(200); + } + break; + default: + if (inf['_type'] === "ipc" && inf['action'] === "Ping") { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "Pong", + message: null + }) + "|") + return; + } + if ((inf['_type'] === "ipc" && inf['action'] === "Pong") || inf['_type'] === "pong") { + pingEnd = new Date(); + ping = Math.round(pingEnd - pingStart); + global.pingStart = null; + clearTimeout(global.pingCrash); + updatePing(ping); + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "posTop") { + try { + document.getElementById('car1').style.top = inf['message']; + } catch (e) {} + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "progressLaps") { + try { + document.getElementById("laps-car1").innerText = inf['message']; + } catch (e) {} + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "progressLose") { + global.quitting = true; + location.href = "win.html?sp#car1"; + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "posLeft") { + try { + document.getElementById('car1').style.left = inf['message']; + } catch (e) {} + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "gameIsReady") { + startgame(); + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "abort") { + location.href = "online.html#" + btoa(lang.online.aborted); + return; + } + if (inf['_type'] === "ipc" && inf['action'] === "posRot") { + try { + document.getElementById('car1').style.transform = inf['message']; + } catch (e) {} + return; + } + if (inf['_type'] === "ipc" && inf['action'].startsWith("RaceData:")) { + rd = inf['action'].substr(9); + switch (rd) { + case "hostCar": + guestInfo.hostCar = inf['message']; + if (guestInfo.music !== null && guestInfo.circuit !== null && guestInfo.guestCar !== null && guestInfo.hostCar !== null && !onlineInitDone) { + onlineInitDone = true; + startHooks.forEach((hook) => { + hook(this); + }) + $("#online-login").fadeOut(200); + } + break; + case "guestCar": + guestInfo.guestCar = inf['message']; + if (guestInfo.music !== null && guestInfo.circuit !== null && guestInfo.guestCar !== null && guestInfo.hostCar !== null && !onlineInitDone) { + onlineInitDone = true; + startHooks.forEach((hook) => { + hook(this); + }) + $("#online-login").fadeOut(200); + } + break; + case "circuit": + guestInfo.circuit = inf['message']; + if (guestInfo.music !== null && guestInfo.circuit !== null && guestInfo.guestCar !== null && guestInfo.hostCar !== null && !onlineInitDone) { + onlineInitDone = true; + startHooks.forEach((hook) => { + hook(this); + }) + $("#online-login").fadeOut(200); + } + break; + case "music": + guestInfo.music = inf['message']; + if (guestInfo.music !== null && guestInfo.circuit !== null && guestInfo.guestCar !== null && guestInfo.hostCar !== null && !onlineInitDone) { + onlineInitDone = true; + startHooks.forEach((hook) => { + hook(this); + }) + $("#online-login").fadeOut(200); + } + break; + } + return; + } + break; + } + } + }) + } + }) + + client.on('close', () => { + console.log("Kicked from server"); + }) + + client.on('error', (e) => { + switch (e.code) { + case "ECONNREFUSED": + location.href = "online.html#" + btoa(lang.online.unable); + break; + default: + location.href = "online.html#" + btoa(lang.online.internal); + break; + } + crash(e); + }) + + setInterval(() => { + if (pingStart !== null && new Date() - pingStart >= 10000) { + location.href = "online.html#" + btoa(lang.online.timeout); + } + }, 50) +}) + +function checkOnlineLogin() { + document.getElementById('theirid').value = document.getElementById('theirid').value.toUpperCase(); + if (/[^ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890]/gm.test(document.getElementById('theirid').value)) { + document.getElementById('theirid').value = ""; + } + if (document.getElementById('theirid').value.length === 8) { + if (document.getElementById('theirid').value === document.getElementById('yourid').innerText) { + document.getElementById('theirid').value = ""; + } else { + if (!connecting) { + connecting = true; + document.getElementById('intro').style.display = "none"; + document.getElementById('connecting').style.display = "none"; + document.getElementById('loading').style.display = ""; + console.log("Linking to client " + document.getElementById('theirid').value + "...") + clientWriter(JSON.stringify({ + _type: "link", + client: document.getElementById('theirid').value.toLowerCase() + })); + } + } + } +} + +$("#theirid").keydown(function(e) { + if (e.keyCode === 27) { // esc + $("body").fadeOut(200); + setTimeout(() => { + location.href = "menu.html?back"; + }, 250) + } +}) \ No newline at end of file diff --git a/kartik/online/levels.txt b/kartik/online/levels.txt new file mode 100755 index 0000000..6566fea --- /dev/null +++ b/kartik/online/levels.txt @@ -0,0 +1,200 @@ +1:1 +2:2 +3:3 +4:4 +5:5 +6:7 +7:9 +8:11 +9:13 +10:16 +11:19 +12:22 +13:25 +14:29 +15:33 +16:37 +17:41 +18:46 +19:51 +20:56 +21:61 +22:67 +23:73 +24:79 +25:85 +26:92 +27:99 +28:106 +29:113 +30:121 +31:129 +32:137 +33:145 +34:154 +35:163 +36:172 +37:181 +38:191 +39:201 +40:211 +41:221 +42:232 +43:243 +44:254 +45:265 +46:277 +47:289 +48:301 +49:313 +50:326 +51:339 +52:352 +53:365 +54:379 +55:393 +56:407 +57:421 +58:436 +59:451 +60:466 +61:481 +62:497 +63:513 +64:529 +65:545 +66:562 +67:579 +68:596 +69:613 +70:631 +71:649 +72:667 +73:685 +74:704 +75:723 +76:742 +77:761 +78:781 +79:801 +80:821 +81:841 +82:862 +83:883 +84:904 +85:925 +86:947 +87:969 +88:991 +89:1013 +90:1036 +91:1059 +92:1082 +93:1105 +94:1129 +95:1153 +96:1177 +97:1201 +98:1226 +99:1251 +100:1276 +101:1301 +102:1327 +103:1353 +104:1379 +105:1405 +106:1432 +107:1459 +108:1486 +109:1513 +110:1541 +111:1569 +112:1597 +113:1625 +114:1654 +115:1683 +116:1712 +117:1741 +118:1771 +119:1801 +120:1831 +121:1861 +122:1892 +123:1923 +124:1954 +125:1985 +126:2017 +127:2049 +128:2081 +129:2113 +130:2146 +131:2179 +132:2212 +133:2245 +134:2279 +135:2313 +136:2347 +137:2381 +138:2416 +139:2451 +140:2486 +141:2521 +142:2557 +143:2593 +144:2629 +145:2665 +146:2702 +147:2739 +148:2776 +149:2813 +150:2851 +151:2889 +152:2927 +153:2965 +154:3004 +155:3043 +156:3082 +157:3121 +158:3161 +159:3201 +160:3241 +161:3281 +162:3322 +163:3363 +164:3404 +165:3445 +166:3487 +167:3529 +168:3571 +169:3613 +170:3656 +171:3699 +172:3742 +173:3785 +174:3829 +175:3873 +176:3917 +177:3961 +178:4006 +179:4051 +180:4096 +181:4141 +182:4187 +183:4233 +184:4279 +185:4325 +186:4372 +187:4419 +188:4466 +189:4513 +190:4561 +191:4609 +192:4657 +193:4705 +194:4754 +195:4803 +196:4852 +197:4901 +198:4951 +199:5001 +200:5051 \ No newline at end of file diff --git a/kartik/online/server.json b/kartik/online/server.json new file mode 100755 index 0000000..4ba17eb --- /dev/null +++ b/kartik/online/server.json @@ -0,0 +1,4 @@ +{ + "hostname": "kartik.hopto.org", + "port": 8408 +} diff --git a/kartik/package-lock.json b/kartik/package-lock.json new file mode 100755 index 0000000..8d5f01c --- /dev/null +++ b/kartik/package-lock.json @@ -0,0 +1,2214 @@ +{ + "name": "kartik-stable", + "version": "1.2.3", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "kartik-stable", + "version": "1.2.3", + "license": "GPL-3.0-or-later", + "dependencies": { + "@electron/remote": "^1.0.4", + "discord-rpc": "^3.2.0", + "electron": "^12.0.1", + "ini": "^1.3.8", + "jquery": "^3.6.0", + "open": "^8.2.1", + "os-locale": "^5.0.0", + "systeminformation": "^5.7.7", + "typescript": "^4.3.5", + "uuid": "^8.3.2", + "yaml": "^1.10.2" + } + }, + "node_modules/@electron/get": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.13.0.tgz", + "integrity": "sha512-+SjZhRuRo+STTO1Fdhzqnv9D2ZhjxXP6egsJ9kiO8dtP68cDx7dFCwWi64dlMQV7sWcfW1OYCW4wviEBzmRsfQ==", + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^9.6.0", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=8.6" + }, + "optionalDependencies": { + "global-agent": "^2.0.2", + "global-tunnel-ng": "^2.7.1" + } + }, + "node_modules/@electron/remote": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/remote/-/remote-1.2.2.tgz", + "integrity": "sha512-PfnXpQGWh4vpX866NNucJRnNOzDRZcsLcLaT32fUth9k0hccsohfxprqEDYLzRg+ZK2xRrtyUN5wYYoHimMCJg==", + "peerDependencies": { + "electron": ">= 10.0.0-beta.1" + } + }, + "node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dependencies": { + "defer-to-connect": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@types/node": { + "version": "14.17.20", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.20.tgz", + "integrity": "sha512-gI5Sl30tmhXsqkNvopFydP7ASc4c2cLfGNQrVKN3X90ADFWFsPEsotm/8JHSUJQKTHbwowAHtcJPeyVhtKv0TQ==" + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "peer": true, + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/boolean": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.1.4.tgz", + "integrity": "sha512-3hx0kwU3uzG6ReQ3pnaFQPSktpBw6RHN3/ivDKEuU8g1XSfafowyvDnadjv1xp8IZqhtSukxlwv9bF6FhX8m0w==", + "optional": true + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "engines": { + "node": "*" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dependencies": { + "mimic-response": "^1.0.0" + } + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "optional": true, + "dependencies": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "node_modules/core-js": { + "version": "3.18.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.1.tgz", + "integrity": "sha512-vJlUi/7YdlCZeL6fXvWNaLUPh/id12WXj3MbkMw5uOyF0PfWPBNOCNbs53YqgrvtujLNlt9JQpruyIKkUZ+PKA==", + "hasInstallScript": true, + "optional": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "optional": true, + "dependencies": { + "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "optional": true + }, + "node_modules/discord-rpc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-3.2.0.tgz", + "integrity": "sha512-KJv0EVbGMlr04HoG6f5b3wD7X9kSHzQ2Ed2qfHSDvYJ1MkE8RbCQmMcQQrSvAxpfsqZgUjB/bsfi/mjyicCH+A==", + "dependencies": { + "node-fetch": "^2.6.1", + "ws": "^7.3.1" + }, + "peerDependencies": { + "register-scheme": "github:devsnek/node-register-scheme" + } + }, + "node_modules/duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" + }, + "node_modules/electron": { + "version": "12.2.1", + "resolved": "https://registry.npmjs.org/electron/-/electron-12.2.1.tgz", + "integrity": "sha512-Gp+rO81qoaRDP7PTVtBOvnSgDgGlwUuAEWXxi621uOJMIlYFas9ChXe8pjdL0R0vyUpiHVzp6Vrjx41VZqEpsw==", + "hasInstallScript": true, + "dependencies": { + "@electron/get": "^1.0.1", + "@types/node": "^14.6.2", + "extract-zip": "^1.0.3" + }, + "bin": { + "electron": "cli.js" + }, + "engines": { + "node": ">= 8.6" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "optional": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "optional": true + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/extract-zip": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz", + "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==", + "dependencies": { + "concat-stream": "^1.6.2", + "debug": "^2.6.9", + "mkdirp": "^0.5.4", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + } + }, + "node_modules/extract-zip/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/extract-zip/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "peer": true + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-agent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.2.0.tgz", + "integrity": "sha512-+20KpaW6DDLqhG7JDiJpD1JvNvb8ts+TNl7BPOYcURqCrXqnN1Vf+XVOrkKJAFPqfX+oEhsdzOj1hLWkBTdNJg==", + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "core-js": "^3.6.5", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "engines": { + "node": ">=10.0" + } + }, + "node_modules/global-agent/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/global-tunnel-ng": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz", + "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==", + "optional": true, + "dependencies": { + "encodeurl": "^1.0.2", + "lodash": "^4.17.10", + "npm-conf": "^1.1.3", + "tunnel": "^0.0.6" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/globalthis": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.2.tgz", + "integrity": "sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==", + "optional": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", + "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==" + }, + "node_modules/http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "node_modules/invert-kv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-3.0.1.tgz", + "integrity": "sha512-CYdFeFexxhv/Bcny+Q0BfOV+ltRlJcd4BBZBYFX/O0u4npJrgZtIcjokegtiSMAvlMTJ+Koq0GBCc//3bueQxw==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sindresorhus/invert-kv?sponsor=1" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + }, + "node_modules/jquery": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", + "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" + }, + "node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "optional": true + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dependencies": { + "json-buffer": "3.0.0" + } + }, + "node_modules/lcid": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-3.1.1.tgz", + "integrity": "sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==", + "dependencies": { + "invert-kv": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "optional": true + }, + "node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dependencies": { + "p-defer": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "optional": true, + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mem": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/mem/-/mem-5.1.1.tgz", + "integrity": "sha512-qvwipnozMohxLXG1pOqoLiZKNkC4r4qqRucSoDwXowsNGDSULiqFTRUF05vcZWnwJSG22qTsynQhxbaMtnX9gw==", + "dependencies": { + "map-age-cleaner": "^0.1.3", + "mimic-fn": "^2.1.0", + "p-is-promise": "^2.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/node-addon-api": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", + "peer": true + }, + "node_modules/node-fetch": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.5.tgz", + "integrity": "sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm-conf": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", + "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", + "optional": true, + "dependencies": { + "config-chain": "^1.1.11", + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "optional": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", + "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/os-locale": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-5.0.0.tgz", + "integrity": "sha512-tqZcNEDAIZKBEPnHPlVDvKrp7NzgLi7jRmhKiUoa2NUmhl13FtkAGLUVR+ZsYvApBQdBfYm43A4tXXQ4IrYLBA==", + "dependencies": { + "execa": "^4.0.0", + "lcid": "^3.0.0", + "mem": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "engines": { + "node": ">=4" + } + }, + "node_modules/p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" + }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "optional": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "engines": { + "node": ">=4" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", + "optional": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/register-scheme": { + "version": "0.0.2", + "resolved": "git+ssh://git@github.com/devsnek/node-register-scheme.git#e7cc9a63a1f512565da44cb57316d9fb10750e17", + "hasInstallScript": true, + "license": "MIT", + "peer": true, + "dependencies": { + "bindings": "^1.3.0", + "node-addon-api": "^1.3.0" + } + }, + "node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, + "node_modules/roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", + "optional": true + }, + "node_modules/serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "optional": true, + "dependencies": { + "type-fest": "^0.13.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz", + "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==" + }, + "node_modules/sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "optional": true + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "dependencies": { + "debug": "^4.1.0" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/systeminformation": { + "version": "5.9.4", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.9.4.tgz", + "integrity": "sha512-FOsiTn0CyJZoj9kIhla11ndsMzbbwwuriul81wpqIBt9IpbxHZ6P/oZCphIFgJrwqjTnme0Qp1HDzIkUD9Xr/g==", + "os": [ + "darwin", + "linux", + "win32", + "freebsd", + "openbsd", + "netbsd", + "sunos" + ], + "bin": { + "systeminformation": "lib/cli.js" + }, + "engines": { + "node": ">=4.0.0" + }, + "funding": { + "type": "Buy me a coffee", + "url": "https://www.buymeacoffee.com/systeminfo" + } + }, + "node_modules/to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, + "node_modules/tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "optional": true, + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" + }, + "node_modules/typescript": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", + "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dependencies": { + "prepend-http": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "node_modules/ws": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.5.tgz", + "integrity": "sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "optional": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + } + }, + "dependencies": { + "@electron/get": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.13.0.tgz", + "integrity": "sha512-+SjZhRuRo+STTO1Fdhzqnv9D2ZhjxXP6egsJ9kiO8dtP68cDx7dFCwWi64dlMQV7sWcfW1OYCW4wviEBzmRsfQ==", + "requires": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "global-agent": "^2.0.2", + "global-tunnel-ng": "^2.7.1", + "got": "^9.6.0", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + } + }, + "@electron/remote": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/remote/-/remote-1.2.2.tgz", + "integrity": "sha512-PfnXpQGWh4vpX866NNucJRnNOzDRZcsLcLaT32fUth9k0hccsohfxprqEDYLzRg+ZK2xRrtyUN5wYYoHimMCJg==", + "requires": {} + }, + "@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" + }, + "@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "requires": { + "defer-to-connect": "^1.0.1" + } + }, + "@types/node": { + "version": "14.17.20", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.20.tgz", + "integrity": "sha512-gI5Sl30tmhXsqkNvopFydP7ASc4c2cLfGNQrVKN3X90ADFWFsPEsotm/8JHSUJQKTHbwowAHtcJPeyVhtKv0TQ==" + }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "peer": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, + "boolean": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.1.4.tgz", + "integrity": "sha512-3hx0kwU3uzG6ReQ3pnaFQPSktpBw6RHN3/ivDKEuU8g1XSfafowyvDnadjv1xp8IZqhtSukxlwv9bF6FhX8m0w==", + "optional": true + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=" + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "requires": { + "pump": "^3.0.0" + } + }, + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" + } + } + }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "requires": { + "mimic-response": "^1.0.0" + } + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "optional": true, + "requires": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "core-js": { + "version": "3.18.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.1.tgz", + "integrity": "sha512-vJlUi/7YdlCZeL6fXvWNaLUPh/id12WXj3MbkMw5uOyF0PfWPBNOCNbs53YqgrvtujLNlt9JQpruyIKkUZ+PKA==", + "optional": true + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "requires": { + "ms": "2.1.2" + } + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "requires": { + "mimic-response": "^1.0.0" + } + }, + "defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "optional": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "optional": true + }, + "discord-rpc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-3.2.0.tgz", + "integrity": "sha512-KJv0EVbGMlr04HoG6f5b3wD7X9kSHzQ2Ed2qfHSDvYJ1MkE8RbCQmMcQQrSvAxpfsqZgUjB/bsfi/mjyicCH+A==", + "requires": { + "node-fetch": "^2.6.1", + "ws": "^7.3.1" + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" + }, + "electron": { + "version": "12.2.1", + "resolved": "https://registry.npmjs.org/electron/-/electron-12.2.1.tgz", + "integrity": "sha512-Gp+rO81qoaRDP7PTVtBOvnSgDgGlwUuAEWXxi621uOJMIlYFas9ChXe8pjdL0R0vyUpiHVzp6Vrjx41VZqEpsw==", + "requires": { + "@electron/get": "^1.0.1", + "@types/node": "^14.6.2", + "extract-zip": "^1.0.3" + } + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "optional": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "requires": { + "once": "^1.4.0" + } + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==" + }, + "es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "optional": true + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "optional": true + }, + "execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "requires": { + "pump": "^3.0.0" + } + } + } + }, + "extract-zip": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz", + "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==", + "requires": { + "concat-stream": "^1.6.2", + "debug": "^2.6.9", + "mkdirp": "^0.5.4", + "yauzl": "^2.10.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", + "requires": { + "pend": "~1.2.0" + } + }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "peer": true + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "requires": { + "pump": "^3.0.0" + } + }, + "global-agent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.2.0.tgz", + "integrity": "sha512-+20KpaW6DDLqhG7JDiJpD1JvNvb8ts+TNl7BPOYcURqCrXqnN1Vf+XVOrkKJAFPqfX+oEhsdzOj1hLWkBTdNJg==", + "optional": true, + "requires": { + "boolean": "^3.0.1", + "core-js": "^3.6.5", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "optional": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "global-tunnel-ng": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz", + "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==", + "optional": true, + "requires": { + "encodeurl": "^1.0.2", + "lodash": "^4.17.10", + "npm-conf": "^1.1.3", + "tunnel": "^0.0.6" + } + }, + "globalthis": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.2.tgz", + "integrity": "sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==", + "optional": true, + "requires": { + "define-properties": "^1.1.3" + } + }, + "got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "requires": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + } + }, + "graceful-fs": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", + "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==" + }, + "http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" + }, + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==" + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "invert-kv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-3.0.1.tgz", + "integrity": "sha512-CYdFeFexxhv/Bcny+Q0BfOV+ltRlJcd4BBZBYFX/O0u4npJrgZtIcjokegtiSMAvlMTJ+Koq0GBCc//3bueQxw==" + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + }, + "jquery": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", + "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "optional": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "requires": { + "json-buffer": "3.0.0" + } + }, + "lcid": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-3.1.1.tgz", + "integrity": "sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==", + "requires": { + "invert-kv": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "optional": true + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "requires": { + "p-defer": "^1.0.0" + } + }, + "matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "optional": true, + "requires": { + "escape-string-regexp": "^4.0.0" + } + }, + "mem": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/mem/-/mem-5.1.1.tgz", + "integrity": "sha512-qvwipnozMohxLXG1pOqoLiZKNkC4r4qqRucSoDwXowsNGDSULiqFTRUF05vcZWnwJSG22qTsynQhxbaMtnX9gw==", + "requires": { + "map-age-cleaner": "^0.1.3", + "mimic-fn": "^2.1.0", + "p-is-promise": "^2.1.0" + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "requires": { + "minimist": "^1.2.5" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node-addon-api": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", + "peer": true + }, + "node-fetch": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.5.tgz", + "integrity": "sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==" + }, + "npm-conf": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", + "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", + "optional": true, + "requires": { + "config-chain": "^1.1.11", + "pify": "^3.0.0" + } + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "requires": { + "path-key": "^3.0.0" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "optional": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "open": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", + "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "os-locale": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-5.0.0.tgz", + "integrity": "sha512-tqZcNEDAIZKBEPnHPlVDvKrp7NzgLi7jRmhKiUoa2NUmhl13FtkAGLUVR+ZsYvApBQdBfYm43A4tXXQ4IrYLBA==", + "requires": { + "execa": "^4.0.0", + "lcid": "^3.0.0", + "mem": "^5.0.0" + } + }, + "p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" + }, + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" + }, + "p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "optional": true + }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" + }, + "proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", + "optional": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "register-scheme": { + "version": "git+ssh://git@github.com/devsnek/node-register-scheme.git#e7cc9a63a1f512565da44cb57316d9fb10750e17", + "from": "register-scheme@github:devsnek/node-register-scheme", + "peer": true, + "requires": { + "bindings": "^1.3.0", + "node-addon-api": "^1.3.0" + } + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "requires": { + "lowercase-keys": "^1.0.0" + } + }, + "roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "optional": true, + "requires": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + }, + "semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", + "optional": true + }, + "serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "optional": true, + "requires": { + "type-fest": "^0.13.1" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, + "signal-exit": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz", + "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==" + }, + "sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "optional": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" + }, + "sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "requires": { + "debug": "^4.1.0" + } + }, + "systeminformation": { + "version": "5.9.4", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.9.4.tgz", + "integrity": "sha512-FOsiTn0CyJZoj9kIhla11ndsMzbbwwuriul81wpqIBt9IpbxHZ6P/oZCphIFgJrwqjTnme0Qp1HDzIkUD9Xr/g==" + }, + "to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, + "tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "optional": true + }, + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "optional": true + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" + }, + "typescript": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", + "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "requires": { + "prepend-http": "^2.0.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "ws": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.5.tgz", + "integrity": "sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==", + "requires": {} + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "optional": true + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + } + } +} diff --git a/kartik/package.json b/kartik/package.json new file mode 100755 index 0000000..f86b164 --- /dev/null +++ b/kartik/package.json @@ -0,0 +1,26 @@ +{ + "name": "kartik-stable", + "version": "21.09.0", + "channel": "stable", + "description": "A multiplatform 2D karting game", + "main": "app.js", + "dependencies": { + "@electron/remote": "^1.0.4", + "discord-rpc": "^3.2.0", + "electron": "^12.0.1", + "ini": "^1.3.8", + "jquery": "^3.6.0", + "open": "^8.2.1", + "os-locale": "^5.0.0", + "systeminformation": "^5.7.7", + "typescript": "^4.3.5", + "uuid": "^8.3.2", + "yaml": "^1.10.2" + }, + "scripts": { + "test": "node_modules\\electron\\dist\\electron.exe app.js" + }, + "author": "Minteck", + "license": "GPL-3.0-or-later", + "serial": "XRL50000011995" +} \ No newline at end of file diff --git a/kartik/race/_archived/furry.html b/kartik/race/_archived/furry.html new file mode 100755 index 0000000..1e4c8d5 --- /dev/null +++ b/kartik/race/_archived/furry.html @@ -0,0 +1,115 @@ + + + + + { + "name": { + "fr": "Les petites pattes", + "en": "The Little Paws" + }, + "author": "Minteck" + } + + + +
+
+ + +
+ + + + + +
+ + +
+ + + +
+ + +
+ + +
diff --git a/kartik/race/_archived/furry.png b/kartik/race/_archived/furry.png new file mode 100755 index 0000000..0e2dc77 Binary files /dev/null and b/kartik/race/_archived/furry.png differ diff --git a/kartik/race/_archived/triangle.html b/kartik/race/_archived/triangle.html new file mode 100755 index 0000000..59fe219 --- /dev/null +++ b/kartik/race/_archived/triangle.html @@ -0,0 +1,127 @@ + + + + + { + "name": { + "fr": "Le triangle des Bermudes", + "en": "The Bermuda Triangle" + }, + "author": "Minteck" + } + + + +
+
+ + +
+ + + + + +
+ + +
+ + + +
+ + +
+ + +
\ No newline at end of file diff --git a/kartik/race/_archived/triangle.png b/kartik/race/_archived/triangle.png new file mode 100755 index 0000000..8532bf5 Binary files /dev/null and b/kartik/race/_archived/triangle.png differ diff --git a/kartik/race/cars/car0.js b/kartik/race/cars/car0.js new file mode 100755 index 0000000..c3cf2cc --- /dev/null +++ b/kartik/race/cars/car0.js @@ -0,0 +1,216 @@ +startHooks.push(() => { + car0speed = 16; + car0cspeed = 0; + if (online && role === "guest") { + car0startx = 388.9; + car0starty = 79.4; + } else { + car0startx = 428; + car0starty = 42.9; + } + car0collisionon = true; + car0enableOOBChecker = false; + +// Collision Manager + function car0collision() { + if (!keysEnabled) { return; } + + if (started) { + carshb = document.getElementById("car0").getBoundingClientRect(); + hitbox = document.getElementById("barrier").getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + info("CarManager:car0", "Reversal prevented at X " + document.getElementById("car0").style.left + ", Y " + document.getElementById("car0").style.top); + document.getElementById("car0").style.left = car0startx + "px"; + document.getElementById("car0").style.top = car0starty + "px"; + document.getElementById("car0").style.transform = "rotate(0deg)"; + car0cspeed = 0; + } + } + + if (!car0collisionon) { return; } + + walls = Array.from(document.getElementsByClassName("wall")); + + walls.forEach((wall) => { + carshb = document.getElementById("car0").getBoundingClientRect(); + hitbox = wall.getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + info("CarManager:car0", "Wall collision at X " + document.getElementById("car0").style.left + ", Y " + document.getElementById("car0").style.top); + if (location.search === "?sp") { + scenar("wall1", "happy"); + } + Sound.crash() + document.getElementById("car0").style.left = car0startx + "px"; + document.getElementById("car0").style.top = car0starty + "px"; + // { catalog: "ingame", key: "walls", add: 1 }); + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + document.getElementById("car0").style.transform = "rotate(0deg)"; + car0cspeed = 0; + } + }) + + Array.from(document.getElementById('oil').children).forEach((item) => { + carshb = document.getElementById("car0").getBoundingClientRect(); + hitbox = item.getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + car0cspeed = 7; + } + }) + + carshb = document.getElementById("car0").getBoundingClientRect(); + hitbox = document.getElementById("arrival").getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap && started) { + started = false; + if ((document.getElementById('laps-car0').innerText.split("/")[0] - 1 + 1) < 4) { + info("CarManager:car0", "New lap"); + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + if ((document.getElementById('laps-car0').innerText.split("/")[0] - 1 + 1) < 3) { + Sound.pass() + } else { + Sound.last() + } + // { catalog: "ingame", key: "laps", add: 1 }); + document.getElementById('laps-car0').innerText = (document.getElementById('laps-car0').innerText.split("/")[0] - 1 + 2).toString(); + if (location.search === "?sp") { + if ((document.getElementById('laps-car0').innerText.split("/")[0] - 1 + 1) > (document.getElementById('laps-car1').innerText.split("/")[0] - 1 + 1)) { + scenar("ahead1", "angry"); + } else { + scenar("ahead2", "happy"); + } + } + } else { + info("CarManager:car0", "Car won the game"); + // { catalog: "results", key: "wins", add: 1 }); + if (location.search === "?sp") { + scenar("won1", "sad"); + } + + Sound.win(); + keysEnabled = false; + car0cspeed = 0; + car0speed = 0; + document.getElementById('laps-car0').innerText = (document.getElementById('laps-car0').innerText.split("/")[0] - 1 + 2).toString(); + $("#box").fadeOut(500); + setTimeout(() => { + if (online) { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "progressLose", + message: null + }) + "|") + } + if (location.search === "?sp" || online) { + location.href = "win.html?sp#car0"; + } else { + location.href = "win.html#car0"; + } + }, 3500) + } + document.getElementById("car0").style.left = car0startx + "px"; + document.getElementById("car0").style.top = car0starty + "px"; + document.getElementById("car0").style.transform = "rotate(0deg)"; + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + car0cspeed = 0; + setTimeout(() => { + started = true; + }, 150) + } + + carshb = document.getElementById("car0").getBoundingClientRect(); + hitbox = document.getElementById("car1").getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + if (location.search === "?sp") { + scenar("wall1", "happy"); + } + Sound.crash(); + // { catalog: "ingame", key: "walls", add: 1 }); + document.getElementById("car0").style.left = car0startx + "px"; + document.getElementById("car0").style.top = car0starty + "px"; + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + document.getElementById("car0").style.transform = "rotate(0deg)"; + car0cspeed = 0; + } + } + +// General Movements + setInterval(() => { + if (!paused) { + if (car0cspeed > 0) { + car0cspeed = car0cspeed - 0.1; + } + switch (document.getElementById("car0").style.transform) { + case "rotate(0deg)": + document.getElementById("car0").style.left = ((document.getElementById("car0").style.left.split("p")[0] - 1) + (1 + car0cspeed)) + "px"; + break; + case "rotate(180deg)": + document.getElementById("car0").style.left = ((document.getElementById("car0").style.left.split("p")[0] - 1) - (1 + car0cspeed)) + "px"; + break; + case "rotate(90deg)": + document.getElementById("car0").style.top = ((document.getElementById("car0").style.top.split("p")[0] - 1) + (1 + car0cspeed)) + "px"; + break; + case "rotate(-90deg)": + document.getElementById("car0").style.top = ((document.getElementById("car0").style.top.split("p")[0] - 1) - (1 + car0cspeed)) + "px"; + break; + } + if (document.getElementById("car0").style.left.split("p")[0] - 1 + 1 > (window.innerWidth - 30)) { + warn("CarManager:car0", "Colliding with screen border"); + document.getElementById("car0").style.left = (window.innerWidth - 30) + "px"; + } + if (document.getElementById("car0").style.top.split("p")[0] - 1 + 1 > (window.innerHeight - 30)) { + warn("CarManager:car0", "Colliding with screen border"); + document.getElementById("car0").style.top = (window.innerHeight - 30) + "px"; + } + if (document.getElementById("car0").style.top.split("p")[0] - 1 + 1 < 30) { + warn("CarManager:car0", "Colliding with screen border"); + document.getElementById("car0").style.top = "30px"; + } + if (document.getElementById("car0").style.left.split("p")[0] - 1 + 1 < 30) { + warn("CarManager:car0", "Colliding with screen border"); + document.getElementById("car0").style.left = "30px"; + } + if (car0cspeed > -0.1 && car0cspeed < 0) { + car0cspeed = 0; + } + car0collision(); + } + }, 200) + +}) \ No newline at end of file diff --git a/kartik/race/cars/car1.js b/kartik/race/cars/car1.js new file mode 100755 index 0000000..4d31132 --- /dev/null +++ b/kartik/race/cars/car1.js @@ -0,0 +1,239 @@ +startHooks.push(() => { + car1speed = 16; + car1cspeed = 0; + if (online && role === "guest") { + car1startx = 428; + car1starty = 42.9; + } else { + car1startx = 388.9; + car1starty = 79.4; + } + car1collisionon = !online; + car1enableOOBChecker = false; + +// Collision Manager + function car1collision() { + if (!keysEnabled) { return; } + + if (started) { + carshb = document.getElementById("car1").getBoundingClientRect(); + hitbox = document.getElementById("barrier").getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap && car1collisionon) { + info("CarManager:car0", "Reversal prevented at X " + document.getElementById("car1").style.left + ", Y " + document.getElementById("car1").style.top); + car1collisionon = false; + document.getElementById("car1").style.left = car1startx + "px"; + document.getElementById("car1").style.top = car1starty + "px"; + document.getElementById("car1").style.transform = "rotate(0deg)"; + car1cspeed = 0; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + } + + if (!car1collisionon) { return; } + + walls = Array.from(document.getElementsByClassName("wall")); + + walls.forEach((wall) => { + carshb = document.getElementById("car1").getBoundingClientRect(); + hitbox = wall.getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + info("CarManager:car1", "Wall collision at X " + document.getElementById("car1").style.left + ", Y " + document.getElementById("car1").style.top); + if (location.search === "?sp") { + scenar("wall2", "angry"); + } + car1collisionon = false; + Sound.crash(); + document.getElementById("car1").style.left = car1startx + "px"; + document.getElementById("car1").style.top = car1starty + "px"; + document.getElementById("car1").style.transform = "rotate(0deg)"; + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + car1cspeed = 0; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + }) + + Array.from(document.getElementById('oil').children).forEach((item) => { + carshb = document.getElementById("car1").getBoundingClientRect(); + hitbox = item.getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + car1cspeed = 5; + } + }) + + carshb = document.getElementById("car1").getBoundingClientRect(); + hitbox = document.getElementById("car0").getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + if (location.search === "?sp") { + scenar("wall2", "angry"); + } + car1collisionon = false; + Sound.crash(); + document.getElementById("car1").style.left = car1startx + "px"; + document.getElementById("car1").style.top = car1starty + "px"; + document.getElementById("car1").style.transform = "rotate(0deg)"; + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + car1cspeed = 0; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + } + +// General Movements + setInterval(() => { + if (!paused) { + if (car1cspeed > 0) { + car1cspeed = car1cspeed - 0.1; + } + switch (document.getElementById("car1").style.transform) { + case "rotate(0deg)": + document.getElementById("car1").style.left = ((document.getElementById("car1").style.left.split("p")[0] - 1) + (1 + car1cspeed)) + "px"; + break; + case "rotate(180deg)": + document.getElementById("car1").style.left = ((document.getElementById("car1").style.left.split("p")[0] - 1) - (1 + car1cspeed)) + "px"; + break; + case "rotate(90deg)": + document.getElementById("car1").style.top = ((document.getElementById("car1").style.top.split("p")[0] - 1) + (1 + car1cspeed)) + "px"; + break; + case "rotate(-90deg)": + document.getElementById("car1").style.top = ((document.getElementById("car1").style.top.split("p")[0] - 1) - (1 + car1cspeed)) + "px"; + break; + } + if (document.getElementById("car1").style.left.split("p")[0] - 1 + 1 > (window.innerWidth - 30)) { + warn("CarManager:car1", "Colliding with screen border"); + if (car1enableOOBChecker) { + document.getElementById("car1").style.left = (window.innerWidth - 30) + "px"; + } + } + if (document.getElementById("car1").style.top.split("p")[0] - 1 + 1 > (window.innerHeight - 30)) { + warn("CarManager:car1", "Colliding with screen border"); + if (car1enableOOBChecker) { + document.getElementById("car1").style.top = (window.innerHeight - 30) + "px"; + } + } + if (document.getElementById("car1").style.top.split("p")[0] - 1 + 1 < 30) { + warn("CarManager:car1", "Colliding with screen border"); + if (car1enableOOBChecker) { + document.getElementById("car1").style.top = "30px"; + } + } + if (document.getElementById("car1").style.left.split("p")[0] - 1 + 1 < 30) { + warn("CarManager:car1", "Colliding with screen border"); + if (car1enableOOBChecker) { + document.getElementById("car1").style.left = "30px"; + } + } + if (car1cspeed > -0.1 && car1cspeed < 0) { + car1cspeed = 0; + } + car1collision(); + } + }, 200) + + setInterval(() => { + if (!car1collisionon) { return; } + + carshb = document.getElementById("car1").getBoundingClientRect(); + hitbox = document.getElementById("arrival").getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap && started) { + started = false; + if ((document.getElementById('laps-car1').innerText.split("/")[0] - 1 + 1) < 4) { + info("CarManager:car1", "New lap"); + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + if ((document.getElementById('laps-car1').innerText.split("/")[0] - 1 + 1) < 3) { + Sound.pass() + } else { + Sound.last() + } + document.getElementById('laps-car1').innerText = (document.getElementById('laps-car1').innerText.split("/")[0] - 1 + 2).toString(); + if (location.search === "?sp") { + if ((document.getElementById('laps-car0').innerText.split("/")[0] - 1 + 1) > (document.getElementById('laps-car1').innerText.split("/")[0] - 1 + 1)) { + scenar("ahead1", "angry"); + } else { + scenar("ahead2", "happy"); + } + } + } else { + info("CarManager:car1", "Car won the game"); + if (location.search === "?sp") { + scenar("won2", "happy"); + } + // { catalog: "results", key: "loses", add: 1 }); + + Sound.win(); + keysEnabled = false; + car1cspeed = 0; + car1speed = 0; + document.getElementById('laps-car1').innerText = (document.getElementById('laps-car1').innerText.split("/")[0] - 1 + 2).toString(); + $("#box").fadeOut(500); + setTimeout(() => { + setTimeout(() => { + if (location.search === "?sp" || (online && role === "guest")) { + if (online) {} else { + location.href = "win.html?sp#car1"; + } + } else { + location.href = "win.html#car1"; + } + }, 3500) + }, 3000) + } + car1collisionon = false; + Sound.crash(); + document.getElementById("car1").style.left = car1startx + "px"; + document.getElementById("car1").style.top = car1starty + "px"; + document.getElementById("car1").style.transform = "rotate(0deg)"; + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + car1cspeed = 0; + setTimeout(() => { + car1collisionon = true; + }, 500) + setTimeout(() => { + started = true; + }, 150) + } + }, 20) + +}) \ No newline at end of file diff --git a/kartik/race/cars/car1ai.js b/kartik/race/cars/car1ai.js new file mode 100755 index 0000000..87e5920 --- /dev/null +++ b/kartik/race/cars/car1ai.js @@ -0,0 +1,160 @@ +aiorient = "right"; +elem = 10; + +function enableAI() { + car1enableOOBChecker = false; + setInterval(() => { + if (aiorient === "top") { + ai_up(); + } else if (aiorient === "right") { + ai_right(); + } else if (aiorient === "bottom") { + ai_down(); + } else if (aiorient === "left") { + ai_left(); + } + }, 100) + setInterval(() => { + carshb = document.getElementById("aibox-near").getBoundingClientRect(); + hitbox = document.getElementById('barrier').getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + aiorient = "right"; + } + + if (elem < 10) { elem++; } + if (elem !== 10) { return; } + + walls = Array.from(document.getElementsByClassName("wall")); + + walls.forEach((wall) => { + carshb = document.getElementById("aibox-far").getBoundingClientRect(); + hitbox = wall.getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + carshb2 = document.getElementById("aibox-near").getBoundingClientRect(); + + var overlap2 = !(carshb2.right < hitbox.left || + carshb2.left > hitbox.right || + carshb2.bottom < hitbox.top || + carshb2.top > hitbox.bottom) + + if (overlap2) { + car1speed = 8; + } else if (overlap) { + car1speed = 9; + } else { + car1speed = 16; + } + + carshb = document.getElementById("aibox-far").getBoundingClientRect(); + hitbox = wall.getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + if (aiorient === "top") { + aiorient = "right"; + elem = 0; + } else if (aiorient === "right") { + aiorient = "bottom"; + elem = 0; + } else if (aiorient === "bottom") { + aiorient = "left"; + elem = 0; + } else if (aiorient === "left") { + aiorient = "top"; + elem = 0; + } + } + + carshb = document.getElementById("aibox-near").getBoundingClientRect(); + hitbox = document.getElementById('car0').getBoundingClientRect(); + + var overlap = !(carshb.right < hitbox.left || + carshb.left > hitbox.right || + carshb.bottom < hitbox.top || + carshb.top > hitbox.bottom) + + if (overlap) { + if (aiorient === "top") { + aiorient = "bottom"; + elem = 0; + } else if (aiorient === "right") { + aiorient = "left"; + elem = 0; + } else if (aiorient === "bottom") { + aiorient = "top"; + elem = 0; + } else if (aiorient === "left") { + aiorient = "right"; + elem = 0; + } + } + }) + }, 50) +} + +function ai_up() { + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(-90deg)") { + document.getElementById("car1").style.transform = "rotate(-90deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } +} + +function ai_down() { + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(90deg)") { + document.getElementById("car1").style.transform = "rotate(90deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } +} + +function ai_left() { + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(180deg)") { + document.getElementById("car1").style.transform = "rotate(180deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } +} + +function ai_right() { + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(0deg)") { + document.getElementById("car1").style.transform = "rotate(0deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } +} \ No newline at end of file diff --git a/kartik/race/cars/keymap.js b/kartik/race/cars/keymap.js new file mode 100755 index 0000000..80a3c41 --- /dev/null +++ b/kartik/race/cars/keymap.js @@ -0,0 +1,174 @@ +startHooks.push(() => { + $(document).keydown(function(e) { + if (online && role === null) { + if (e.keyCode === 27 || e.keyCode === 8) { // esc + window.parent.musicManager.fadeMusic(); + $("body").fadeOut(200); + setTimeout(() => { + location.href = "menu.html?back"; + }, 250) + } + } + if (keysEnabled) { + if (!paused) { + if (e.keyCode === 115) { // F4 + if (hitshow) { + hitshow = false; + document.getElementById("circuit").classList.remove("hitboxes"); + document.getElementById('hitboxes').innerText = lang.game.gpause.showhb; + info("GameWindow", "Hitboxes hidden"); + } else { + hitshow = true; + document.getElementById("circuit").classList.add("hitboxes"); + document.getElementById('hitboxes').innerText = lang.game.gpause.hidehb; + info("GameWindow", "Hitboxes shown"); + } + } + + // Car 0 + if (car0collisionon) { + if (e.keyCode === 90 || e.keyCode === 87 || ((location.search === "?sp" || location.search === "?online") && e.keyCode === 38)) { // Z + if (car0cspeed < car0speed) { + car0cspeed = car0cspeed + 0.2; + } + if (document.getElementById("car0").style.transform !== "rotate(-90deg)") { + // { catalog: "ingame", key: "turns", add: 1 }); + document.getElementById("car0").style.transform = "rotate(-90deg)"; + car0collisionon = false; + setTimeout(() => { + car0collisionon = true; + }, 500) + } + } + if (e.keyCode === 83 || ((location.search === "?sp" || location.search === "?online") && e.keyCode === 40)) { // S + if (car0cspeed < car0speed) { + car0cspeed = car0cspeed + 0.2; + } + if (document.getElementById("car0").style.transform !== "rotate(90deg)") { + // { catalog: "ingame", key: "turns", add: 1 }); + document.getElementById("car0").style.transform = "rotate(90deg)"; + car0collisionon = false; + setTimeout(() => { + car0collisionon = true; + }, 500) + } + } + if (e.keyCode === 81 || e.keyCode === 65 || ((location.search === "?sp" || location.search === "?online") && e.keyCode === 37)) { // Q + if (car0cspeed < car0speed) { + car0cspeed = car0cspeed + 0.2; + } + if (document.getElementById("car0").style.transform !== "rotate(180deg)") { + // { catalog: "ingame", key: "turns", add: 1 }); + document.getElementById("car0").style.transform = "rotate(180deg)"; + car0collisionon = false; + setTimeout(() => { + car0collisionon = true; + }, 500) + } + } + if (e.keyCode === 68 || ((location.search === "?sp" || location.search === "?online") && e.keyCode === 39)) { // D + if (car0cspeed < car0speed) { + car0cspeed = car0cspeed + 0.2; + } + if (document.getElementById("car0").style.transform !== "rotate(0deg)") { + // { catalog: "ingame", key: "turns", add: 1 }); + document.getElementById("car0").style.transform = "rotate(0deg)"; + car0collisionon = false; + setTimeout(() => { + car0collisionon = true; + }, 500) + } + } + } + + // Car 1 + if (car1collisionon) { + if (location.search !== "?sp" && location.search !== "?online") { + if (e.keyCode === 38) { // up + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(-90deg)") { + document.getElementById("car1").style.transform = "rotate(-90deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + } + if (e.keyCode === 40) { // down + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(90deg)") { + document.getElementById("car1").style.transform = "rotate(90deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + } + if (e.keyCode === 37) { // left + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(180deg)") { + document.getElementById("car1").style.transform = "rotate(180deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + } + if (e.keyCode === 39) { // right + if (car1cspeed < car1speed) { + car1cspeed = car1cspeed + 0.2; + } + if (document.getElementById("car1").style.transform !== "rotate(0deg)") { + document.getElementById("car1").style.transform = "rotate(0deg)"; + car1collisionon = false; + setTimeout(() => { + car1collisionon = true; + }, 500) + } + } + } + } + if (e.keyCode === 27 || e.keyCode === 8) { // esc + pause(true); + } + } else { + if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32 || e.keyCode === 16) { // enter + if ($(".services").is(":visible")) { + selectOption(); + } else { + $(".services").show(); + } + } + if (e.keyCode === 38 || e.keyCode === 90) { // up + Sound.menu(); + var selected = $(".selected"); + $(".services li").removeClass("selected"); + if (selected.prev().length === 0) { + selected.siblings().last().addClass("selected"); + } else { + selected.prev().addClass("selected"); + } + } + if (e.keyCode === 40 || e.keyCode === 83) { // down + Sound.menu(); + var selected = $(".selected"); + $(".services li").removeClass("selected"); + if (selected.next().length === 0) { + selected.siblings().first().addClass("selected"); + } else { + selected.next().addClass("selected"); + } + } + if (e.keyCode === 27 || e.keyCode === 8) { // esc + pause(false); + } + } + } + }); +}) \ No newline at end of file diff --git a/kartik/race/circuits/main.html b/kartik/race/circuits/main.html new file mode 100755 index 0000000..2420a83 --- /dev/null +++ b/kartik/race/circuits/main.html @@ -0,0 +1,115 @@ + + + + + { + "name": { + "fr": "Un simple carré", + "en": "A Simple Square" + }, + "author": "Minteck" + } + + + +
+
+ + +
+ + + + + +
+ + +
+ + + +
+ + +
+ + +
\ No newline at end of file diff --git a/kartik/race/circuits/main.png b/kartik/race/circuits/main.png new file mode 100755 index 0000000..0bf2c03 Binary files /dev/null and b/kartik/race/circuits/main.png differ diff --git a/kartik/race/circuits/snowy.html b/kartik/race/circuits/snowy.html new file mode 100755 index 0000000..8254582 --- /dev/null +++ b/kartik/race/circuits/snowy.html @@ -0,0 +1,115 @@ + + + + + { + "name": { + "fr": "La montagne enneigée", + "en": "The Snowy Mountain" + }, + "author": "Minteck" + } + + + +
+
+ + +
+ + + + + +
+ + +
+ + + +
+ + +
+ + +
\ No newline at end of file diff --git a/kartik/race/circuits/snowy.png b/kartik/race/circuits/snowy.png new file mode 100755 index 0000000..31f28a9 Binary files /dev/null and b/kartik/race/circuits/snowy.png differ diff --git a/kartik/race/circuits/water.html b/kartik/race/circuits/water.html new file mode 100755 index 0000000..811010f --- /dev/null +++ b/kartik/race/circuits/water.html @@ -0,0 +1,133 @@ + + + + + { + "name": { + "fr": "Attention à l'eau", + "en": "Keep out the water" + }, + "author": "Minteck" + } + + + +
+
+ + +
+ + + + + +
+ + +
+ + + +
+ +
+
+ + +
\ No newline at end of file diff --git a/kartik/race/circuits/water.png b/kartik/race/circuits/water.png new file mode 100755 index 0000000..d065b1c Binary files /dev/null and b/kartik/race/circuits/water.png differ diff --git a/kartik/race/models/alpspin_by_redman_blue.png b/kartik/race/models/alpspin_by_redman_blue.png new file mode 100755 index 0000000..59bcd11 Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_blue.png differ diff --git a/kartik/race/models/alpspin_by_redman_green.png b/kartik/race/models/alpspin_by_redman_green.png new file mode 100755 index 0000000..3e4bfea Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_green.png differ diff --git a/kartik/race/models/alpspin_by_redman_orange.png b/kartik/race/models/alpspin_by_redman_orange.png new file mode 100755 index 0000000..9ec964a Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_orange.png differ diff --git a/kartik/race/models/alpspin_by_redman_red.png b/kartik/race/models/alpspin_by_redman_red.png new file mode 100755 index 0000000..2539a50 Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_red.png differ diff --git a/kartik/race/models/alpspin_by_redman_turquoise.png b/kartik/race/models/alpspin_by_redman_turquoise.png new file mode 100755 index 0000000..c2ecd6b Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_turquoise.png differ diff --git a/kartik/race/models/alpspin_by_redman_violet.png b/kartik/race/models/alpspin_by_redman_violet.png new file mode 100755 index 0000000..a617231 Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_violet.png differ diff --git a/kartik/race/models/alpspin_by_redman_yellow.png b/kartik/race/models/alpspin_by_redman_yellow.png new file mode 100755 index 0000000..fead3c9 Binary files /dev/null and b/kartik/race/models/alpspin_by_redman_yellow.png differ diff --git a/kartik/race/models/argenquirie_by_redman.png b/kartik/race/models/argenquirie_by_redman.png new file mode 100755 index 0000000..b3e0866 Binary files /dev/null and b/kartik/race/models/argenquirie_by_redman.png differ diff --git a/kartik/race/models/argenquiriedx_by_redman.png b/kartik/race/models/argenquiriedx_by_redman.png new file mode 100755 index 0000000..ea97f54 Binary files /dev/null and b/kartik/race/models/argenquiriedx_by_redman.png differ diff --git a/kartik/race/models/base_by_minteck_blue.png b/kartik/race/models/base_by_minteck_blue.png new file mode 100755 index 0000000..36d58b6 Binary files /dev/null and b/kartik/race/models/base_by_minteck_blue.png differ diff --git a/kartik/race/models/base_by_minteck_green.png b/kartik/race/models/base_by_minteck_green.png new file mode 100755 index 0000000..df387da Binary files /dev/null and b/kartik/race/models/base_by_minteck_green.png differ diff --git a/kartik/race/models/base_by_minteck_orange.png b/kartik/race/models/base_by_minteck_orange.png new file mode 100755 index 0000000..5dfb70b Binary files /dev/null and b/kartik/race/models/base_by_minteck_orange.png differ diff --git a/kartik/race/models/base_by_minteck_red.png b/kartik/race/models/base_by_minteck_red.png new file mode 100755 index 0000000..fa4db1a Binary files /dev/null and b/kartik/race/models/base_by_minteck_red.png differ diff --git a/kartik/race/models/base_by_minteck_turquoise.png b/kartik/race/models/base_by_minteck_turquoise.png new file mode 100755 index 0000000..0553739 Binary files /dev/null and b/kartik/race/models/base_by_minteck_turquoise.png differ diff --git a/kartik/race/models/base_by_minteck_violet.png b/kartik/race/models/base_by_minteck_violet.png new file mode 100755 index 0000000..2e541e0 Binary files /dev/null and b/kartik/race/models/base_by_minteck_violet.png differ diff --git a/kartik/race/models/base_by_minteck_yellow.png b/kartik/race/models/base_by_minteck_yellow.png new file mode 100755 index 0000000..25b9113 Binary files /dev/null and b/kartik/race/models/base_by_minteck_yellow.png differ diff --git a/kartik/race/models/pride_month_2021.png b/kartik/race/models/pride_month_2021.png new file mode 100755 index 0000000..97da379 Binary files /dev/null and b/kartik/race/models/pride_month_2021.png differ diff --git a/kartik/race/models/spagetti11_by_redman.png b/kartik/race/models/spagetti11_by_redman.png new file mode 100755 index 0000000..63707a5 Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman.png differ diff --git a/kartik/race/models/spagetti11_by_redman_blue.png b/kartik/race/models/spagetti11_by_redman_blue.png new file mode 100755 index 0000000..9a10a06 Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman_blue.png differ diff --git a/kartik/race/models/spagetti11_by_redman_green.png b/kartik/race/models/spagetti11_by_redman_green.png new file mode 100755 index 0000000..00767b7 Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman_green.png differ diff --git a/kartik/race/models/spagetti11_by_redman_orange.png b/kartik/race/models/spagetti11_by_redman_orange.png new file mode 100755 index 0000000..b600c96 Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman_orange.png differ diff --git a/kartik/race/models/spagetti11_by_redman_turquoise.png b/kartik/race/models/spagetti11_by_redman_turquoise.png new file mode 100755 index 0000000..37c5bac Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman_turquoise.png differ diff --git a/kartik/race/models/spagetti11_by_redman_violet.png b/kartik/race/models/spagetti11_by_redman_violet.png new file mode 100755 index 0000000..135b8cb Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman_violet.png differ diff --git a/kartik/race/models/spagetti11_by_redman_yellow.png b/kartik/race/models/spagetti11_by_redman_yellow.png new file mode 100755 index 0000000..e5fc81f Binary files /dev/null and b/kartik/race/models/spagetti11_by_redman_yellow.png differ diff --git a/kartik/race/oil.png b/kartik/race/oil.png new file mode 100755 index 0000000..cb23917 Binary files /dev/null and b/kartik/race/oil.png differ diff --git a/kartik/race/pause.js b/kartik/race/pause.js new file mode 100755 index 0000000..8cf46ea --- /dev/null +++ b/kartik/race/pause.js @@ -0,0 +1,82 @@ +global.quitting = false; + +startHooks.push(() => { + global.pause = (stat) => { + if (stat) { + warn("Suspend", "Game paused"); + Sound.pause(); + shouldMusicPlay = false; + window.parent.musicManager.fadeMusic(); + if (typeof e !== "undefined") { + if (e.currentTime < e.duration) { + e.pause(); + } + } + if (typeof b !== "undefined") { + b.pause(); + } + paused = true; + document.getElementById('box').classList.add('paused'); + $("#paused").show(); + } else { + warn("Suspend", "Game resumed"); + Sound.pause(); + shouldMusicPlay = true; + window.parent.musicManager.unfadeMusic(); + if (typeof me !== "undefined") { + if (me.currentTime < me.duration) { + me.play(); + } + } + if (typeof b !== "undefined") { + b.play(); + } + paused = false; + document.getElementById('box').classList.remove('paused'); + $("#paused").hide(); + } + } + + global.selectOption = () => { + item = document.querySelector(".selected a").id; + Sound.click(); + + switch (item) { + case 'continue': + pause(false); + break; + case 'hitboxes': + if (hitshow) { + hitshow = false; + document.getElementById("circuit").classList.remove("hitboxes"); + document.getElementById('hitboxes').innerText = lang.game.gpause.showhb; + info("GameWindow", "Hitboxes hidden"); + } else { + hitshow = true; + document.getElementById("circuit").classList.add("hitboxes"); + document.getElementById('hitboxes').innerText = lang.game.gpause.hidehb; + info("GameWindow", "Hitboxes shown"); + } + break; + case 'quit': + if (online) { + global.quitting = true; + clientWriter(JSON.stringify({ + _type: "ipc", + action: "abort", + message: null + }) + "|") + } + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + $("#bg").fadeOut(500); + $("#paused").fadeOut(500); + setTimeout(() => { + info("GameWindow", "Switching control to MenuWindow"); + location.href = "menu.html?back"; + }, 1000) + break; + } + } +}) \ No newline at end of file diff --git a/kartik/resources.json b/kartik/resources.json new file mode 100644 index 0000000..b7864f2 --- /dev/null +++ b/kartik/resources.json @@ -0,0 +1,121 @@ +{ + "music": { + "credits": { + "file": "/kartik/music/credits.mp3", + "original": true + }, + "game1": { + "file": "/kartik/music/game1.mp3", + "original": true + }, + "game2": { + "file": "/kartik/music/game2.mp3", + "original": true + }, + "game3": { + "file": "/kartik/music/game3.mp3", + "original": true + }, + "game4": { + "file": "/kartik/music/game4.mp3", + "original": true + }, + "game5": { + "file": "/kartik/music/game5.mp3", + "original": true + }, + "game6": { + "file": "/kartik/music/game6.mp3", + "original": true + }, + "game7": { + "file": "/kartik/music/game7.mp3", + "original": true + }, + "game8": { + "file": "/kartik/music/game8.mp3", + "original": true + }, + "game9": { + "file": "/kartik/music/game9.mp3", + "original": true + }, + "prepare": { + "file": "/kartik/music/prepare.mp3", + "original": true + }, + "start": { + "file": "/kartik/music/start.mp3", + "original": true + }, + "title": { + "file": "/kartik/music/title.mp3", + "original": true + }, + "win": { + "file": "/kartik/music/win.mp3", + "original": true + } + }, + "sfx": { + "click": "/kartik/sfx/click.mp3", + "crash": "/kartik/sfx/crash.mp3", + "intro": "/kartik/sfx/intro.mp3", + "last": "/kartik/sfx/last.mp3", + "menu": "/kartik/sfx/menu.mp3", + "newintro": "/kartik/sfx/newintro.mp3", + "notification": "/kartik/sfx/notification.mp3", + "pass": "/kartik/sfx/pass.mp3", + "pause": "/kartik/sfx/pause.mp3", + "win": "/kartik/sfx/win.mp3" + }, + "races": { + "main": "./race/circuits/main.html", + "snowy": "./race/circuits/snowy.html", + "water": "./race/circuits/water.html" + }, + "cars": { + "alpspin_by_redman_blue": "/kartik/race/models/alpspin_by_redman_blue.png", + "alpspin_by_redman_green": "/kartik/race/models/alpspin_by_redman_green.png", + "alpspin_by_redman_orange": "/kartik/race/models/alpspin_by_redman_orange.png", + "alpspin_by_redman_red": "/kartik/race/models/alpspin_by_redman_red.png", + "alpspin_by_redman_turquoise": "/kartik/race/models/alpspin_by_redman_turquoise.png", + "alpspin_by_redman_violet": "/kartik/race/models/alpspin_by_redman_violet.png", + "alpspin_by_redman_yellow": "/kartik/race/models/alpspin_by_redman_yellow.png", + "argenquirie_by_redman": "/kartik/race/models/argenquirie_by_redman.png", + "argenquiriedx_by_redman": "/kartik/race/models/argenquiriedx_by_redman.png", + "base_by_minteck_blue": "/kartik/race/models/base_by_minteck_blue.png", + "base_by_minteck_green": "/kartik/race/models/base_by_minteck_green.png", + "base_by_minteck_orange": "/kartik/race/models/base_by_minteck_orange.png", + "base_by_minteck_red": "/kartik/race/models/base_by_minteck_red.png", + "base_by_minteck_turquoise": "/kartik/race/models/base_by_minteck_turquoise.png", + "base_by_minteck_violet": "/kartik/race/models/base_by_minteck_violet.png", + "base_by_minteck_yellow": "/kartik/race/models/base_by_minteck_yellow.png", + "pride_month_2021": "/kartik/race/models/pride_month_2021.png", + "spagetti11_by_redman": "/kartik/race/models/spagetti11_by_redman.png", + "spagetti11_by_redman_blue": "/kartik/race/models/spagetti11_by_redman_blue.png", + "spagetti11_by_redman_green": "/kartik/race/models/spagetti11_by_redman_green.png", + "spagetti11_by_redman_orange": "/kartik/race/models/spagetti11_by_redman_orange.png", + "spagetti11_by_redman_turquoise": "/kartik/race/models/spagetti11_by_redman_turquoise.png", + "spagetti11_by_redman_violet": "/kartik/race/models/spagetti11_by_redman_violet.png", + "spagetti11_by_redman_yellow": "/kartik/race/models/spagetti11_by_redman_yellow.png" + }, + "scenario": { + "voice": { + "de": "/kartik/scenario/voice/de", + "en": "/kartik/scenario/voice/en", + "es": "/kartik/scenario/voice/es", + "fr": "/kartik/scenario/voice/fr", + "jp": "/kartik/scenario/voice/jp", + "nl": "/kartik/scenario/voice/nl", + "ru": "/kartik/scenario/voice/ru", + "zh": "/kartik/scenario/voice/zh" + }, + "averi": { + "angry": "/kartik/scenario/character/angry.png", + "happy": "/kartik/scenario/character/happy.png", + "neutral": "/kartik/scenario/character/neutral.png", + "sad": "/kartik/scenario/character/sad.png" + } + } +} \ No newline at end of file diff --git a/kartik/runtime/kartik-crash-mac.sh b/kartik/runtime/kartik-crash-mac.sh new file mode 100755 index 0000000..e2bd0ec --- /dev/null +++ b/kartik/runtime/kartik-crash-mac.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./bin/macos/Electron.app/Contents/MacOS/Electron crash/wrapper.js %1 diff --git a/kartik/runtime/kartik-crash.bat b/kartik/runtime/kartik-crash.bat new file mode 100755 index 0000000..f7c85b0 --- /dev/null +++ b/kartik/runtime/kartik-crash.bat @@ -0,0 +1,2 @@ +@echo off +bin\win32\kartik-core.exe crash\wrapper.js %1 \ No newline at end of file diff --git a/kartik/runtime/kartik-crash.sh b/kartik/runtime/kartik-crash.sh new file mode 100755 index 0000000..38c782e --- /dev/null +++ b/kartik/runtime/kartik-crash.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./bin/linux/kartik-core.bin crash/wrapper.js %1 diff --git a/kartik/runtime/kartik-debug.bat b/kartik/runtime/kartik-debug.bat new file mode 100755 index 0000000..475547d --- /dev/null +++ b/kartik/runtime/kartik-debug.bat @@ -0,0 +1,2 @@ +@echo off +bin\win32\kartik-core.exe app.js d \ No newline at end of file diff --git a/kartik/runtime/kartik-debug.sh b/kartik/runtime/kartik-debug.sh new file mode 100755 index 0000000..80c82ba --- /dev/null +++ b/kartik/runtime/kartik-debug.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./bin/linux/kartik-core.bin app.js d diff --git a/kartik/runtime/kartik-launcher.bat b/kartik/runtime/kartik-launcher.bat new file mode 100755 index 0000000..e7775a8 --- /dev/null +++ b/kartik/runtime/kartik-launcher.bat @@ -0,0 +1,2 @@ +cd %localappdata%\Kartik +kartik.bat \ No newline at end of file diff --git a/kartik/runtime/kartik-launcher.sed b/kartik/runtime/kartik-launcher.sed new file mode 100755 index 0000000..13c6d5e --- /dev/null +++ b/kartik/runtime/kartik-launcher.sed @@ -0,0 +1,37 @@ +[Version] +Class=IEXPRESS +SEDVersion=3 +[Options] +PackagePurpose=InstallApp +ShowInstallProgramWindow=1 +HideExtractAnimation=1 +UseLongFileName=1 +InsideCompressed=0 +CAB_FixedSize=0 +CAB_ResvCodeSigning=0 +RebootMode=N +InstallPrompt=%InstallPrompt% +DisplayLicense=%DisplayLicense% +FinishMessage=%FinishMessage% +TargetName=%TargetName% +FriendlyName=%FriendlyName% +AppLaunched=%AppLaunched% +PostInstallCmd=%PostInstallCmd% +AdminQuietInstCmd=%AdminQuietInstCmd% +UserQuietInstCmd=%UserQuietInstCmd% +SourceFiles=SourceFiles +[Strings] +InstallPrompt= +DisplayLicense= +FinishMessage= +TargetName=X:\Projets\Kartik\kartik-launcher.exe +FriendlyName=Kartik +AppLaunched=cmd /c kartik-launcher.bat +PostInstallCmd= +AdminQuietInstCmd= +UserQuietInstCmd= +FILE0="kartik-launcher.bat" +[SourceFiles] +SourceFiles0=X:\Projets\Kartik\ +[SourceFiles0] +%FILE0%= diff --git a/kartik/runtime/kartik-launcher.sh b/kartik/runtime/kartik-launcher.sh new file mode 100755 index 0000000..a636c79 --- /dev/null +++ b/kartik/runtime/kartik-launcher.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd $HOME/.local/share/kartik +./kartik.sh diff --git a/kartik/runtime/kartik-mitigation-mac.sh b/kartik/runtime/kartik-mitigation-mac.sh new file mode 100755 index 0000000..a63c663 --- /dev/null +++ b/kartik/runtime/kartik-mitigation-mac.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./bin/macos/Electron.app/Contents/MacOS/Electron app.js m diff --git a/kartik/runtime/kartik-mitigation.bat b/kartik/runtime/kartik-mitigation.bat new file mode 100755 index 0000000..b7e3d53 --- /dev/null +++ b/kartik/runtime/kartik-mitigation.bat @@ -0,0 +1,2 @@ +@echo off +bin\win32\kartik-core.exe app.js m diff --git a/kartik/runtime/kartik-mitigation.sh b/kartik/runtime/kartik-mitigation.sh new file mode 100755 index 0000000..2517115 --- /dev/null +++ b/kartik/runtime/kartik-mitigation.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./bin/linux/kartik-core.bin app.js m diff --git a/kartik/scenario/character/angry.png b/kartik/scenario/character/angry.png new file mode 100755 index 0000000..604abf3 Binary files /dev/null and b/kartik/scenario/character/angry.png differ diff --git a/kartik/scenario/character/happy.png b/kartik/scenario/character/happy.png new file mode 100755 index 0000000..8661645 Binary files /dev/null and b/kartik/scenario/character/happy.png differ diff --git a/kartik/scenario/character/neutral.png b/kartik/scenario/character/neutral.png new file mode 100755 index 0000000..bca341e Binary files /dev/null and b/kartik/scenario/character/neutral.png differ diff --git a/kartik/scenario/character/sad.png b/kartik/scenario/character/sad.png new file mode 100755 index 0000000..a48df9d Binary files /dev/null and b/kartik/scenario/character/sad.png differ diff --git a/kartik/scenario/client.js b/kartik/scenario/client.js new file mode 100755 index 0000000..caef8d5 --- /dev/null +++ b/kartik/scenario/client.js @@ -0,0 +1 @@ +function scenar(ns, emote, cb) {} diff --git a/kartik/scenario/voice/de/ahead10.mp3 b/kartik/scenario/voice/de/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/de/ahead10.mp3 differ diff --git a/kartik/scenario/voice/de/ahead11.mp3 b/kartik/scenario/voice/de/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/de/ahead11.mp3 differ diff --git a/kartik/scenario/voice/de/ahead12.mp3 b/kartik/scenario/voice/de/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/de/ahead12.mp3 differ diff --git a/kartik/scenario/voice/de/ahead13.mp3 b/kartik/scenario/voice/de/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/de/ahead13.mp3 differ diff --git a/kartik/scenario/voice/de/ahead14.mp3 b/kartik/scenario/voice/de/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/de/ahead14.mp3 differ diff --git a/kartik/scenario/voice/de/ahead20.mp3 b/kartik/scenario/voice/de/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/de/ahead20.mp3 differ diff --git a/kartik/scenario/voice/de/ahead21.mp3 b/kartik/scenario/voice/de/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/de/ahead21.mp3 differ diff --git a/kartik/scenario/voice/de/ahead22.mp3 b/kartik/scenario/voice/de/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/de/ahead22.mp3 differ diff --git a/kartik/scenario/voice/de/ahead23.mp3 b/kartik/scenario/voice/de/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/de/ahead23.mp3 differ diff --git a/kartik/scenario/voice/de/ahead24.mp3 b/kartik/scenario/voice/de/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/de/ahead24.mp3 differ diff --git a/kartik/scenario/voice/de/intro0.mp3 b/kartik/scenario/voice/de/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/de/intro0.mp3 differ diff --git a/kartik/scenario/voice/de/intro1.mp3 b/kartik/scenario/voice/de/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/de/intro1.mp3 differ diff --git a/kartik/scenario/voice/de/intro2.mp3 b/kartik/scenario/voice/de/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/de/intro2.mp3 differ diff --git a/kartik/scenario/voice/de/intro3.mp3 b/kartik/scenario/voice/de/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/de/intro3.mp3 differ diff --git a/kartik/scenario/voice/de/start0.mp3 b/kartik/scenario/voice/de/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/de/start0.mp3 differ diff --git a/kartik/scenario/voice/de/start1.mp3 b/kartik/scenario/voice/de/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/de/start1.mp3 differ diff --git a/kartik/scenario/voice/de/start2.mp3 b/kartik/scenario/voice/de/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/de/start2.mp3 differ diff --git a/kartik/scenario/voice/de/start3.mp3 b/kartik/scenario/voice/de/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/de/start3.mp3 differ diff --git a/kartik/scenario/voice/de/start4.mp3 b/kartik/scenario/voice/de/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/de/start4.mp3 differ diff --git a/kartik/scenario/voice/de/start5.mp3 b/kartik/scenario/voice/de/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/de/start5.mp3 differ diff --git a/kartik/scenario/voice/de/wall10.mp3 b/kartik/scenario/voice/de/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/de/wall10.mp3 differ diff --git a/kartik/scenario/voice/de/wall11.mp3 b/kartik/scenario/voice/de/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/de/wall11.mp3 differ diff --git a/kartik/scenario/voice/de/wall12.mp3 b/kartik/scenario/voice/de/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/de/wall12.mp3 differ diff --git a/kartik/scenario/voice/de/wall13.mp3 b/kartik/scenario/voice/de/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/de/wall13.mp3 differ diff --git a/kartik/scenario/voice/de/wall14.mp3 b/kartik/scenario/voice/de/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/de/wall14.mp3 differ diff --git a/kartik/scenario/voice/de/wall20.mp3 b/kartik/scenario/voice/de/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/de/wall20.mp3 differ diff --git a/kartik/scenario/voice/de/wall21.mp3 b/kartik/scenario/voice/de/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/de/wall21.mp3 differ diff --git a/kartik/scenario/voice/de/wall22.mp3 b/kartik/scenario/voice/de/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/de/wall22.mp3 differ diff --git a/kartik/scenario/voice/de/wall23.mp3 b/kartik/scenario/voice/de/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/de/wall23.mp3 differ diff --git a/kartik/scenario/voice/de/won10.mp3 b/kartik/scenario/voice/de/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/de/won10.mp3 differ diff --git a/kartik/scenario/voice/de/won11.mp3 b/kartik/scenario/voice/de/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/de/won11.mp3 differ diff --git a/kartik/scenario/voice/de/won12.mp3 b/kartik/scenario/voice/de/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/de/won12.mp3 differ diff --git a/kartik/scenario/voice/de/won13.mp3 b/kartik/scenario/voice/de/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/de/won13.mp3 differ diff --git a/kartik/scenario/voice/de/won14.mp3 b/kartik/scenario/voice/de/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/de/won14.mp3 differ diff --git a/kartik/scenario/voice/de/won20.mp3 b/kartik/scenario/voice/de/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/de/won20.mp3 differ diff --git a/kartik/scenario/voice/de/won21.mp3 b/kartik/scenario/voice/de/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/de/won21.mp3 differ diff --git a/kartik/scenario/voice/de/won22.mp3 b/kartik/scenario/voice/de/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/de/won22.mp3 differ diff --git a/kartik/scenario/voice/de/won23.mp3 b/kartik/scenario/voice/de/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/de/won23.mp3 differ diff --git a/kartik/scenario/voice/de/won24.mp3 b/kartik/scenario/voice/de/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/de/won24.mp3 differ diff --git a/kartik/scenario/voice/en/ahead10.mp3 b/kartik/scenario/voice/en/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/en/ahead10.mp3 differ diff --git a/kartik/scenario/voice/en/ahead11.mp3 b/kartik/scenario/voice/en/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/en/ahead11.mp3 differ diff --git a/kartik/scenario/voice/en/ahead12.mp3 b/kartik/scenario/voice/en/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/en/ahead12.mp3 differ diff --git a/kartik/scenario/voice/en/ahead13.mp3 b/kartik/scenario/voice/en/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/en/ahead13.mp3 differ diff --git a/kartik/scenario/voice/en/ahead14.mp3 b/kartik/scenario/voice/en/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/en/ahead14.mp3 differ diff --git a/kartik/scenario/voice/en/ahead20.mp3 b/kartik/scenario/voice/en/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/en/ahead20.mp3 differ diff --git a/kartik/scenario/voice/en/ahead21.mp3 b/kartik/scenario/voice/en/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/en/ahead21.mp3 differ diff --git a/kartik/scenario/voice/en/ahead22.mp3 b/kartik/scenario/voice/en/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/en/ahead22.mp3 differ diff --git a/kartik/scenario/voice/en/ahead23.mp3 b/kartik/scenario/voice/en/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/en/ahead23.mp3 differ diff --git a/kartik/scenario/voice/en/ahead24.mp3 b/kartik/scenario/voice/en/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/en/ahead24.mp3 differ diff --git a/kartik/scenario/voice/en/intro0.mp3 b/kartik/scenario/voice/en/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/en/intro0.mp3 differ diff --git a/kartik/scenario/voice/en/intro1.mp3 b/kartik/scenario/voice/en/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/en/intro1.mp3 differ diff --git a/kartik/scenario/voice/en/intro2.mp3 b/kartik/scenario/voice/en/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/en/intro2.mp3 differ diff --git a/kartik/scenario/voice/en/intro3.mp3 b/kartik/scenario/voice/en/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/en/intro3.mp3 differ diff --git a/kartik/scenario/voice/en/start0.mp3 b/kartik/scenario/voice/en/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/en/start0.mp3 differ diff --git a/kartik/scenario/voice/en/start1.mp3 b/kartik/scenario/voice/en/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/en/start1.mp3 differ diff --git a/kartik/scenario/voice/en/start2.mp3 b/kartik/scenario/voice/en/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/en/start2.mp3 differ diff --git a/kartik/scenario/voice/en/start3.mp3 b/kartik/scenario/voice/en/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/en/start3.mp3 differ diff --git a/kartik/scenario/voice/en/start4.mp3 b/kartik/scenario/voice/en/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/en/start4.mp3 differ diff --git a/kartik/scenario/voice/en/start5.mp3 b/kartik/scenario/voice/en/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/en/start5.mp3 differ diff --git a/kartik/scenario/voice/en/wall10.mp3 b/kartik/scenario/voice/en/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/en/wall10.mp3 differ diff --git a/kartik/scenario/voice/en/wall11.mp3 b/kartik/scenario/voice/en/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/en/wall11.mp3 differ diff --git a/kartik/scenario/voice/en/wall12.mp3 b/kartik/scenario/voice/en/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/en/wall12.mp3 differ diff --git a/kartik/scenario/voice/en/wall13.mp3 b/kartik/scenario/voice/en/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/en/wall13.mp3 differ diff --git a/kartik/scenario/voice/en/wall14.mp3 b/kartik/scenario/voice/en/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/en/wall14.mp3 differ diff --git a/kartik/scenario/voice/en/wall20.mp3 b/kartik/scenario/voice/en/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/en/wall20.mp3 differ diff --git a/kartik/scenario/voice/en/wall21.mp3 b/kartik/scenario/voice/en/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/en/wall21.mp3 differ diff --git a/kartik/scenario/voice/en/wall22.mp3 b/kartik/scenario/voice/en/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/en/wall22.mp3 differ diff --git a/kartik/scenario/voice/en/wall23.mp3 b/kartik/scenario/voice/en/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/en/wall23.mp3 differ diff --git a/kartik/scenario/voice/en/won10.mp3 b/kartik/scenario/voice/en/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/en/won10.mp3 differ diff --git a/kartik/scenario/voice/en/won11.mp3 b/kartik/scenario/voice/en/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/en/won11.mp3 differ diff --git a/kartik/scenario/voice/en/won12.mp3 b/kartik/scenario/voice/en/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/en/won12.mp3 differ diff --git a/kartik/scenario/voice/en/won13.mp3 b/kartik/scenario/voice/en/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/en/won13.mp3 differ diff --git a/kartik/scenario/voice/en/won14.mp3 b/kartik/scenario/voice/en/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/en/won14.mp3 differ diff --git a/kartik/scenario/voice/en/won20.mp3 b/kartik/scenario/voice/en/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/en/won20.mp3 differ diff --git a/kartik/scenario/voice/en/won21.mp3 b/kartik/scenario/voice/en/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/en/won21.mp3 differ diff --git a/kartik/scenario/voice/en/won22.mp3 b/kartik/scenario/voice/en/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/en/won22.mp3 differ diff --git a/kartik/scenario/voice/en/won23.mp3 b/kartik/scenario/voice/en/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/en/won23.mp3 differ diff --git a/kartik/scenario/voice/en/won24.mp3 b/kartik/scenario/voice/en/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/en/won24.mp3 differ diff --git a/kartik/scenario/voice/es/ahead10.mp3 b/kartik/scenario/voice/es/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/es/ahead10.mp3 differ diff --git a/kartik/scenario/voice/es/ahead11.mp3 b/kartik/scenario/voice/es/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/es/ahead11.mp3 differ diff --git a/kartik/scenario/voice/es/ahead12.mp3 b/kartik/scenario/voice/es/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/es/ahead12.mp3 differ diff --git a/kartik/scenario/voice/es/ahead13.mp3 b/kartik/scenario/voice/es/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/es/ahead13.mp3 differ diff --git a/kartik/scenario/voice/es/ahead14.mp3 b/kartik/scenario/voice/es/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/es/ahead14.mp3 differ diff --git a/kartik/scenario/voice/es/ahead20.mp3 b/kartik/scenario/voice/es/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/es/ahead20.mp3 differ diff --git a/kartik/scenario/voice/es/ahead21.mp3 b/kartik/scenario/voice/es/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/es/ahead21.mp3 differ diff --git a/kartik/scenario/voice/es/ahead22.mp3 b/kartik/scenario/voice/es/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/es/ahead22.mp3 differ diff --git a/kartik/scenario/voice/es/ahead23.mp3 b/kartik/scenario/voice/es/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/es/ahead23.mp3 differ diff --git a/kartik/scenario/voice/es/ahead24.mp3 b/kartik/scenario/voice/es/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/es/ahead24.mp3 differ diff --git a/kartik/scenario/voice/es/intro0.mp3 b/kartik/scenario/voice/es/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/es/intro0.mp3 differ diff --git a/kartik/scenario/voice/es/intro1.mp3 b/kartik/scenario/voice/es/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/es/intro1.mp3 differ diff --git a/kartik/scenario/voice/es/intro2.mp3 b/kartik/scenario/voice/es/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/es/intro2.mp3 differ diff --git a/kartik/scenario/voice/es/intro3.mp3 b/kartik/scenario/voice/es/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/es/intro3.mp3 differ diff --git a/kartik/scenario/voice/es/start0.mp3 b/kartik/scenario/voice/es/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/es/start0.mp3 differ diff --git a/kartik/scenario/voice/es/start1.mp3 b/kartik/scenario/voice/es/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/es/start1.mp3 differ diff --git a/kartik/scenario/voice/es/start2.mp3 b/kartik/scenario/voice/es/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/es/start2.mp3 differ diff --git a/kartik/scenario/voice/es/start3.mp3 b/kartik/scenario/voice/es/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/es/start3.mp3 differ diff --git a/kartik/scenario/voice/es/start4.mp3 b/kartik/scenario/voice/es/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/es/start4.mp3 differ diff --git a/kartik/scenario/voice/es/start5.mp3 b/kartik/scenario/voice/es/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/es/start5.mp3 differ diff --git a/kartik/scenario/voice/es/wall10.mp3 b/kartik/scenario/voice/es/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/es/wall10.mp3 differ diff --git a/kartik/scenario/voice/es/wall11.mp3 b/kartik/scenario/voice/es/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/es/wall11.mp3 differ diff --git a/kartik/scenario/voice/es/wall12.mp3 b/kartik/scenario/voice/es/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/es/wall12.mp3 differ diff --git a/kartik/scenario/voice/es/wall13.mp3 b/kartik/scenario/voice/es/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/es/wall13.mp3 differ diff --git a/kartik/scenario/voice/es/wall14.mp3 b/kartik/scenario/voice/es/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/es/wall14.mp3 differ diff --git a/kartik/scenario/voice/es/wall20.mp3 b/kartik/scenario/voice/es/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/es/wall20.mp3 differ diff --git a/kartik/scenario/voice/es/wall21.mp3 b/kartik/scenario/voice/es/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/es/wall21.mp3 differ diff --git a/kartik/scenario/voice/es/wall22.mp3 b/kartik/scenario/voice/es/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/es/wall22.mp3 differ diff --git a/kartik/scenario/voice/es/wall23.mp3 b/kartik/scenario/voice/es/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/es/wall23.mp3 differ diff --git a/kartik/scenario/voice/es/won10.mp3 b/kartik/scenario/voice/es/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/es/won10.mp3 differ diff --git a/kartik/scenario/voice/es/won11.mp3 b/kartik/scenario/voice/es/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/es/won11.mp3 differ diff --git a/kartik/scenario/voice/es/won12.mp3 b/kartik/scenario/voice/es/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/es/won12.mp3 differ diff --git a/kartik/scenario/voice/es/won13.mp3 b/kartik/scenario/voice/es/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/es/won13.mp3 differ diff --git a/kartik/scenario/voice/es/won14.mp3 b/kartik/scenario/voice/es/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/es/won14.mp3 differ diff --git a/kartik/scenario/voice/es/won20.mp3 b/kartik/scenario/voice/es/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/es/won20.mp3 differ diff --git a/kartik/scenario/voice/es/won21.mp3 b/kartik/scenario/voice/es/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/es/won21.mp3 differ diff --git a/kartik/scenario/voice/es/won22.mp3 b/kartik/scenario/voice/es/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/es/won22.mp3 differ diff --git a/kartik/scenario/voice/es/won23.mp3 b/kartik/scenario/voice/es/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/es/won23.mp3 differ diff --git a/kartik/scenario/voice/es/won24.mp3 b/kartik/scenario/voice/es/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/es/won24.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead10.mp3 b/kartik/scenario/voice/fr/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/fr/ahead10.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead11.mp3 b/kartik/scenario/voice/fr/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead11.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead12.mp3 b/kartik/scenario/voice/fr/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/fr/ahead12.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead13.mp3 b/kartik/scenario/voice/fr/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead13.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead14.mp3 b/kartik/scenario/voice/fr/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead14.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead20.mp3 b/kartik/scenario/voice/fr/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead20.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead21.mp3 b/kartik/scenario/voice/fr/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead21.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead22.mp3 b/kartik/scenario/voice/fr/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead22.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead23.mp3 b/kartik/scenario/voice/fr/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/fr/ahead23.mp3 differ diff --git a/kartik/scenario/voice/fr/ahead24.mp3 b/kartik/scenario/voice/fr/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/fr/ahead24.mp3 differ diff --git a/kartik/scenario/voice/fr/intro0.mp3 b/kartik/scenario/voice/fr/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/fr/intro0.mp3 differ diff --git a/kartik/scenario/voice/fr/intro1.mp3 b/kartik/scenario/voice/fr/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/fr/intro1.mp3 differ diff --git a/kartik/scenario/voice/fr/intro2.mp3 b/kartik/scenario/voice/fr/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/fr/intro2.mp3 differ diff --git a/kartik/scenario/voice/fr/intro3.mp3 b/kartik/scenario/voice/fr/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/fr/intro3.mp3 differ diff --git a/kartik/scenario/voice/fr/start0.mp3 b/kartik/scenario/voice/fr/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/fr/start0.mp3 differ diff --git a/kartik/scenario/voice/fr/start1.mp3 b/kartik/scenario/voice/fr/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/fr/start1.mp3 differ diff --git a/kartik/scenario/voice/fr/start2.mp3 b/kartik/scenario/voice/fr/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/fr/start2.mp3 differ diff --git a/kartik/scenario/voice/fr/start3.mp3 b/kartik/scenario/voice/fr/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/fr/start3.mp3 differ diff --git a/kartik/scenario/voice/fr/start4.mp3 b/kartik/scenario/voice/fr/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/fr/start4.mp3 differ diff --git a/kartik/scenario/voice/fr/start5.mp3 b/kartik/scenario/voice/fr/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/fr/start5.mp3 differ diff --git a/kartik/scenario/voice/fr/wall10.mp3 b/kartik/scenario/voice/fr/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/fr/wall10.mp3 differ diff --git a/kartik/scenario/voice/fr/wall11.mp3 b/kartik/scenario/voice/fr/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/fr/wall11.mp3 differ diff --git a/kartik/scenario/voice/fr/wall12.mp3 b/kartik/scenario/voice/fr/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/fr/wall12.mp3 differ diff --git a/kartik/scenario/voice/fr/wall13.mp3 b/kartik/scenario/voice/fr/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/fr/wall13.mp3 differ diff --git a/kartik/scenario/voice/fr/wall14.mp3 b/kartik/scenario/voice/fr/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/fr/wall14.mp3 differ diff --git a/kartik/scenario/voice/fr/wall20.mp3 b/kartik/scenario/voice/fr/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/fr/wall20.mp3 differ diff --git a/kartik/scenario/voice/fr/wall21.mp3 b/kartik/scenario/voice/fr/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/fr/wall21.mp3 differ diff --git a/kartik/scenario/voice/fr/wall22.mp3 b/kartik/scenario/voice/fr/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/fr/wall22.mp3 differ diff --git a/kartik/scenario/voice/fr/wall23.mp3 b/kartik/scenario/voice/fr/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/fr/wall23.mp3 differ diff --git a/kartik/scenario/voice/fr/won10.mp3 b/kartik/scenario/voice/fr/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/fr/won10.mp3 differ diff --git a/kartik/scenario/voice/fr/won11.mp3 b/kartik/scenario/voice/fr/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/fr/won11.mp3 differ diff --git a/kartik/scenario/voice/fr/won12.mp3 b/kartik/scenario/voice/fr/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/fr/won12.mp3 differ diff --git a/kartik/scenario/voice/fr/won13.mp3 b/kartik/scenario/voice/fr/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/fr/won13.mp3 differ diff --git a/kartik/scenario/voice/fr/won14.mp3 b/kartik/scenario/voice/fr/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/fr/won14.mp3 differ diff --git a/kartik/scenario/voice/fr/won20.mp3 b/kartik/scenario/voice/fr/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/fr/won20.mp3 differ diff --git a/kartik/scenario/voice/fr/won21.mp3 b/kartik/scenario/voice/fr/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/fr/won21.mp3 differ diff --git a/kartik/scenario/voice/fr/won22.mp3 b/kartik/scenario/voice/fr/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/fr/won22.mp3 differ diff --git a/kartik/scenario/voice/fr/won23.mp3 b/kartik/scenario/voice/fr/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/fr/won23.mp3 differ diff --git a/kartik/scenario/voice/fr/won24.mp3 b/kartik/scenario/voice/fr/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/fr/won24.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead10.mp3 b/kartik/scenario/voice/jp/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/jp/ahead10.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead11.mp3 b/kartik/scenario/voice/jp/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead11.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead12.mp3 b/kartik/scenario/voice/jp/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/jp/ahead12.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead13.mp3 b/kartik/scenario/voice/jp/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead13.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead14.mp3 b/kartik/scenario/voice/jp/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead14.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead20.mp3 b/kartik/scenario/voice/jp/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead20.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead21.mp3 b/kartik/scenario/voice/jp/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead21.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead22.mp3 b/kartik/scenario/voice/jp/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead22.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead23.mp3 b/kartik/scenario/voice/jp/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/jp/ahead23.mp3 differ diff --git a/kartik/scenario/voice/jp/ahead24.mp3 b/kartik/scenario/voice/jp/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/jp/ahead24.mp3 differ diff --git a/kartik/scenario/voice/jp/intro0.mp3 b/kartik/scenario/voice/jp/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/jp/intro0.mp3 differ diff --git a/kartik/scenario/voice/jp/intro1.mp3 b/kartik/scenario/voice/jp/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/jp/intro1.mp3 differ diff --git a/kartik/scenario/voice/jp/intro2.mp3 b/kartik/scenario/voice/jp/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/jp/intro2.mp3 differ diff --git a/kartik/scenario/voice/jp/intro3.mp3 b/kartik/scenario/voice/jp/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/jp/intro3.mp3 differ diff --git a/kartik/scenario/voice/jp/start0.mp3 b/kartik/scenario/voice/jp/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/jp/start0.mp3 differ diff --git a/kartik/scenario/voice/jp/start1.mp3 b/kartik/scenario/voice/jp/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/jp/start1.mp3 differ diff --git a/kartik/scenario/voice/jp/start2.mp3 b/kartik/scenario/voice/jp/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/jp/start2.mp3 differ diff --git a/kartik/scenario/voice/jp/start3.mp3 b/kartik/scenario/voice/jp/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/jp/start3.mp3 differ diff --git a/kartik/scenario/voice/jp/start4.mp3 b/kartik/scenario/voice/jp/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/jp/start4.mp3 differ diff --git a/kartik/scenario/voice/jp/start5.mp3 b/kartik/scenario/voice/jp/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/jp/start5.mp3 differ diff --git a/kartik/scenario/voice/jp/wall10.mp3 b/kartik/scenario/voice/jp/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/jp/wall10.mp3 differ diff --git a/kartik/scenario/voice/jp/wall11.mp3 b/kartik/scenario/voice/jp/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/jp/wall11.mp3 differ diff --git a/kartik/scenario/voice/jp/wall12.mp3 b/kartik/scenario/voice/jp/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/jp/wall12.mp3 differ diff --git a/kartik/scenario/voice/jp/wall13.mp3 b/kartik/scenario/voice/jp/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/jp/wall13.mp3 differ diff --git a/kartik/scenario/voice/jp/wall14.mp3 b/kartik/scenario/voice/jp/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/jp/wall14.mp3 differ diff --git a/kartik/scenario/voice/jp/wall20.mp3 b/kartik/scenario/voice/jp/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/jp/wall20.mp3 differ diff --git a/kartik/scenario/voice/jp/wall21.mp3 b/kartik/scenario/voice/jp/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/jp/wall21.mp3 differ diff --git a/kartik/scenario/voice/jp/wall22.mp3 b/kartik/scenario/voice/jp/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/jp/wall22.mp3 differ diff --git a/kartik/scenario/voice/jp/wall23.mp3 b/kartik/scenario/voice/jp/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/jp/wall23.mp3 differ diff --git a/kartik/scenario/voice/jp/won10.mp3 b/kartik/scenario/voice/jp/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/jp/won10.mp3 differ diff --git a/kartik/scenario/voice/jp/won11.mp3 b/kartik/scenario/voice/jp/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/jp/won11.mp3 differ diff --git a/kartik/scenario/voice/jp/won12.mp3 b/kartik/scenario/voice/jp/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/jp/won12.mp3 differ diff --git a/kartik/scenario/voice/jp/won13.mp3 b/kartik/scenario/voice/jp/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/jp/won13.mp3 differ diff --git a/kartik/scenario/voice/jp/won14.mp3 b/kartik/scenario/voice/jp/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/jp/won14.mp3 differ diff --git a/kartik/scenario/voice/jp/won20.mp3 b/kartik/scenario/voice/jp/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/jp/won20.mp3 differ diff --git a/kartik/scenario/voice/jp/won21.mp3 b/kartik/scenario/voice/jp/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/jp/won21.mp3 differ diff --git a/kartik/scenario/voice/jp/won22.mp3 b/kartik/scenario/voice/jp/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/jp/won22.mp3 differ diff --git a/kartik/scenario/voice/jp/won23.mp3 b/kartik/scenario/voice/jp/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/jp/won23.mp3 differ diff --git a/kartik/scenario/voice/jp/won24.mp3 b/kartik/scenario/voice/jp/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/jp/won24.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead10.mp3 b/kartik/scenario/voice/nl/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/nl/ahead10.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead11.mp3 b/kartik/scenario/voice/nl/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead11.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead12.mp3 b/kartik/scenario/voice/nl/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/nl/ahead12.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead13.mp3 b/kartik/scenario/voice/nl/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead13.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead14.mp3 b/kartik/scenario/voice/nl/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead14.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead20.mp3 b/kartik/scenario/voice/nl/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead20.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead21.mp3 b/kartik/scenario/voice/nl/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead21.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead22.mp3 b/kartik/scenario/voice/nl/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead22.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead23.mp3 b/kartik/scenario/voice/nl/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/nl/ahead23.mp3 differ diff --git a/kartik/scenario/voice/nl/ahead24.mp3 b/kartik/scenario/voice/nl/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/nl/ahead24.mp3 differ diff --git a/kartik/scenario/voice/nl/intro0.mp3 b/kartik/scenario/voice/nl/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/nl/intro0.mp3 differ diff --git a/kartik/scenario/voice/nl/intro1.mp3 b/kartik/scenario/voice/nl/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/nl/intro1.mp3 differ diff --git a/kartik/scenario/voice/nl/intro2.mp3 b/kartik/scenario/voice/nl/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/nl/intro2.mp3 differ diff --git a/kartik/scenario/voice/nl/intro3.mp3 b/kartik/scenario/voice/nl/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/nl/intro3.mp3 differ diff --git a/kartik/scenario/voice/nl/start0.mp3 b/kartik/scenario/voice/nl/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/nl/start0.mp3 differ diff --git a/kartik/scenario/voice/nl/start1.mp3 b/kartik/scenario/voice/nl/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/nl/start1.mp3 differ diff --git a/kartik/scenario/voice/nl/start2.mp3 b/kartik/scenario/voice/nl/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/nl/start2.mp3 differ diff --git a/kartik/scenario/voice/nl/start3.mp3 b/kartik/scenario/voice/nl/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/nl/start3.mp3 differ diff --git a/kartik/scenario/voice/nl/start4.mp3 b/kartik/scenario/voice/nl/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/nl/start4.mp3 differ diff --git a/kartik/scenario/voice/nl/start5.mp3 b/kartik/scenario/voice/nl/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/nl/start5.mp3 differ diff --git a/kartik/scenario/voice/nl/wall10.mp3 b/kartik/scenario/voice/nl/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/nl/wall10.mp3 differ diff --git a/kartik/scenario/voice/nl/wall11.mp3 b/kartik/scenario/voice/nl/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/nl/wall11.mp3 differ diff --git a/kartik/scenario/voice/nl/wall12.mp3 b/kartik/scenario/voice/nl/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/nl/wall12.mp3 differ diff --git a/kartik/scenario/voice/nl/wall13.mp3 b/kartik/scenario/voice/nl/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/nl/wall13.mp3 differ diff --git a/kartik/scenario/voice/nl/wall14.mp3 b/kartik/scenario/voice/nl/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/nl/wall14.mp3 differ diff --git a/kartik/scenario/voice/nl/wall20.mp3 b/kartik/scenario/voice/nl/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/nl/wall20.mp3 differ diff --git a/kartik/scenario/voice/nl/wall21.mp3 b/kartik/scenario/voice/nl/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/nl/wall21.mp3 differ diff --git a/kartik/scenario/voice/nl/wall22.mp3 b/kartik/scenario/voice/nl/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/nl/wall22.mp3 differ diff --git a/kartik/scenario/voice/nl/wall23.mp3 b/kartik/scenario/voice/nl/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/nl/wall23.mp3 differ diff --git a/kartik/scenario/voice/nl/won10.mp3 b/kartik/scenario/voice/nl/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/nl/won10.mp3 differ diff --git a/kartik/scenario/voice/nl/won11.mp3 b/kartik/scenario/voice/nl/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/nl/won11.mp3 differ diff --git a/kartik/scenario/voice/nl/won12.mp3 b/kartik/scenario/voice/nl/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/nl/won12.mp3 differ diff --git a/kartik/scenario/voice/nl/won13.mp3 b/kartik/scenario/voice/nl/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/nl/won13.mp3 differ diff --git a/kartik/scenario/voice/nl/won14.mp3 b/kartik/scenario/voice/nl/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/nl/won14.mp3 differ diff --git a/kartik/scenario/voice/nl/won20.mp3 b/kartik/scenario/voice/nl/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/nl/won20.mp3 differ diff --git a/kartik/scenario/voice/nl/won21.mp3 b/kartik/scenario/voice/nl/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/nl/won21.mp3 differ diff --git a/kartik/scenario/voice/nl/won22.mp3 b/kartik/scenario/voice/nl/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/nl/won22.mp3 differ diff --git a/kartik/scenario/voice/nl/won23.mp3 b/kartik/scenario/voice/nl/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/nl/won23.mp3 differ diff --git a/kartik/scenario/voice/nl/won24.mp3 b/kartik/scenario/voice/nl/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/nl/won24.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead10.mp3 b/kartik/scenario/voice/ru/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/ru/ahead10.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead11.mp3 b/kartik/scenario/voice/ru/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead11.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead12.mp3 b/kartik/scenario/voice/ru/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/ru/ahead12.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead13.mp3 b/kartik/scenario/voice/ru/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead13.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead14.mp3 b/kartik/scenario/voice/ru/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead14.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead20.mp3 b/kartik/scenario/voice/ru/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead20.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead21.mp3 b/kartik/scenario/voice/ru/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead21.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead22.mp3 b/kartik/scenario/voice/ru/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead22.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead23.mp3 b/kartik/scenario/voice/ru/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/ru/ahead23.mp3 differ diff --git a/kartik/scenario/voice/ru/ahead24.mp3 b/kartik/scenario/voice/ru/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/ru/ahead24.mp3 differ diff --git a/kartik/scenario/voice/ru/intro0.mp3 b/kartik/scenario/voice/ru/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/ru/intro0.mp3 differ diff --git a/kartik/scenario/voice/ru/intro1.mp3 b/kartik/scenario/voice/ru/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/ru/intro1.mp3 differ diff --git a/kartik/scenario/voice/ru/intro2.mp3 b/kartik/scenario/voice/ru/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/ru/intro2.mp3 differ diff --git a/kartik/scenario/voice/ru/intro3.mp3 b/kartik/scenario/voice/ru/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/ru/intro3.mp3 differ diff --git a/kartik/scenario/voice/ru/start0.mp3 b/kartik/scenario/voice/ru/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/ru/start0.mp3 differ diff --git a/kartik/scenario/voice/ru/start1.mp3 b/kartik/scenario/voice/ru/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/ru/start1.mp3 differ diff --git a/kartik/scenario/voice/ru/start2.mp3 b/kartik/scenario/voice/ru/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/ru/start2.mp3 differ diff --git a/kartik/scenario/voice/ru/start3.mp3 b/kartik/scenario/voice/ru/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/ru/start3.mp3 differ diff --git a/kartik/scenario/voice/ru/start4.mp3 b/kartik/scenario/voice/ru/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/ru/start4.mp3 differ diff --git a/kartik/scenario/voice/ru/start5.mp3 b/kartik/scenario/voice/ru/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/ru/start5.mp3 differ diff --git a/kartik/scenario/voice/ru/wall10.mp3 b/kartik/scenario/voice/ru/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/ru/wall10.mp3 differ diff --git a/kartik/scenario/voice/ru/wall11.mp3 b/kartik/scenario/voice/ru/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/ru/wall11.mp3 differ diff --git a/kartik/scenario/voice/ru/wall12.mp3 b/kartik/scenario/voice/ru/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/ru/wall12.mp3 differ diff --git a/kartik/scenario/voice/ru/wall13.mp3 b/kartik/scenario/voice/ru/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/ru/wall13.mp3 differ diff --git a/kartik/scenario/voice/ru/wall14.mp3 b/kartik/scenario/voice/ru/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/ru/wall14.mp3 differ diff --git a/kartik/scenario/voice/ru/wall20.mp3 b/kartik/scenario/voice/ru/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/ru/wall20.mp3 differ diff --git a/kartik/scenario/voice/ru/wall21.mp3 b/kartik/scenario/voice/ru/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/ru/wall21.mp3 differ diff --git a/kartik/scenario/voice/ru/wall22.mp3 b/kartik/scenario/voice/ru/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/ru/wall22.mp3 differ diff --git a/kartik/scenario/voice/ru/wall23.mp3 b/kartik/scenario/voice/ru/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/ru/wall23.mp3 differ diff --git a/kartik/scenario/voice/ru/won10.mp3 b/kartik/scenario/voice/ru/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/ru/won10.mp3 differ diff --git a/kartik/scenario/voice/ru/won11.mp3 b/kartik/scenario/voice/ru/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/ru/won11.mp3 differ diff --git a/kartik/scenario/voice/ru/won12.mp3 b/kartik/scenario/voice/ru/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/ru/won12.mp3 differ diff --git a/kartik/scenario/voice/ru/won13.mp3 b/kartik/scenario/voice/ru/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/ru/won13.mp3 differ diff --git a/kartik/scenario/voice/ru/won14.mp3 b/kartik/scenario/voice/ru/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/ru/won14.mp3 differ diff --git a/kartik/scenario/voice/ru/won20.mp3 b/kartik/scenario/voice/ru/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/ru/won20.mp3 differ diff --git a/kartik/scenario/voice/ru/won21.mp3 b/kartik/scenario/voice/ru/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/ru/won21.mp3 differ diff --git a/kartik/scenario/voice/ru/won22.mp3 b/kartik/scenario/voice/ru/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/ru/won22.mp3 differ diff --git a/kartik/scenario/voice/ru/won23.mp3 b/kartik/scenario/voice/ru/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/ru/won23.mp3 differ diff --git a/kartik/scenario/voice/ru/won24.mp3 b/kartik/scenario/voice/ru/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/ru/won24.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead10.mp3 b/kartik/scenario/voice/zh/ahead10.mp3 new file mode 100755 index 0000000..3cf4b9e Binary files /dev/null and b/kartik/scenario/voice/zh/ahead10.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead11.mp3 b/kartik/scenario/voice/zh/ahead11.mp3 new file mode 100755 index 0000000..5b720c6 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead11.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead12.mp3 b/kartik/scenario/voice/zh/ahead12.mp3 new file mode 100755 index 0000000..428661c Binary files /dev/null and b/kartik/scenario/voice/zh/ahead12.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead13.mp3 b/kartik/scenario/voice/zh/ahead13.mp3 new file mode 100755 index 0000000..ff33422 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead13.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead14.mp3 b/kartik/scenario/voice/zh/ahead14.mp3 new file mode 100755 index 0000000..dd12713 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead14.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead20.mp3 b/kartik/scenario/voice/zh/ahead20.mp3 new file mode 100755 index 0000000..1f45569 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead20.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead21.mp3 b/kartik/scenario/voice/zh/ahead21.mp3 new file mode 100755 index 0000000..b23ef13 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead21.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead22.mp3 b/kartik/scenario/voice/zh/ahead22.mp3 new file mode 100755 index 0000000..1ee7b83 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead22.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead23.mp3 b/kartik/scenario/voice/zh/ahead23.mp3 new file mode 100755 index 0000000..ed7ada6 Binary files /dev/null and b/kartik/scenario/voice/zh/ahead23.mp3 differ diff --git a/kartik/scenario/voice/zh/ahead24.mp3 b/kartik/scenario/voice/zh/ahead24.mp3 new file mode 100755 index 0000000..1328adb Binary files /dev/null and b/kartik/scenario/voice/zh/ahead24.mp3 differ diff --git a/kartik/scenario/voice/zh/intro0.mp3 b/kartik/scenario/voice/zh/intro0.mp3 new file mode 100755 index 0000000..42440b6 Binary files /dev/null and b/kartik/scenario/voice/zh/intro0.mp3 differ diff --git a/kartik/scenario/voice/zh/intro1.mp3 b/kartik/scenario/voice/zh/intro1.mp3 new file mode 100755 index 0000000..c147dff Binary files /dev/null and b/kartik/scenario/voice/zh/intro1.mp3 differ diff --git a/kartik/scenario/voice/zh/intro2.mp3 b/kartik/scenario/voice/zh/intro2.mp3 new file mode 100755 index 0000000..3ffb08c Binary files /dev/null and b/kartik/scenario/voice/zh/intro2.mp3 differ diff --git a/kartik/scenario/voice/zh/intro3.mp3 b/kartik/scenario/voice/zh/intro3.mp3 new file mode 100755 index 0000000..4d923cd Binary files /dev/null and b/kartik/scenario/voice/zh/intro3.mp3 differ diff --git a/kartik/scenario/voice/zh/start0.mp3 b/kartik/scenario/voice/zh/start0.mp3 new file mode 100755 index 0000000..e69cfe6 Binary files /dev/null and b/kartik/scenario/voice/zh/start0.mp3 differ diff --git a/kartik/scenario/voice/zh/start1.mp3 b/kartik/scenario/voice/zh/start1.mp3 new file mode 100755 index 0000000..4ba3b06 Binary files /dev/null and b/kartik/scenario/voice/zh/start1.mp3 differ diff --git a/kartik/scenario/voice/zh/start2.mp3 b/kartik/scenario/voice/zh/start2.mp3 new file mode 100755 index 0000000..20cb7e7 Binary files /dev/null and b/kartik/scenario/voice/zh/start2.mp3 differ diff --git a/kartik/scenario/voice/zh/start3.mp3 b/kartik/scenario/voice/zh/start3.mp3 new file mode 100755 index 0000000..09b3267 Binary files /dev/null and b/kartik/scenario/voice/zh/start3.mp3 differ diff --git a/kartik/scenario/voice/zh/start4.mp3 b/kartik/scenario/voice/zh/start4.mp3 new file mode 100755 index 0000000..77dd366 Binary files /dev/null and b/kartik/scenario/voice/zh/start4.mp3 differ diff --git a/kartik/scenario/voice/zh/start5.mp3 b/kartik/scenario/voice/zh/start5.mp3 new file mode 100755 index 0000000..4b27a45 Binary files /dev/null and b/kartik/scenario/voice/zh/start5.mp3 differ diff --git a/kartik/scenario/voice/zh/wall10.mp3 b/kartik/scenario/voice/zh/wall10.mp3 new file mode 100755 index 0000000..3519d3d Binary files /dev/null and b/kartik/scenario/voice/zh/wall10.mp3 differ diff --git a/kartik/scenario/voice/zh/wall11.mp3 b/kartik/scenario/voice/zh/wall11.mp3 new file mode 100755 index 0000000..7ee4b3d Binary files /dev/null and b/kartik/scenario/voice/zh/wall11.mp3 differ diff --git a/kartik/scenario/voice/zh/wall12.mp3 b/kartik/scenario/voice/zh/wall12.mp3 new file mode 100755 index 0000000..d4ff6ba Binary files /dev/null and b/kartik/scenario/voice/zh/wall12.mp3 differ diff --git a/kartik/scenario/voice/zh/wall13.mp3 b/kartik/scenario/voice/zh/wall13.mp3 new file mode 100755 index 0000000..8770282 Binary files /dev/null and b/kartik/scenario/voice/zh/wall13.mp3 differ diff --git a/kartik/scenario/voice/zh/wall14.mp3 b/kartik/scenario/voice/zh/wall14.mp3 new file mode 100755 index 0000000..9f10b62 Binary files /dev/null and b/kartik/scenario/voice/zh/wall14.mp3 differ diff --git a/kartik/scenario/voice/zh/wall20.mp3 b/kartik/scenario/voice/zh/wall20.mp3 new file mode 100755 index 0000000..bd7c0bd Binary files /dev/null and b/kartik/scenario/voice/zh/wall20.mp3 differ diff --git a/kartik/scenario/voice/zh/wall21.mp3 b/kartik/scenario/voice/zh/wall21.mp3 new file mode 100755 index 0000000..a6e174c Binary files /dev/null and b/kartik/scenario/voice/zh/wall21.mp3 differ diff --git a/kartik/scenario/voice/zh/wall22.mp3 b/kartik/scenario/voice/zh/wall22.mp3 new file mode 100755 index 0000000..2cf97fa Binary files /dev/null and b/kartik/scenario/voice/zh/wall22.mp3 differ diff --git a/kartik/scenario/voice/zh/wall23.mp3 b/kartik/scenario/voice/zh/wall23.mp3 new file mode 100755 index 0000000..6feb5e6 Binary files /dev/null and b/kartik/scenario/voice/zh/wall23.mp3 differ diff --git a/kartik/scenario/voice/zh/won10.mp3 b/kartik/scenario/voice/zh/won10.mp3 new file mode 100755 index 0000000..fef1693 Binary files /dev/null and b/kartik/scenario/voice/zh/won10.mp3 differ diff --git a/kartik/scenario/voice/zh/won11.mp3 b/kartik/scenario/voice/zh/won11.mp3 new file mode 100755 index 0000000..e8bbafd Binary files /dev/null and b/kartik/scenario/voice/zh/won11.mp3 differ diff --git a/kartik/scenario/voice/zh/won12.mp3 b/kartik/scenario/voice/zh/won12.mp3 new file mode 100755 index 0000000..b0bab02 Binary files /dev/null and b/kartik/scenario/voice/zh/won12.mp3 differ diff --git a/kartik/scenario/voice/zh/won13.mp3 b/kartik/scenario/voice/zh/won13.mp3 new file mode 100755 index 0000000..40eaafa Binary files /dev/null and b/kartik/scenario/voice/zh/won13.mp3 differ diff --git a/kartik/scenario/voice/zh/won14.mp3 b/kartik/scenario/voice/zh/won14.mp3 new file mode 100755 index 0000000..47b85ef Binary files /dev/null and b/kartik/scenario/voice/zh/won14.mp3 differ diff --git a/kartik/scenario/voice/zh/won20.mp3 b/kartik/scenario/voice/zh/won20.mp3 new file mode 100755 index 0000000..d9e904b Binary files /dev/null and b/kartik/scenario/voice/zh/won20.mp3 differ diff --git a/kartik/scenario/voice/zh/won21.mp3 b/kartik/scenario/voice/zh/won21.mp3 new file mode 100755 index 0000000..d235f35 Binary files /dev/null and b/kartik/scenario/voice/zh/won21.mp3 differ diff --git a/kartik/scenario/voice/zh/won22.mp3 b/kartik/scenario/voice/zh/won22.mp3 new file mode 100755 index 0000000..7456ace Binary files /dev/null and b/kartik/scenario/voice/zh/won22.mp3 differ diff --git a/kartik/scenario/voice/zh/won23.mp3 b/kartik/scenario/voice/zh/won23.mp3 new file mode 100755 index 0000000..668c1d8 Binary files /dev/null and b/kartik/scenario/voice/zh/won23.mp3 differ diff --git a/kartik/scenario/voice/zh/won24.mp3 b/kartik/scenario/voice/zh/won24.mp3 new file mode 100755 index 0000000..ef5e904 Binary files /dev/null and b/kartik/scenario/voice/zh/won24.mp3 differ diff --git a/kartik/sfx/click.mp3 b/kartik/sfx/click.mp3 new file mode 100755 index 0000000..20feda0 Binary files /dev/null and b/kartik/sfx/click.mp3 differ diff --git a/kartik/sfx/crash.mp3 b/kartik/sfx/crash.mp3 new file mode 100755 index 0000000..c68bb1f Binary files /dev/null and b/kartik/sfx/crash.mp3 differ diff --git a/kartik/sfx/gamecrash.wav b/kartik/sfx/gamecrash.wav new file mode 100755 index 0000000..4f42092 Binary files /dev/null and b/kartik/sfx/gamecrash.wav differ diff --git a/kartik/sfx/intro.mp3 b/kartik/sfx/intro.mp3 new file mode 100755 index 0000000..39eeae8 Binary files /dev/null and b/kartik/sfx/intro.mp3 differ diff --git a/kartik/sfx/last.mp3 b/kartik/sfx/last.mp3 new file mode 100755 index 0000000..ff00ddf Binary files /dev/null and b/kartik/sfx/last.mp3 differ diff --git a/kartik/sfx/menu.mp3 b/kartik/sfx/menu.mp3 new file mode 100755 index 0000000..626a82e Binary files /dev/null and b/kartik/sfx/menu.mp3 differ diff --git a/kartik/sfx/newintro.mp3 b/kartik/sfx/newintro.mp3 new file mode 100755 index 0000000..b209f4d Binary files /dev/null and b/kartik/sfx/newintro.mp3 differ diff --git a/kartik/sfx/notification.mp3 b/kartik/sfx/notification.mp3 new file mode 100755 index 0000000..09f548a Binary files /dev/null and b/kartik/sfx/notification.mp3 differ diff --git a/kartik/sfx/pass.mp3 b/kartik/sfx/pass.mp3 new file mode 100755 index 0000000..e4fc004 Binary files /dev/null and b/kartik/sfx/pass.mp3 differ diff --git a/kartik/sfx/pause.mp3 b/kartik/sfx/pause.mp3 new file mode 100755 index 0000000..76d0634 Binary files /dev/null and b/kartik/sfx/pause.mp3 differ diff --git a/kartik/sfx/sfx.js b/kartik/sfx/sfx.js new file mode 100755 index 0000000..9ed6418 --- /dev/null +++ b/kartik/sfx/sfx.js @@ -0,0 +1,60 @@ +const Sound = { + pass: () => { + new Audio(kresources.sfx['pass']).play() + }, + last: () => { + new Audio(kresources.sfx['last']).play() + }, + crash: () => { + new Audio(kresources.sfx['crash']).play() + }, + win: () => { + new Audio(kresources.sfx['win']).play() + }, + click: () => { + new Audio(kresources.sfx['click']).play() + }, + menu: () => { + new Audio(kresources.sfx['menu']).play() + }, + pause: () => { + new Audio(kresources.sfx['pause']).play() + }, + start: () => { + new Audio(kresources.sfx['start']).play() + }, + intro: () => { + new Audio(kresources.music['start'].file).play() + }, +} + +shouldMusicPlay = true; + +setInterval(() => { + try { + if (typeof document.getElementById('music') !== "undefined" && typeof document.getElementById('music') !== "null") { + if (shouldMusicPlay) { + document.getElementById('music').play(); + } + if (!shouldMusicPlay) { + document.getElementById('music').pause(); + } + } + if (typeof b !== "undefined" && typeof b !== "null") { + if (shouldMusicPlay) { + b.play(); + } + if (!shouldMusicPlay) { + b.pause(); + } + } + if (typeof me !== "undefined" && typeof me !== "null") { + if (me.currentTime < me.duration) { + me.play(); + } + if (me.currentTime >= me.duration) { + me.pause(); + } + } + } catch (e) {} +}, 200) \ No newline at end of file diff --git a/kartik/sfx/win.mp3 b/kartik/sfx/win.mp3 new file mode 100755 index 0000000..d3c3b89 Binary files /dev/null and b/kartik/sfx/win.mp3 differ diff --git a/kartik/signing/sign.js b/kartik/signing/sign.js new file mode 100755 index 0000000..bb8d534 --- /dev/null +++ b/kartik/signing/sign.js @@ -0,0 +1,33 @@ +const fs = require('fs'); +const crypto = require('crypto'); +global.sdb = { + "v1": {}, + "v2": {}, + "v3": {} +}; + +function scan(start) { + rt = fs.readdirSync(start); + for (file of rt) { + if (file !== ".git" && file !== "build" && file !== "signatures.json" && file !== "staging" && file !== "node_modules" && !file.endsWith(".staging") && !file.endsWith(".old") && file !== "_translate" && file !== "macos") { + if (fs.lstatSync(start + "/" + file).isDirectory()) { + scan(start + "/" + file); + } else { + sign = crypto.createHash('sha512').update(fs.readFileSync(start + "/" + file)).digest('base64') + console.log("Signed (SHA-512): " + start + "/" + file + ": " + sign); + sdb["v1"][(start + "/" + file).substr(1)] = sign; + + sign = crypto.createHash('sha1').update(fs.readFileSync(start + "/" + file)).digest('base64') + console.log("Signed (SHA-1): " + start + "/" + file + ": " + sign); + sdb["v2"][(start + "/" + file).substr(1)] = sign; + + sign = crypto.createHash('md5').update(fs.readFileSync(start + "/" + file)).digest('base64') + console.log("Signed (MD5): " + start + "/" + file + ": " + sign); + sdb["v3"][(start + "/" + file).substr(1)] = sign; + } + } + } +} + +scan(".."); +fs.writeFileSync("../bin/signatures.json", JSON.stringify(sdb)); diff --git a/kartik/typescript/builder.js b/kartik/typescript/builder.js new file mode 100755 index 0000000..1e9bf16 --- /dev/null +++ b/kartik/typescript/builder.js @@ -0,0 +1,50 @@ +const os = require('os'); +const fs = require('fs'); +const { dialog } = require('electron'); + +if (os.platform() === "win32") { + cmd = "typescript\\engine-win32.exe"; +} else { + cmd = "./typescript/engine-" + os.platform(); +} + +fs.copyFileSync("./typescript/interface.ts", homedir + "/.kartik/build/kartik.ts"); + +cp = require('child_process').spawnSync(cmd, [ "./node_modules/typescript/bin/tsc", "--skipLibCheck", "--removeComments", "--sourceMap", "-m", "commonjs", "--target", "es6", homedir + "/.kartik/build/kartik.ts" ], { cwd: KartikRoot }); +if (cp.status !== 0) { + try { console.error(cp.stdout.toString()); } catch (e) {} + throw new Error("Subprocess exited with code " + cp.status); +} + +fs.unlinkSync(homedir + "/.kartik/build/kartik.ts"); + +module.exports = (source, destination) => { + if (os.platform() === "win32") { + source = source.replaceAll("/", "\\"); + destination = destination.replaceAll("/", "\\"); + } + + console.log(destination.substr(0, destination.length - 3)); + fs.copyFileSync(source, destination.substr(0, destination.length - 3)); + fs.writeFileSync(destination.substr(0, destination.length - 3), fs.readFileSync(destination.substr(0, destination.length - 3)).toString().replaceAll("$KARTIK:", homedir.replaceAll("\\", "\\\\") + "/.kartik/build/kartik.js")) + cp = require('child_process').spawnSync(cmd, [ "./node_modules/typescript/bin/tsc", "--skipLibCheck", "--removeComments", "--sourceMap", "-m", "commonjs", "--target", "es5", destination.substr(0, destination.length - 3) ], { cwd: KartikRoot }); + if (cp.status !== 0) { + if (cp.stdout !== undefined) { + dialog.showMessageBoxSync( + { + type: "error", + title: "KMP Mod Loader", + message: "On package " + item + ": KMP-API building " + source + ":\n\n" + cp.stdout.toString().trim() + "\n\nEXITING." + } + ) + process.exit(2); + } else { + throw new Error("Subprocess exited with code " + cp.status); + } + } + compiledTypeScriptFiles.push(destination.substr(0, destination.length - 6) + ".js"); + + lines = fs.readFileSync(destination.substr(0, destination.length - 6) + ".js").toString().split("\n"); + lines[1] = ""; + fs.writeFileSync(destination.substr(0, destination.length - 6) + ".js", lines.join("\n")); +} diff --git a/kartik/typescript/engine-darwin b/kartik/typescript/engine-darwin new file mode 100755 index 0000000..a09cf1e Binary files /dev/null and b/kartik/typescript/engine-darwin differ diff --git a/kartik/typescript/engine-linux b/kartik/typescript/engine-linux new file mode 100755 index 0000000..9a7aa3e Binary files /dev/null and b/kartik/typescript/engine-linux differ diff --git a/kartik/typescript/engine-win32.exe b/kartik/typescript/engine-win32.exe new file mode 100755 index 0000000..9c32378 Binary files /dev/null and b/kartik/typescript/engine-win32.exe differ diff --git a/kartik/typescript/interface.ts b/kartik/typescript/interface.ts new file mode 100755 index 0000000..28e8219 --- /dev/null +++ b/kartik/typescript/interface.ts @@ -0,0 +1,23 @@ +// @ts-nocheck + +let item = { + context: null, + + dom: { + document: null, + window: null, + }, + +}; + +if (typeof HTML !== "undefined") { + if (typeof HTML.document !== "undefined") { + item.dom.document = HTML.document; + } + + if (typeof window !== "undefined") { + item.dom.window = HTML.window; + } +} + +module.exports = item; \ No newline at end of file diff --git a/kartik/typescript/mainloader.js b/kartik/typescript/mainloader.js new file mode 100755 index 0000000..14fcb9f --- /dev/null +++ b/kartik/typescript/mainloader.js @@ -0,0 +1,10 @@ +if (location.hash === "#ready") { + files = require('@electron/remote').getCurrentWindow().modsfiles; + global.HTML = window; + + for (file of files) { + var script = document.createElement('script'); + script.src = "file://" + file.replaceAll("\\", "/"); + document.head.appendChild(script) + } +} \ No newline at end of file diff --git a/kartik/typescript/preloader.js b/kartik/typescript/preloader.js new file mode 100755 index 0000000..fae3caf --- /dev/null +++ b/kartik/typescript/preloader.js @@ -0,0 +1,5 @@ +files = compiledTypeScriptFiles; + +for (file of files) { + require(file); +} \ No newline at end of file diff --git a/kartik/views/.DS_Store b/kartik/views/.DS_Store new file mode 100644 index 0000000..a0a897c Binary files /dev/null and b/kartik/views/.DS_Store differ diff --git a/kartik/views/background.jpg b/kartik/views/background.jpg new file mode 100755 index 0000000..1129efc Binary files /dev/null and b/kartik/views/background.jpg differ diff --git a/kartik/views/common/blur.css b/kartik/views/common/blur.css new file mode 100755 index 0000000..f904c12 --- /dev/null +++ b/kartik/views/common/blur.css @@ -0,0 +1,3 @@ +#intro, #laps-inner-car0, #laps-inner-car1, #paused, #credits, #gpuinfo, #warning { + backdrop-filter: blur(10px); +} \ No newline at end of file diff --git a/kartik/views/common/bold.ttf b/kartik/views/common/bold.ttf new file mode 100755 index 0000000..a7e7b1e Binary files /dev/null and b/kartik/views/common/bold.ttf differ diff --git a/kartik/views/common/compatibilityMode.css b/kartik/views/common/compatibilityMode.css new file mode 100755 index 0000000..60c28a2 --- /dev/null +++ b/kartik/views/common/compatibilityMode.css @@ -0,0 +1,8 @@ +*:not(#gpuinfo-outer):not(#gpuinfo-inner) { + backdrop-filter: none !important; + opacity: 1 !important; +} + +.rain { + display: none !important; +} \ No newline at end of file diff --git a/kartik/views/common/fonts.css b/kartik/views/common/fonts.css new file mode 100755 index 0000000..af3ecab --- /dev/null +++ b/kartik/views/common/fonts.css @@ -0,0 +1,23 @@ +@font-face { + font-family: "Comfortaa"; + src: url("regular.ttf"); + font-weight: normal; +} + +@font-face { + font-family: "Comfortaa"; + src: url("bold.ttf"); + font-weight: bold; +} + +*, body, html, div { + font-family: "Comfortaa", -apple-system, sans-serif; +} + +#gpuinfo-inner, #gpuinfo-inner * { + font-family: monospace !important; +} + +* { + cursor: default !important; +} \ No newline at end of file diff --git a/kartik/views/common/index.css b/kartik/views/common/index.css new file mode 100755 index 0000000..f9ff24e --- /dev/null +++ b/kartik/views/common/index.css @@ -0,0 +1,29 @@ +#titlebar-minimize, #titlebar-close { + background-color: transparent; + transition: background-color 200ms; + border-radius: 10px; +} + +#titlebar-minimize:hover { + background-color: rgba(99, 99, 99, .5); +} + +#titlebar-minimize:focus, #titlebar-minimize:active { + background-color: rgba(99, 99, 99, .75); +} + +#titlebar-close:hover { + background-color: rgba(255, 0, 0, .5); +} + +#titlebar-close:focus, #titlebar-close:active { + background-color: rgba(255, 0, 0, .75); +} + +*::selection { + background-color: transparent; +} + +*::inactive-selection { + background-color: transparent; +} \ No newline at end of file diff --git a/kartik/views/common/light.ttf b/kartik/views/common/light.ttf new file mode 100755 index 0000000..5e4bfc7 Binary files /dev/null and b/kartik/views/common/light.ttf differ diff --git a/kartik/views/common/load-channel.otf b/kartik/views/common/load-channel.otf new file mode 100755 index 0000000..1968a8e Binary files /dev/null and b/kartik/views/common/load-channel.otf differ diff --git a/kartik/views/common/load-new.ttf b/kartik/views/common/load-new.ttf new file mode 100755 index 0000000..d2a94dc Binary files /dev/null and b/kartik/views/common/load-new.ttf differ diff --git a/kartik/views/common/load-version.otf b/kartik/views/common/load-version.otf new file mode 100755 index 0000000..d112022 Binary files /dev/null and b/kartik/views/common/load-version.otf differ diff --git a/kartik/views/common/mouse.css b/kartik/views/common/mouse.css new file mode 100755 index 0000000..7670e90 --- /dev/null +++ b/kartik/views/common/mouse.css @@ -0,0 +1,3 @@ +*::selection { + background: none; +} \ No newline at end of file diff --git a/kartik/views/common/race.svg b/kartik/views/common/race.svg new file mode 100755 index 0000000..197387b --- /dev/null +++ b/kartik/views/common/race.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kartik/views/common/regular.ttf b/kartik/views/common/regular.ttf new file mode 100755 index 0000000..89d36f8 Binary files /dev/null and b/kartik/views/common/regular.ttf differ diff --git a/kartik/views/credits.html b/kartik/views/credits.html new file mode 100755 index 0000000..1862f50 --- /dev/null +++ b/kartik/views/credits.html @@ -0,0 +1,201 @@ + + + + + + + + + + + Kartik + + + + + + + + + + +
+ + + +

Kartik, a 2D car racing game

+

© Minteck. All assets are licensed under their original license rather than Kartik's license.

+

+ + made by
+ + +

Project Lead

+

Minteck

+ +

Base Assets

+

Minteck
redman 054

+ +

Narrator Character

+

Averi by fiddle (@fiddleafox on Twitter)

+ +

Music

+

Anuke
YonKaGor

+ +

Sound Effects and Additional Assets

+
+
Prosta4okua
+
Felix Corvus
+
Vanguard
+
Timmeey86
+
Epowerj
+
Baltazár Radics
+
Dexapnow
+
Milinai
+
키에르
+
skybldev
+
Leone25
+
Gureumi
+
VizardAlpha
+
LQ
+
Commodore64x
+
iczero
+
Krzysztof Skrzętnicki
+
Baramos666
+
theshadowknight
+
elmenda452
+
Predator127
+
Sonnicon
+
CinExPL
+
toushangyouxiang
+
xgamezs
+
William So
+
beito
+
BeefEX
+
Lorex
+
老滑稽
+
Spico The Spirit Guy
+
TunacanGamer
+
kemalinanc13
+
Zachary
+
Fenr1r
+
Jaiun Lee
+
Gab_351
+
Carter Gale
+
Jan Polák
+
JustYanns
+
BasedUser
+
BLucky-gh
+
DinoWattz
+
Jae
+
angelickite
+
ScriptHosT12
+
Senventise
+
SkeptiC
+
Deyvid67
+
Damlon
+
DaGamerFiles
+
Trigg
+
Uriel
+
VXF
+
Valen. H
+
Valentin Sonin
+
Clarence "Sparr" Risher
+
bei2
+
AceEllysium
+
Cedric L'homme
+
Michał “Neoqueto”
+
indielm
+
Ameb
+
player20033
+
Ignacy
+
J-VdS
+
Kenny
+
Franciszek Zaranowicz
+
Andreas Heiskanen
+
Doyoung Gwak
+
MMG
+
Math2128
+
Michael Plotke
+
Niko
+
Paul T
+
Dominik
+
Arkanic
+
Potion
+
Markus G
+
itskatt
+
Agent-Laevain
+
AzariasB
+
amrsoll
+
ねらひかだ
+
Draco
+
Quezler
+
killall -q
+
Alicila
+
Daniel Dusek
+
DeltaNedas
+
GioIacca9
+
SnakkiZXZ
+
sk7725
+
The Slaylord
+
ThePlayerA
+
YellOw139
+
NgLamVN
+
JINODK
+
PetrGasparik
+
LeoDog896
+
Summet
+
MEEP of Faith
+
jalastram (freesound.org)
+
newlocknew (freesound.org)
+
dsmolenaers (freesound.org)
+
Headphaze (freesound.org)
+
Nikolass
+
VolasYouKnow
+
Quick-Korx
+
Ángel Rodríguez Aguilera
+
Catchears
+
younggam
+
simba-fs
+
RedRadiation
+
Marko Zajc
+
CPX MC
+
Phinner
+
BTA_Susideur
+
nilq
+
AsgerHB
+
AzCraft
+
foo
+
Skat
+
WilloIzCitron
+
Nintendo
+
Unsplash
+
Google
+
+ +

Testing

+

Minteck
Romain
Oxymillion

+ +

Early Access Testing

+

Ayann
Retsuno
Amirus66

+ + + +
+ + + + + + + diff --git a/kartik/views/game.css b/kartik/views/game.css new file mode 100755 index 0000000..e72a786 --- /dev/null +++ b/kartik/views/game.css @@ -0,0 +1,152 @@ +#paused { + z-index: 5; + position: fixed; + inset: 0; + display: flex; + align-items: center; + justify-content: center; +} + +#paused > div { + background: #262626; + border-radius: 10px; + padding: 20px; + box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.25); +} + +#paused * { + color: white; +} + +.services li { + padding: 10px; + font-size: 28px; + width: 256px; + list-style: none; + color: transparent; + margin-top: 10px; + margin-bottom: 10px; + border-radius: 10px; +} + +.services li a { + color: white !important; + text-decoration: none; + transition: color 200ms; +} + +.services li.selected a { + color: black !important; + text-decoration: none; +} + +.services li.selected { + background-color: #00ff99; +} + +.services li { + background-color: #383838; + transition: margin-left 200ms, background-color 200ms; +} + +#circuit.hitboxes, #circuit.hitboxes * { + outline: 1px dashed blue; +} + +#car0, #car1 { + transition: top 600ms, bottom 600ms, left 600ms, right 600ms, transform 500ms; +} + +#box.paused { + opacity: .5; +} + +circuit { + display: none; +} + +#credits-inner { + position: fixed; + z-index: 9; + background: #171717; + color: white; + padding: 20px; + display: grid; + font-size: 11px; + top: 200px; + left: 0; + right: 0; +} + +#credits .big { + font-size: 15px; + font-weight: bold; +} + +#credits #race, #credits #musicb { + display: grid; + grid-template-columns: 48px 1fr; +} + +#credits-inner > * > * { + vertical-align: middle; +} + +#credits img { + filter: invert(100%); +} + +#credits .cbox { + width: max-content; +} + +#laps-inner-car0 { + background: rgba(0, 0, 0, .5); + position: fixed; + bottom: 20px; + left: 20px; + z-index: 9; + border-radius: 9999px; + width: 40px; + height: 43px; + text-align: center; + color: white; + padding: 7px 10px 10px; +} + +#laps-inner-car1 { + background: rgba(0, 0, 0, .5); + position: fixed; + bottom: 20px; + right: 20px; + z-index: 9; + border-radius: 9999px; + width: 40px; + height: 43px; + text-align: center; + color: white; + padding: 7px 10px 10px; +} + +.laps-inner-sep { + margin: 5px; + border: none; + border-top: 2px solid white; +} + +#oil img { + position: fixed; + width: 32px; + z-index: 5; + opacity: .9; +} + +#credits { + background: rgba(0, 0, 0, .5); + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 9999; +} \ No newline at end of file diff --git a/kartik/views/game.html b/kartik/views/game.html new file mode 100755 index 0000000..13dbd32 --- /dev/null +++ b/kartik/views/game.html @@ -0,0 +1,154 @@ + + + + + + + + + + + Kartik + + + + + + + + + + + + + + + + + + + + + + diff --git a/kartik/views/hero.svg b/kartik/views/hero.svg new file mode 100755 index 0000000..e19252e --- /dev/null +++ b/kartik/views/hero.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/kartik/views/intro.css b/kartik/views/intro.css new file mode 100755 index 0000000..bcda35f --- /dev/null +++ b/kartik/views/intro.css @@ -0,0 +1,33 @@ +.hero-inner { + position: fixed; + inset: 0; + background-image: url('./hero.svg'); + background-position: 100% 50%; + background-size: cover; + background-repeat: repeat; + background-attachment: scroll; + z-index: -1; +} + +.hero { + color: #fff; + background: linear-gradient(-45deg, #64f20c, #5cfbc6, #3149ff, #63f777); + background-size: auto; + background-size: 400% 400%; + animation: Gradient 10s ease infinite; + position: fixed; + inset: 0; + z-index: -2; +} + +@keyframes Gradient { + 0% { + background-position: 0 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0 50%; + } +} \ No newline at end of file diff --git a/kartik/views/intro.html b/kartik/views/intro.html new file mode 100755 index 0000000..45cca2a --- /dev/null +++ b/kartik/views/intro.html @@ -0,0 +1,36 @@ + + + + + + + + Kartik + + + + + + + + + + + + + + + + + + + diff --git a/kartik/views/intro.mp4 b/kartik/views/intro.mp4 new file mode 100755 index 0000000..e947f0a Binary files /dev/null and b/kartik/views/intro.mp4 differ diff --git a/kartik/views/load.html b/kartik/views/load.html new file mode 100755 index 0000000..473c1ac --- /dev/null +++ b/kartik/views/load.html @@ -0,0 +1,52 @@ + + + + + Kartik + + + + + +
+
+
+ + diff --git a/kartik/views/loader.html b/kartik/views/loader.html new file mode 100755 index 0000000..5251ad6 --- /dev/null +++ b/kartik/views/loader.html @@ -0,0 +1,46 @@ + + + + + + + + + Kartik + + + + + + + + + +

+ + + + + + + diff --git a/kartik/views/menu.css b/kartik/views/menu.css new file mode 100755 index 0000000..f9697a7 --- /dev/null +++ b/kartik/views/menu.css @@ -0,0 +1,248 @@ +.services li .item { + padding: 4px; + font-size: 20px; + width: 300px; + border-color: transparent; + margin-right: auto !important; + display: block; + text-align: left; + border-left-width: 3px; + border-left-style: solid; + border-color: transparent; +} + +.services { + position: fixed; + left: 0; + bottom: 0; + right: 0; + top: 150px; + padding-top: 50px; +} + +.services li { + color: transparent; + margin-top: 5px; + margin-bottom: 5px; +} + +.services li .item a { + color: white !important; + text-decoration: none; + transition: color 200ms; +} + +.services li.selected .item a { + text-decoration: none; +} + +.services:not(.services-settings) li.selected .item { + background-color: rgba(0, 255, 153, 0.25); + backdrop-filter: blur(10px); + border-radius: 10px; + animation-direction: alternate-reverse; + position: relative; + z-index: 9999999999; + animation-duration: 3s; + animation-name: border-overlay; + animation-fill-mode: both; + animation-iteration-count: infinite; +} + +.services.services-settings li.selected .item { + border-color: #00ff99; + background-color: rgba(0, 255, 153, 0.25); + animation-direction: alternate-reverse; + animation-duration: 3s; + animation-name: border-overlay2; + animation-fill-mode: both; + animation-iteration-count: infinite; + border-top-right-radius: 10px; + border-bottom-right-radius: 10px; +} + +@keyframes border-overlay { + 0% { + background-color: rgba(0, 255, 102, 0.25); + } + 100% { + background-color: rgba(0, 204, 255, 0.25); + } +} + +@keyframes border-overlay2 { + 0% { + border-color: #00ff66; + background-color: rgba(0, 255, 102, 0.25); + } + 100% { + border-color: #00ccff; + background-color: rgba(0, 204, 255, 0.25); + } +} + +.services li .item { + margin-left: 12.5px; + transition: margin-left 200ms, background-color 200ms, border 200ms; +} + +.services li .help { + color: white; + margin-left: 5px; + display: inline-block; + font-size: 12px; + position: relative; + top: -2.5px; + opacity: 0; + transition: opacity 200ms; +} + +.services li .help.exit { + color: #ff6969; +} + +.services li.selected .help { + opacity: 1; +} + +#copyright { + color: rgba(255, 255, 255, .5); + position: fixed; + bottom: 30px; + right: 30px; + text-align: right; + font-size: 12px; +} + +.setting-status { + float: right; +} + +#notice { + color: white; + position: fixed; + top: 20px; + right: 20px; + width: 180px; + text-align: right; + font-size: 14px; +} + +#scroll { + display: block; + text-align: center; + color: white; + padding-top: 100vh; + padding-bottom: 100vh; +} + +.cred-title { + color: yellow; +} + +.cred-content { + color: white; +} + +.technical { + color: cyan; +} + +.item-icon { + filter: invert(1); + vertical-align: middle; + display: inline-block; + margin-top: 3px; + margin-bottom: -1px; +} + +div.services.home { + top: 115px; + padding: 0; + display: flex; + align-items: center; + bottom: 70px; + z-index: 9999; +} + +div.services.home > div.items > ul > li > span.item { + width: 216px; + border-radius: 0; +} + +div.services.home > div.items > ul > li > span.item > a { + margin-left: 10px; + margin-right: 10px; + width: 100%; + display: inline-block; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} + +div.services.home > div.items { + width: 256px; +} + +div.services.home > div.items > ul { + padding: 0; +} + +div.services.home > div.items > ul > li { + list-style: none; +} + +div.services.home > div.items > ul > li > span.item { + margin-left: 10vw; + transition: none; +} + +img[alt="full-logo"] { + margin-left: calc(10vw + 37.5px) !important; + margin-top: 55px !important; + height: 56px !important; + z-index: 99999; + position: fixed; +} + +span#copyright { + bottom: 46px; + left: 10vw; + z-index: 9999; + color: rgba(255, 255, 255, 0.75); + right: unset; + width: 227px; + text-align: center; +} + +#services-background { + position: fixed; + top: 0; + bottom: 0; + width: 227px; + z-index: 9; + backdrop-filter: blur(10px); + background: rgba(0, 0, 0, 0.5); + left: 10vw; +} + +.item-text { + vertical-align: middle; + margin-top: 8px; + display: inline-block; +} + +@media (max-height: 600px) { + img[alt="full-logo"][src="../logo/full.png"].full-logo { + margin-top: 16px !important; + } + + span#copyright.copyright { + bottom: 14px !important; + } +} + +body { + height: calc(100vh / 1.2); + overflow: hidden; +} \ No newline at end of file diff --git a/kartik/views/menu.html b/kartik/views/menu.html new file mode 100755 index 0000000..c5874bf --- /dev/null +++ b/kartik/views/menu.html @@ -0,0 +1,109 @@ + + + + + + + + + + + Kartik + + + + + + + + + + + + + + + + diff --git a/kartik/views/menu.jpg b/kartik/views/menu.jpg new file mode 100755 index 0000000..ade8fdd Binary files /dev/null and b/kartik/views/menu.jpg differ diff --git a/kartik/views/online.html b/kartik/views/online.html new file mode 100755 index 0000000..b9553bf --- /dev/null +++ b/kartik/views/online.html @@ -0,0 +1,40 @@ + + + + + + + + Kartik + + + + + + + + + + + + + + + + + + diff --git a/kartik/views/rain/snow.js b/kartik/views/rain/snow.js new file mode 100755 index 0000000..95b937b --- /dev/null +++ b/kartik/views/rain/snow.js @@ -0,0 +1,666 @@ +/** @license + * DHTML Snowstorm! JavaScript-based snow for webinit pages + * Making it snow on the internets since 2003. You're welcome. + * ----------------------------------------------------------- + * Version 1.44.20131208 (Previous rev: 1.44.20131125) + * Copyright (c) 2007, Scott Schiller. All rights reserved. + * Code provided under the BSD License + * http://schillmania.com/projects/snowstorm/license.txt + */ + +/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */ +/*global window, document, navigator, clearInterval, setInterval */ + +var snowStorm = (function(window, document) { + + // --- common properties --- + + this.autoStart = true; // Whether the snow should start automatically or not. + this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) Enable at your own risk. + this.flakesMax = 128; // Limit total amount of snow made (falling + sticking) + this.flakesMaxActive = 64; // Limit amount of snow falling at once (less = lower CPU use) + this.animationInterval = 33; // Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower + this.useGPU = true; // Enable transform-based hardware acceleration, reduce CPU load. + this.className = null; // CSS class name for further customization on snow elements + this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) By default, be nice. + this.flakeBottom = null; // Integer for Y axis snow limit, 0 or null for "full-screen" snow effect + this.followMouse = true; // Snow movement can respond to the user's mouse + this.snowColor = '#fff'; // Don't eat (or use?) yellow snow. + this.snowCharacter = '•'; // • = bullet, · is square on some systems etc. + this.snowStick = true; // Whether or not snow should "stick" at the bottom. When off, will never collect. + this.targetElement = null; // element which snow will be appended to (null = document.body) - can be an element ID eg. 'myDiv', or a DOM node reference + this.useMeltEffect = true; // When recycling fallen snow (or rarely, when falling), have it "melt" and fade out if browser supports it + this.useTwinkleEffect = false; // Allow snow to randomly "flicker" in and out of view while falling + this.usePositionFixed = false; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported + this.usePixelPosition = false; // Whether to use pixel values for snow top/left vs. percentages. Auto-enabled if body is position:relative or targetElement is specified. + + // --- less-used bits --- + + this.freezeOnBlur = true; // Only snow when the window is in focus (foreground.) Saves CPU. + this.flakeLeftOffset = 0; // Left margin/gutter space on edge of container (eg. browser window.) Bump up these values if seeing horizontal scrollbars. + this.flakeRightOffset = 0; // Right margin/gutter space on edge of container + this.flakeWidth = 8; // Max pixel width reserved for snow element + this.flakeHeight = 8; // Max pixel height reserved for snow element + this.vMaxX = 5; // Maximum X velocity range for snow + this.vMaxY = 4; // Maximum Y velocity range for snow + this.zIndex = 0; // CSS stacking order applied to each snowflake + + // --- "No user-serviceable parts inside" past this point, yadda yadda --- + + var storm = this, + features, + // UA sniffing and backCompat rendering mode checks for fixed position, etc. + isIE = navigator.userAgent.match(/msie/i), + isIE6 = navigator.userAgent.match(/msie 6/i), + isMobile = navigator.userAgent.match(/mobile|opera m(ob|in)/i), + isBackCompatIE = (isIE && document.compatMode === 'BackCompat'), + noFixed = (isBackCompatIE || isIE6), + screenX = null, screenX2 = null, screenY = null, scrollY = null, docHeight = null, vRndX = null, vRndY = null, + windOffset = 1, + windMultiplier = 2, + flakeTypes = 6, + fixedForEverything = false, + targetElementIsRelative = false, + opacitySupported = (function(){ + try { + document.createElement('div').style.opacity = '0.5'; + } catch(e) { + return false; + } + return true; + }()), + didInit = false, + docFrag = document.createDocumentFragment(); + + features = (function() { + + var getAnimationFrame; + + /** + * hat tip: paul irish + * http://paulirish.com/2011/requestanimationframe-for-smart-animating/ + * https://gist.github.com/838785 + */ + + function timeoutShim(callback) { + window.setTimeout(callback, 1000/(storm.animationInterval || 20)); + } + + var _animationFrame = (window.requestAnimationFrame || + window.webkitRequestAnimationFrame || + window.mozRequestAnimationFrame || + window.oRequestAnimationFrame || + window.msRequestAnimationFrame || + timeoutShim); + + // apply to window, avoid "illegal invocation" errors in Chrome + getAnimationFrame = _animationFrame ? function() { + return _animationFrame.apply(window, arguments); + } : null; + + var testDiv; + + testDiv = document.createElement('div'); + + function has(prop) { + + // test for feature support + var result = testDiv.style[prop]; + return (result !== undefined ? prop : null); + + } + + // note local scope. + var localFeatures = { + + transform: { + ie: has('-ms-transform'), + moz: has('MozTransform'), + opera: has('OTransform'), + webkit: has('webkitTransform'), + w3: has('transform'), + prop: null // the normalized property value + }, + + getAnimationFrame: getAnimationFrame + + }; + + localFeatures.transform.prop = ( + localFeatures.transform.w3 || + localFeatures.transform.moz || + localFeatures.transform.webkit || + localFeatures.transform.ie || + localFeatures.transform.opera + ); + + testDiv = null; + + return localFeatures; + + }()); + + this.timer = null; + this.flakes = []; + this.disabled = false; + this.active = false; + this.meltFrameCount = 20; + this.meltFrames = []; + + this.setXY = function(o, x, y) { + + if (!o) { + return false; + } + + if (storm.usePixelPosition || targetElementIsRelative) { + + o.style.left = (x - storm.flakeWidth) + 'px'; + o.style.top = (y - storm.flakeHeight) + 'px'; + + } else if (noFixed) { + + o.style.right = (100-(x/screenX*100)) + '%'; + // avoid creating vertical scrollbars + o.style.top = (Math.min(y, docHeight-storm.flakeHeight)) + 'px'; + + } else { + + if (!storm.flakeBottom) { + + // if not using a fixed bottom coordinate... + o.style.right = (100-(x/screenX*100)) + '%'; + o.style.bottom = (100-(y/screenY*100)) + '%'; + + } else { + + // absolute top. + o.style.right = (100-(x/screenX*100)) + '%'; + o.style.top = (Math.min(y, docHeight-storm.flakeHeight)) + 'px'; + + } + + } + + }; + + this.events = (function() { + + var old = (!window.addEventListener && window.attachEvent), slice = Array.prototype.slice, + evt = { + add: (old?'attachEvent':'addEventListener'), + remove: (old?'detachEvent':'removeEventListener') + }; + + function getArgs(oArgs) { + var args = slice.call(oArgs), len = args.length; + if (old) { + args[1] = 'on' + args[1]; // prefix + if (len > 3) { + args.pop(); // no capture + } + } else if (len === 3) { + args.push(false); + } + return args; + } + + function apply(args, sType) { + var element = args.shift(), + method = [evt[sType]]; + if (old) { + element[method](args[0], args[1]); + } else { + element[method].apply(element, args); + } + } + + function addEvent() { + apply(getArgs(arguments), 'add'); + } + + function removeEvent() { + apply(getArgs(arguments), 'remove'); + } + + return { + add: addEvent, + remove: removeEvent + }; + + }()); + + function rnd(n,min) { + if (isNaN(min)) { + min = 0; + } + return (Math.random()*n)+min; + } + + function plusMinus(n) { + return (parseInt(rnd(2),10)===1?n*-1:n); + } + + this.randomizeWind = function() { + var i; + vRndX = plusMinus(rnd(storm.vMaxX,0.2)); + vRndY = rnd(storm.vMaxY,0.2); + if (this.flakes) { + for (i=0; i=0 && s.vX<0.2) { + s.vX = 0.2; + } else if (s.vX<0 && s.vX>-0.2) { + s.vX = -0.2; + } + if (s.vY>=0 && s.vY<0.2) { + s.vY = 0.2; + } + }; + + this.move = function() { + var vX = s.vX*windOffset, yDiff; + s.x += vX; + s.y += (s.vY*s.vAmp); + if (s.x >= screenX || screenX-s.x < storm.flakeWidth) { // X-axis scroll check + s.x = 0; + } else if (vX < 0 && s.x-storm.flakeLeftOffset < -storm.flakeWidth) { + s.x = screenX-storm.flakeWidth-1; // flakeWidth; + } + s.refresh(); + yDiff = screenY+scrollY-s.y+storm.flakeHeight; + if (yDiff0.998) { + // ~1/1000 chance of melting mid-air, with each frame + s.melting = true; + s.melt(); + // only incrementally melt one frame + // s.melting = false; + } + if (storm.useTwinkleEffect) { + if (s.twinkleFrame < 0) { + if (Math.random() > 0.97) { + s.twinkleFrame = parseInt(Math.random() * 8, 10); + } + } else { + s.twinkleFrame--; + if (!opacitySupported) { + s.o.style.visibility = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 'hidden' : 'visible'); + } else { + s.o.style.opacity = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 0 : 1); + } + } + } + } + }; + + this.animate = function() { + // main animation loop + // move, check status, die etc. + s.move(); + }; + + this.setVelocities = function() { + s.vX = vRndX+rnd(storm.vMaxX*0.12,0.1); + s.vY = vRndY+rnd(storm.vMaxY*0.12,0.1); + }; + + this.setOpacity = function(o,opacity) { + if (!opacitySupported) { + return false; + } + o.style.opacity = opacity; + }; + + this.melt = function() { + if (!storm.useMeltEffect || !s.melting) { + s.recycle(); + } else { + if (s.meltFrame < s.meltFrameCount) { + s.setOpacity(s.o,s.meltFrames[s.meltFrame]); + s.o.style.fontSize = s.fontSize-(s.fontSize*(s.meltFrame/s.meltFrameCount))+'px'; + s.o.style.lineHeight = storm.flakeHeight+2+(storm.flakeHeight*0.75*(s.meltFrame/s.meltFrameCount))+'px'; + s.meltFrame++; + } else { + s.recycle(); + } + } + }; + + this.recycle = function() { + s.o.style.display = 'none'; + s.o.style.position = (fixedForEverything?'fixed':'absolute'); + s.o.style.bottom = 'auto'; + s.setVelocities(); + s.vCheck(); + s.meltFrame = 0; + s.melting = false; + s.setOpacity(s.o,1); + s.o.style.padding = '0px'; + s.o.style.margin = '0px'; + s.o.style.fontSize = s.fontSize+'px'; + s.o.style.lineHeight = (storm.flakeHeight+2)+'px'; + s.o.style.textAlign = 'center'; + s.o.style.verticalAlign = 'baseline'; + s.x = parseInt(rnd(screenX-storm.flakeWidth-20),10); + s.y = parseInt(rnd(screenY)*-1,10)-storm.flakeHeight; + s.refresh(); + s.o.style.display = 'block'; + s.active = 1; + }; + + this.recycle(); // set up x/y coords etc. + this.refresh(); + + }; + + this.snow = function() { + var active = 0, flake = null, i, j; + for (i=0, j=storm.flakes.length; istorm.flakesMaxActive) { + storm.flakes[storm.flakes.length-1].active = -1; + } + } + storm.targetElement.appendChild(docFrag); + }; + + this.timerInit = function() { + storm.timer = true; + storm.snow(); + }; + + this.init = function() { + var i; + for (i=0; i { + try { + currentMemory = process.memoryUsage().rss; + currentMemoryMib = (((currentMemory)/1024)/1024).toFixed(2); + if ((((currentMemory)/1024)/1024) > ((require('os').totalmem() / 1000000) / 4)) { + throw new Error("Out of memory"); + } + + file = webview.getURL().split("/")[webview.getURL().split("/").length - 1]; + activity = lang.discord.game[0]; + enableActivity = false; + eaid = ""; + + switch (file) { + case "game.html?online": + enableActivity = true; + activity = lang.online.discord; + break; + case "game.html?sp": + enableActivity = true; + activity = lang.discord.game[1]; + break; + case "game.html": + enableActivity = true; + activity = lang.discord.game[2]; + break; + case "intro.html": + enableActivity = true; + activity = lang.discord.intro[1]; + break; + case "settings.html": + case "stats.html": + enableActivity = true; + activity = lang.discord.settings[1]; + break; + case "credits.html": + enableActivity = true; + activity = lang.discord.credits[1]; + break; + case "online.html": + enableActivity = true; + activity = lang.online.discord2; + break; + case "menu.html": + case "win.html": + enableActivity = true; + activity = lang.discord.credits[0]; + break; + case "loader.html": + enableActivity = false; + break; + } + + if (file.includes("online.html")) { + activity = lang.online.discord2; + } + + if (enableActivity) { + eaid = " - " + activity; + } else { + eaid = ""; + } + + if (require('./package.json').channel === "git") { + document.title="Kartik Trunk " +require('./package.json').version; + } else { + document.title="Kartik"+require('@electron/remote').getCurrentWindow().channel+require('./package.json').version + eaid; + } + } catch (e) { + if (e.message === "Out of memory") { + throw e; + } + } +}, 1000) \ No newline at end of file diff --git a/kartik/views/script/core_compatlayer.js b/kartik/views/script/core_compatlayer.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/script/core_crash.js b/kartik/views/script/core_crash.js new file mode 100755 index 0000000..cc68b18 --- /dev/null +++ b/kartik/views/script/core_crash.js @@ -0,0 +1,15 @@ +global.gameCrashed = false; +crashSound = new Audio("./sfx/gamecrash.wav"); + +function destroy() { + global.gameCrashed = true; + crashSound.play(); + document.getElementById("wb").outerHTML = ""; + try { musicElement.pause(); } catch (e) {} +} + +function spawnError(crashReport) { + document.getElementById("error-outer").style.display = "flex"; + document.getElementById("crash-dump").value = crashReport; + destroy(); +} \ No newline at end of file diff --git a/kartik/views/script/core_fullscreen.js b/kartik/views/script/core_fullscreen.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/script/core_head.js b/kartik/views/script/core_head.js new file mode 100755 index 0000000..be27c87 --- /dev/null +++ b/kartik/views/script/core_head.js @@ -0,0 +1,31 @@ +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = './webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} + +if (native && require('@electron/remote').getCurrentWindow().debug) { + document.write(''); +} + +if (native) { + var ipcRenderer = require('electron').ipcRenderer; + ipcRenderer.on('scenario', function (event,obj) { + try { + console.log(kresources.scenario.voice[obj.lang] + "/" + obj.namespace + obj.id + ".mp3"); + a = new Audio(kresources.scenario.voice[obj.lang] + "/" + obj.namespace + obj.id + ".mp3"); + a.onended = () => { + setTimeout(() => { + $("#message").fadeOut(200); + if (typeof obj.cb == "function") { + obj.cb(); + } + }, 3000) + } + a.play(); + } catch (e) { + console.error(e); + obj.cb(); + } + + document.getElementById('message-text').innerText = obj.message; + document.getElementById('message-character-inner').src = kresources.scenario.averi[obj.emote]; + $("#message").fadeIn(200); + }); +} diff --git a/kartik/views/script/core_music.js b/kartik/views/script/core_music.js new file mode 100755 index 0000000..b35f5db --- /dev/null +++ b/kartik/views/script/core_music.js @@ -0,0 +1,35 @@ +if (location.hash === "#ready") { + global.musicElement = new Audio(); + + global.musicManager = { + setMusic: (args) => { + musicElement.src = args; + musicElement.play(); + musicElement.volume = 1; + musicElement.loop = true; + }, + fadeMusic: () => { + if (!musicElement.paused) { + csi1 = setInterval(() => { + if (musicElement.volume <= 0.3) { + clearInterval(csi1); + return; + } + musicElement.volume = musicElement.volume - 0.05; + }, 100) + } + }, + unfadeMusic: () => { + if (!musicElement.paused) { + csi1 = setInterval(() => { + if (musicElement.volume >= 0.95) { + clearInterval(csi1); + return; + } + musicElement.volume = musicElement.volume + 0.05; + }, 100) + } + } + } + +} \ No newline at end of file diff --git a/kartik/views/script/core_notification.js b/kartik/views/script/core_notification.js new file mode 100755 index 0000000..e720006 --- /dev/null +++ b/kartik/views/script/core_notification.js @@ -0,0 +1,12 @@ +global.notification = (data) => { + document.getElementById("notification-title").innerText = data.title; + document.getElementById("notification-message").innerText = data.message; + document.getElementById("notification").style.right = "20px"; + document.getElementById("notification").style.opacity = "1"; + new Audio("./sfx/notification.mp3").play(); + + setTimeout(() => { + document.getElementById("notification").style.right = "-300px"; + document.getElementById("notification").style.opacity = "0"; + }, 5000) +}; \ No newline at end of file diff --git a/kartik/views/script/core_viewer.js b/kartik/views/script/core_viewer.js new file mode 100755 index 0000000..a538b99 --- /dev/null +++ b/kartik/views/script/core_viewer.js @@ -0,0 +1,33 @@ +const webview = document.getElementById('wb'); + +try { + webview.addEventListener('dom-ready', () => { + setTimeout(() => { + document.getElementById('dummyloader').style.display = "none"; + }, 5000) + require('@electron/remote').getCurrentWindow().log(" * " + webview.getURL()); + require('@electron/remote').getCurrentWindow().focus(); + if (location.hash === "#ready") { + require('@electron/remote').webContents.fromId(webview.getWebContentsId()).send("ready", true); + } + webview.focus(); + try { + if (require('@electron/remote').getCurrentWindow().debug) { + info("MainWindow", "Opening debugging tools..."); + webview.openDevTools(); + } + } catch (e) {} + }) + + webview.addEventListener('dom-ready', () => { + setInterval(() => { + try { + if (webview.isCrashed() && !gameCrashed) { + require('@electron/remote').getCurrentWindow().log(" * Compositing engine crashed!"); + error("MainWindow", "Subcontainer crashed"); + crash(new Error("Webview crashed")); + } + } catch (e) {} + }, 2000) + }) +} catch (e) {} \ No newline at end of file diff --git a/kartik/views/script/credits_global.js b/kartik/views/script/credits_global.js new file mode 100755 index 0000000..393293d --- /dev/null +++ b/kartik/views/script/credits_global.js @@ -0,0 +1,54 @@ +let menuOpen = true; + +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} + +keysEnabled = true; +$(document).keydown(function(e) { + if (keysEnabled) { + if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32 || e.keyCode === 27 || e.keyCode === 8 || e.keyCode === 16) { // enter/esc + keysEnabled = false; + Sound.click(); + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("GWinWindow", "Switching control to MenuWindow"); + location.href = "menu.html"; + }, 1000) + } + } +}) + +var currentpos=0,alt=1,curpos1=0,curpos2=-1 +function initialize(){ + $("#box").fadeIn(500); + startit() +} +function scrollwindow(){ + if (document.all) + temp=document.body.scrollTop + else + temp=window.pageYOffset + if (alt===0) + alt=1 + else + alt=0 + if (alt===0) + curpos1=temp + else + curpos2=temp + if (curpos1!==curpos2){ + if (document.all) + currentpos=document.body.scrollTop+1 + else + currentpos=window.pageYOffset+1 + window.scroll(0,currentpos) + } + else{ + currentpos=0 + window.scroll(0,currentpos) + } +} +function startit(){ + setInterval("scrollwindow()",20) +} +window.onload=initialize diff --git a/kartik/views/script/credits_libs.js b/kartik/views/script/credits_libs.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/script/credits_music.js b/kartik/views/script/credits_music.js new file mode 100755 index 0000000..7d2f69c --- /dev/null +++ b/kartik/views/script/credits_music.js @@ -0,0 +1,2 @@ +info("MusicMgr", "Playing settings.mp3"); +window.parent.musicManager.setMusic(kresources.music['credits'].file); \ No newline at end of file diff --git a/kartik/views/script/credits_technical.js b/kartik/views/script/credits_technical.js new file mode 100755 index 0000000..fda1998 --- /dev/null +++ b/kartik/views/script/credits_technical.js @@ -0,0 +1,12 @@ +document.write("Kartik: A New Start"); +document.write(" on " + navigator.userAgent + "
") +if (navigator.hardwareConcurrency > 1 || navigator.hardwareConcurrency === 0) { + document.write(navigator.hardwareConcurrency + " processors, "); +} else { + document.write(navigator.hardwareConcurrency + " processor, "); +} +if (navigator.maxTouchPoints > 1 || navigator.maxTouchPoints === 0) { + document.write(navigator.maxTouchPoints + " touch points
"); +} else { + document.write(navigator.maxTouchPoints + " touch point
"); +} \ No newline at end of file diff --git a/kartik/views/script/game_debug.js b/kartik/views/script/game_debug.js new file mode 100755 index 0000000..9d311b3 --- /dev/null +++ b/kartik/views/script/game_debug.js @@ -0,0 +1,138 @@ +global.debugshow = false; + +function oil(id) { + return "\nO" + id +": " + document.getElementById('oil' + id + '').style.left.split("px")[0] + " " + document.getElementById('oil' + id + '').style.top.split("px")[0] + " / " + document.getElementById('oil' + id + '').style.transform.split("rotate(")[1].split("deg)")[0]; +} + +$(document).keydown((e) => { + if (e.keyCode === 114) { // F3 + if (debugshow) { + global.debugshow = false; + document.getElementById("debug").style.display = "none"; + } else { + global.debugshow = true; + document.getElementById("debug").style.display = ""; + } + } +}) + +gpuperct = 100; + +pubver = "prod"; +pvpart = pubver.split("."); +if (pvpart.length === 3) { + intver = pvpart[0] + "." + pvpart[1]; +} else { + intver = "unknown"; +} + +release = "official"; + +if (gpuperct < 25) { + perf = "fast"; +} else if (gpuperct < 50) { + perf = "fancy"; +} else { + perf = "fabulous"; +} + +if (location.search === "") { + game = "Local multiplayer game"; +} else if (location.search === "?sp") { + game = "Singleplayer game"; +} else if (location.search === "?online") { + game = "Online multiplayer game"; +} + +tps = -1; +cping = -1; +changedDataLeft = "playing: %false%" +changedDataRight = "" +immutableDataLeft = "Kartik " + pubver + " (" + intver + "/trunk+" + release + ")\n%tps% tps T:" + perf + ";vsync\n" + game + " @ %ping% ms ticks"; +immutableDataRight = "Browser: " + navigator.userAgent; + +credits = "Debug: start runtime with debug argument\nFor help: https://arcade.minteck.org/kartik" + +setInterval(() => { + if (!debugshow) { return; } + + + leftparts = (immutableDataLeft + "\n" + changedDataLeft + "\n\n" + credits).split("\n"); + lefttext = "" + leftparts.join("
") + ""; + + rightparts = (immutableDataRight + "\n" + changedDataRight).split("\n"); + righttext = "" + rightparts.join("
") + ""; + + document.getElementById("debug-left").innerHTML = lefttext.replaceAll("%tps%", tps).replaceAll("%ping%", cping).replaceAll("%false%", "false").replaceAll("%true%", "true"); + document.getElementById("debug-right").innerHTML = righttext; +}, 100) + +var filterStrength = 20; +var frameTime = 0, lastLoop = new Date, thisLoop; + +setInterval(() => { + if (!debugshow) { return; } + + var thisFrameTime = (thisLoop=new Date) - lastLoop; + frameTime+= (thisFrameTime - frameTime) / filterStrength; + lastLoop = thisLoop; +}, 50) + +setInterval(() => { + if (!debugshow) { return; } + + tps = (1000/frameTime).toFixed(1); + + if (typeof ping === "number") { + cping = ping; + } else { + cping = 0; + } + + if (started) { + changedDataLeft = "playing: %true%"; + changedDataLeft += "\n\n0$: XY: " + document.getElementById('car0').style.left.split("px")[0] + " / " + document.getElementById('car0').style.top.split("px")[0] + + c0rotate = document.getElementById('car0').style.transform.split("rotate(")[1].split("deg)")[0]; + if (c0rotate === "90") { + changedDataLeft += "\n0$: Facing: south (Towards negative Y)"; + } else if (c0rotate === "-90") { + changedDataLeft += "\n0$: Facing: north (Towards negative Y)"; + } else if (c0rotate === "0") { + changedDataLeft += "\n0$: Facing: east (Towards positive X)"; + } else if (c0rotate === "180") { + changedDataLeft += "\n0$: Facing: west (Towards negative X)"; + } + + changedDataLeft += "\n0$: Speed: A: " + car0cspeed.toFixed(2) + " R: " + (car0speed - car0cspeed).toFixed(2) + " M: " + car0speed.toFixed(2); + + changedDataLeft += "\n0$: Laps: " + document.getElementById('laps-car0').innerText + "/5"; + changedDataLeft += "\n0$: Model: " + selectedModel0; + changedDataLeft += "\n0$: Collision: " + (car0collisionon ? "%true%" : "%false%"); + + changedDataLeft += "\n\n1$: XY: " + document.getElementById('car1').style.left.split("px")[0] + " / " + document.getElementById('car1').style.top.split("px")[0] + + c0rotate = document.getElementById('car1').style.transform.split("rotate(")[1].split("deg)")[0]; + if (c0rotate === "90") { + changedDataLeft += "\n1$: Facing: south (Towards negative Y)"; + } else if (c0rotate === "-90") { + changedDataLeft += "\n1$: Facing: north (Towards negative Y)"; + } else if (c0rotate === "0") { + changedDataLeft += "\n1$: Facing: east (Towards positive X)"; + } else if (c0rotate === "180") { + changedDataLeft += "\n1$: Facing: west (Towards negative X)"; + } + + changedDataLeft += "\n1$: Speed: A: " + car1cspeed.toFixed(2) + " R: " + (car1speed - car1cspeed).toFixed(2) + " M: " + car1speed.toFixed(2); + + changedDataLeft += "\n1$: Laps: " + document.getElementById('laps-car1').innerText + "/5"; + changedDataLeft += "\n1$: Model: " + selectedModel1; + changedDataLeft += "\n1$: Collision: " + (car1collisionon ? "%true%" : "%false%"); + changedDataLeft += "\n" + oil(0) + oil(1) + oil(2) + oil(3) + oil(4); + changedDataLeft += "\n\nMusic: " + i; + changedDataLeft += "\nCircuit: " + rand; + + } else { + changedDataLeft = "playing: %false%" + } +},100); \ No newline at end of file diff --git a/kartik/views/script/game_global.js b/kartik/views/script/game_global.js new file mode 100755 index 0000000..4e6de21 --- /dev/null +++ b/kartik/views/script/game_global.js @@ -0,0 +1,45 @@ +$("#box").fadeOut(0); +$("#bg").fadeOut(0); +setTimeout(() => { + $("#box").fadeIn(500); + $("#bg").fadeIn(500); +}, 200) + +global.startgame = () => { + keysEnabled = true; + $("#credits").fadeOut(200) + Sound.intro(); + + setTimeout(() => { + started = true; + }, 1700) + + setTimeout(() => { + if (location.search === "?sp") { + enableAI(); + } + }, 1200) +} + +startHooks.push(() => { + global.hitshow = false; + global.started = false; + keysEnabled = false; + + $("body").focus(); + + if (!online) { + setTimeout(startgame, 7000) + } + + if (online && role === "host") { + setTimeout(() => { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "gameIsReady", + message: null + }) + "|") + startgame(); + }, 7000) + } +}) \ No newline at end of file diff --git a/kartik/views/script/game_music.js b/kartik/views/script/game_music.js new file mode 100755 index 0000000..9739cc3 --- /dev/null +++ b/kartik/views/script/game_music.js @@ -0,0 +1,8 @@ +startHooks.push(() => { + info("MusicMgr", "Playing game" + i + ".mp3"); + window.parent.musicManager.setMusic(kresources.music['game' + i].file); +}) + +if (location.search === "?online") { + window.parent.musicManager.setMusic(kresources.music['prepare'].file); +} diff --git a/kartik/views/script/game_online.js b/kartik/views/script/game_online.js new file mode 100755 index 0000000..e379708 --- /dev/null +++ b/kartik/views/script/game_online.js @@ -0,0 +1,9 @@ +if (location.search === "?online") { + document.getElementById('online-login').style.display = ""; + document.write(`<` + `script src="../online/global.js">`); +} else { + startHooks.forEach((hook) => { + hook(this); + }) + document.getElementById('ping').style.display = "none"; +} \ No newline at end of file diff --git a/kartik/views/script/game_select.js b/kartik/views/script/game_select.js new file mode 100755 index 0000000..a3896d4 --- /dev/null +++ b/kartik/views/script/game_select.js @@ -0,0 +1,131 @@ +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} + +startHooks.push(() => { + function ranint(min, max) { // min and max included + return Math.floor(Math.random() * (max - min + 1) + min); + } + + circuits = Object.keys(kresources.races); + rand = circuits[Math.floor(Math.random()*circuits.length)]; + + if (online && role === "host") { + setInterval(() => { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "RaceData:circuit", + message: rand + }) + "|"); + }, 100) + } + + if (online && role === "guest") { + rand = guestInfo.circuit; + } + + info("GameWindow", "Selected circuit " + rand); + document.getElementById('circuit').style.backgroundImage = "url('." + kresources.races[rand].substr(0, kresources.races[rand].length - 5).split("'").join("\\'") + ".png')"; + document.getElementById('circuit').innerHTML = $.ajax("/kartik/" + kresources.races[rand], { async: false }).responseText.toString(); + + inf = JSON.parse(document.getElementsByTagName("circuit")[0].innerText); + if (typeof inf.name[lp] === "undefined") { + document.getElementById('race-title').innerText = inf.name.en; + } else { + document.getElementById('race-title').innerText = inf.name[lp]; + } + document.getElementById('race-author').innerText = inf.author; + + i = ranint(1, 9); + + if (online && role === "host") { + setInterval(() => { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "RaceData:music", + message: i + }) + "|"); + }, 200) + } + + if (online && role === "guest") { + i = guestInfo.music; + } + + global.spreadOil = (oil) => { + rx = ranint(0, 680); + ry = ranint(0, 490); + rd = ranint(0, 360); + rh = ranint(0, 360); + + oil.style.top = ry + "px"; + oil.style.left = rx + "px"; + oil.style.transform = "rotate(" + rd + "deg)"; + oil.style.filter = "hue-rotate(" + rd + "deg)"; + } + + Array.from(document.getElementById('oil').children).forEach((item) => { + spreadOil(item); + }) + + modelsAvailable = Object.keys(kresources.cars); + + selectedModel0I = Math.floor(Math.random() * modelsAvailable.length); + selectedModel0 = modelsAvailable[selectedModel0I]; + modelsAvailable.splice(selectedModel0I, 1); + + selectedModel1I = Math.floor(Math.random() * modelsAvailable.length); + selectedModel1 = modelsAvailable[selectedModel1I]; + + if (online && role === "host") { + setInterval(() => { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "RaceData:hostCar", + message: selectedModel0 + }) + "|"); + }, 300) + setInterval(() => { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "RaceData:guestCar", + message: selectedModel1 + }) + "|"); + }, 400) + } + + if (online && role === "guest") { + selectedModel0 = guestInfo.guestCar; + selectedModel1 = guestInfo.hostCar; + } + + document.getElementById("car0-img").src = kresources.cars[selectedModel0]; + document.getElementById("cars-p1-inner").src = kresources.cars[selectedModel0]; + document.getElementById("car1-img").src = kresources.cars[selectedModel1]; + document.getElementById("cars-p2-inner").src = kresources.cars[selectedModel1]; +}) + +startHooks.push(() => { + setInterval(() => { + if (online) { + clientWriter(JSON.stringify({ + _type: "ipc", + action: "posTop", + message: document.getElementById("car0").style.top + }) + "|") + clientWriter(JSON.stringify({ + _type: "ipc", + action: "posLeft", + message: document.getElementById("car0").style.left + }) + "|") + clientWriter(JSON.stringify({ + _type: "ipc", + action: "posRot", + message: document.getElementById("car0").style.transform + }) + "|") + clientWriter(JSON.stringify({ + _type: "ipc", + action: "progressLaps", + message: document.getElementById("laps-car0").innerText + }) + "|") + } + }, 50) +}) diff --git a/kartik/views/script/global_compatlayer.js b/kartik/views/script/global_compatlayer.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/script/global_levelsapi.js b/kartik/views/script/global_levelsapi.js new file mode 100755 index 0000000..ebd969d --- /dev/null +++ b/kartik/views/script/global_levelsapi.js @@ -0,0 +1,47 @@ +module.exports = class LevelsAPI { + + associates; + + constructor() { + + let assocs_raw; + let assocs_lines; + let assocs_base; + let assocs; + let score; + let cline; + let line; + let clvl; + + assocs_raw = require('fs').readFileSync("./online/levels.txt"); + assocs_lines = assocs_raw.toString().split("\n"); + assocs_base = {}; + + for (line of assocs_lines) { + cline = line.split(":"); + assocs_base[cline[1].trim()] = cline[0].trim() - 1 + 1; + } + + assocs = {}; + + clvl = 0; + for (let c = 0; c <= 5051; c++) { + if (assocs_base[c.toString()] !== undefined) { + clvl = assocs_base[c.toString()]; + } + assocs[c.toString()] = clvl.toString() + } + + this.associates = assocs; + + } + + correspond(score, god) { + if (score <= 5051) { + return this.associates[score].toString(); + } else { + return god; + } + } + +} \ No newline at end of file diff --git a/kartik/views/script/intro_global.js b/kartik/views/script/intro_global.js new file mode 100755 index 0000000..b6bf033 --- /dev/null +++ b/kartik/views/script/intro_global.js @@ -0,0 +1,21 @@ +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} +$("#box").fadeOut(0); +window.addEventListener('load', () => { + setTimeout(() => { + $("#box").fadeIn(500); + }, 1000) +}) + +keysEnabled = true; +$(document).keydown(function(e) { + if (keysEnabled) { + if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32 || e.keyCode === 27 || e.keyCode === 8 || e.keyCode === 16) { // enter/esc + kesyEnabled = false; + $("#box").fadeOut(500); + setTimeout(() => { + info("GWinWindow", "Switching control to MenuWindow"); + location.href = "menu.html?noreset"; + }, 1000) + } + } +}) \ No newline at end of file diff --git a/kartik/views/script/intro_media.js b/kartik/views/script/intro_media.js new file mode 100755 index 0000000..a6be835 --- /dev/null +++ b/kartik/views/script/intro_media.js @@ -0,0 +1,2 @@ +info("MusicMgr", "Playing title.mp3"); +window.parent.musicManager.setMusic(kresources.music['title'].file); \ No newline at end of file diff --git a/kartik/views/script/intro_message.js b/kartik/views/script/intro_message.js new file mode 100755 index 0000000..6ab8d95 --- /dev/null +++ b/kartik/views/script/intro_message.js @@ -0,0 +1,7 @@ +setInterval(() => { + if (require('@electron/remote').getCurrentWindow().controllerAttached) { + document.getElementById('progress').innerText = lang.intro[1]; + } else { + document.getElementById('progress').innerText = lang.intro[0]; + } +}, 100) \ No newline at end of file diff --git a/kartik/views/script/loader_global.js b/kartik/views/script/loader_global.js new file mode 100755 index 0000000..9844f1e --- /dev/null +++ b/kartik/views/script/loader_global.js @@ -0,0 +1,132 @@ +window.addEventListener("load", () => { + document.getElementById("banner-decoration").style.display = ""; + document.getElementById("banner-outer").style.backgroundImage = ""; + document.getElementById("banner-outer").style.backgroundColor = "#042349"; + document.getElementById("banner-contrast").style.display = "none"; + + setTimeout(() => { + if (native) { + setTimeout(() => { + setTimeout(() => { + + $("#progress").fadeOut(500); + setTimeout(() => { + window.fetch("https://kartik.hopto.org/latest.php?v=" + require('@electron/remote').getCurrentWindow().update).then((data) => { + data.blob().then((a) => { + a.text().then((b) => { + if (require('@electron/remote').getCurrentWindow().update === "git") { + document.getElementById('updates').style.backgroundColor = "lightsalmon"; + document.getElementById('updates').innerText = lang.updates.git; + } else { + console.log(b); + console.log(require('../package.json').version); + if (b === require('../package.json').version) { + document.getElementById('updates').style.backgroundColor = "lightgreen"; + document.getElementById('updates').innerText = lang.updates.ok; + } else { + require('@electron/remote').getCurrentWindow().webContents.send("notification", {title: lang.updates.warn[0], message: lang.updates.warn[1]}); + document.getElementById('updates').style.backgroundColor = "lightyellow"; + document.getElementById('updates').innerText = lang.updates.available; + } + } + setTimeout(() => { + $("#banner-outer").fadeOut(200); + $("#intro-video").fadeIn(200); + setTimeout(() => { + introsfx = document.getElementById("intro-video"); + introsfx.play() + introsfx.onended = () => { + $("body").fadeOut(500); + setTimeout(() => { + info("LoadWindow", "Switching control to MenuWindow"); + location.href = "intro.html"; + }, 1000) + } + }, 200) + }, 2000) + }).catch((e) => { + console.warn(e); + document.getElementById('updates').style.backgroundColor = "lightcoral"; + document.getElementById('updates').innerText = lang.updates.error; + require('@electron/remote').getCurrentWindow().webContents.send("notification", {title: lang.polymer.updateError[0], message: lang.polymer.updateError[1]}); + setTimeout(() => { + $("#banner-outer").fadeOut(200); + $("#intro-video").fadeIn(200); + setTimeout(() => { + introsfx = document.getElementById("intro-video"); + introsfx.play() + introsfx.onended = () => { + $("body").fadeOut(500); + setTimeout(() => { + info("LoadWindow", "Switching control to MenuWindow"); + location.href = "intro.html"; + }, 1000) + } + }, 200) + }, 2000) + }); + }).catch((e) => { + console.warn(e); + document.getElementById('updates').style.backgroundColor = "lightcoral"; + document.getElementById('updates').innerText = lang.updates.error; + require('@electron/remote').getCurrentWindow().webContents.send("notification", {title: lang.polymer.updateError[0], message: lang.polymer.updateError[1]}); + setTimeout(() => { + $("#banner-outer").fadeOut(200); + $("#intro-video").fadeIn(200); + setTimeout(() => { + introsfx = document.getElementById("intro-video"); + introsfx.play() + introsfx.onended = () => { + $("body").fadeOut(500); + setTimeout(() => { + info("LoadWindow", "Switching control to MenuWindow"); + location.href = "intro.html"; + }, 1000) + } + }, 200) + }, 2000) + }); + }).catch((e) => { + console.warn(e); + document.getElementById('updates').style.backgroundColor = "lightcoral"; + document.getElementById('updates').innerText = lang.updates.error; + require('@electron/remote').getCurrentWindow().webContents.send("notification", {title: lang.polymer.updateError[0], message: lang.polymer.updateError[1]}); + setTimeout(() => { + $("#banner-outer").fadeOut(200); + $("#intro-video").fadeIn(200); + setTimeout(() => { + introsfx = document.getElementById("intro-video"); + introsfx.play() + introsfx.onended = () => { + $("body").fadeOut(500); + setTimeout(() => { + info("LoadWindow", "Switching control to MenuWindow"); + location.href = "intro.html"; + }, 1000) + } + }, 200) + }, 2000) + }); + }, 2000) + }, 3000) + }, 1000) + } else { + + setTimeout(() => { + $("#banner-outer").fadeOut(200); + $("#intro-video").fadeIn(200); + setTimeout(() => { + introsfx = document.getElementById("intro-video"); + introsfx.play() + introsfx.onended = () => { + $("body").fadeOut(500); + setTimeout(() => { + info("LoadWindow", "Switching control to MenuWindow"); + location.href = "intro.html"; + }, 1000) + } + }, 200) + }, 5000) + } + }, 2000) +}) \ No newline at end of file diff --git a/kartik/views/script/menu_copyright.js b/kartik/views/script/menu_copyright.js new file mode 100755 index 0000000..2b38844 --- /dev/null +++ b/kartik/views/script/menu_copyright.js @@ -0,0 +1,5 @@ +if (new Date().getFullYear() === 2021) { + document.write(new Date().getFullYear() + " Minteck"); +} else { + document.write("2021-" + new Date().getFullYear() + " Minteck"); +} \ No newline at end of file diff --git a/kartik/views/script/menu_global.js b/kartik/views/script/menu_global.js new file mode 100755 index 0000000..811e525 --- /dev/null +++ b/kartik/views/script/menu_global.js @@ -0,0 +1,127 @@ +let menuOpen = true; + +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} +$("#box").fadeOut(0); +window.addEventListener('load', () => { + setTimeout(() => { + $("#box").fadeIn(500); + }, 1000) +}) + +$("body").focus(); +keysEnabled = true; +$(document).keydown(function(e) { + if (loggingIn) { return; } + + if (keysEnabled) { + if (e.ctrlKey && e.keyCode === 13) { // ctrl+enter + throw new RangeError("Manually initiated crash"); + } + if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32) { // enter + if ($(".services").is(":visible")) { + selectOption(); + } else { + $(".services").show(); + } + menuOpen = !menuOpen; + } + if (e.keyCode === 38 || e.keyCode === 90) { // up + Sound.menu(); + var selected = $(".selected"); + $(".services li").removeClass("selected"); + if (selected.prev().length === 0) { + selected.siblings().last().addClass("selected"); + } else { + selected.prev().addClass("selected"); + } + } + if (e.keyCode === 40 || e.keyCode === 83) { // down + Sound.menu(); + var selected = $(".selected"); + $(".services li").removeClass("selected"); + if (selected.next().length === 0) { + selected.siblings().first().addClass("selected"); + } else { + selected.next().addClass("selected"); + } + } + if (e.keyCode === 27 || e.keyCode === 8) { // esc + keysEnabled = false; + Sound.click(); + setTimeout(() => { + require('@electron/remote').getCurrentWindow().close(); + }, 250) + } + } +}); + +function selectOption() { + item = document.querySelector(".selected a").id; + Sound.click(); + + switch (item) { + case 'single': + scenar("start", "happy"); + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("MenuWindow", "Switching control to GameWindow"); + location.href = "game.html?sp"; + }, 1000) + break; + case 'online': + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("MenuWindow", "Switching control to GameWindow"); + location.href = "game.html?online"; + }, 1000) + break; + case 'play': + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("MenuWindow", "Switching control to GameWindow"); + location.href = "game.html"; + }, 1000) + break; + case 'settings': + keysEnabled = false; + $("#box").fadeOut(500); + setTimeout(() => { + info("MenuWindow", "Switching control to OptnWindow"); + location.href = "settings.html"; + }, 1000) + break; + case 'stats': + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("MenuWindow", "Switching control to OptnWindow"); + location.href = "stats.html"; + }, 1000) + break; + case 'credits': + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("MenuWindow", "Switching control to OptnWindow"); + location.href = "credits.html"; + }, 1000) + break; + case 'quit': + keysEnabled = false; + window.parent.musicManager.fadeMusic(); + info("MenuWindow", "Quitting game"); + Sound.click(); + setTimeout(() => { + window.parent.location.href = "/"; + }, 250) + break; + } +} \ No newline at end of file diff --git a/kartik/views/script/menu_gpuinfo.js b/kartik/views/script/menu_gpuinfo.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/script/menu_login.js b/kartik/views/script/menu_login.js new file mode 100755 index 0000000..8e071eb --- /dev/null +++ b/kartik/views/script/menu_login.js @@ -0,0 +1 @@ +global.loggingIn = false; diff --git a/kartik/views/script/menu_music.js b/kartik/views/script/menu_music.js new file mode 100755 index 0000000..5d26af0 --- /dev/null +++ b/kartik/views/script/menu_music.js @@ -0,0 +1,5 @@ +if (location.search !== "?noreset") { + console.log("back"); + window.parent.musicManager.setMusic(kresources.music['title'].file); +} +info("MenuWindow", "Menu opened"); diff --git a/kartik/views/script/menu_system.js b/kartik/views/script/menu_system.js new file mode 100755 index 0000000..947699f --- /dev/null +++ b/kartik/views/script/menu_system.js @@ -0,0 +1,33 @@ + +switch (require('os').platform()) { + case "win32": + document.write("Windows"); + break + case "aix": + document.write("AIX"); + break + case "android": + document.write("Android"); + break + case "cygwin": + document.write("Cygwin"); + break + case "darwin": + document.write("macOS"); + break + case "freebsd": + document.write("FreeBSD"); + break + case "linux": + document.write("GNU/Linux"); + break + case "netbsd": + document.write("NetBSD"); + break + case "openbsd": + document.write("OpenBSD"); + break + case "sunos": + document.write("Solaris"); + break +} diff --git a/kartik/views/script/online_play.js b/kartik/views/script/online_play.js new file mode 100755 index 0000000..0c1eb91 --- /dev/null +++ b/kartik/views/script/online_play.js @@ -0,0 +1,2 @@ +require('@electron/remote').getCurrentWindow().dstate = lang.online.discord2; +require('@electron/remote').getCurrentWindow().ddetails = lang.online.discord; \ No newline at end of file diff --git a/kartik/views/script/settings_global.js b/kartik/views/script/settings_global.js new file mode 100755 index 0000000..64c9b64 --- /dev/null +++ b/kartik/views/script/settings_global.js @@ -0,0 +1,104 @@ +let menuOpen = true; + +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} +$("#box").fadeOut(0); +setTimeout(() => { + $("#box").fadeIn(500); +}, 200) + +$("body").focus(); +keysEnabled = true; +$(document).keydown(function(e) { + if (keysEnabled) { + if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32) { // enter + if ($(".services").is(":visible")) { + selectOption(); + } else { + $(".services").show(); + } + } + if (e.keyCode === 38 || e.keyCode === 90) { // up + Sound.menu(); + var selected = $(".selected"); + $(".services li").removeClass("selected"); + if (selected.prev().length === 0) { + selected.siblings().last().addClass("selected"); + } else { + selected.prev().addClass("selected"); + } + } + if (e.keyCode === 40 || e.keyCode === 83) { // down + Sound.menu(); + var selected = $(".selected"); + $(".services li").removeClass("selected"); + if (selected.next().length === 0) { + selected.siblings().first().addClass("selected"); + } else { + selected.next().addClass("selected"); + } + } + if (e.keyCode === 68 || e.keyCode === 39 || e.keyCode === 81 || e.keyCode === 37) { // right/left + Sound.menu(); + var selected = $(".selected"); + var id = $(".selected")[0].children[0].children[0].id; + + if (id === "lang") { + lang = document.getElementById("setting-lang").innerText; + slng = JSON.parse($.ajax('../lang/languages.json', { async: false }).responseText); + slst = Object.keys(slng); + maxl = slst.length - 1; + + ci = -1; + ni = -1; + slst.forEach((key, index) => { + if (slng[key] === lang) { + ci = index; + if (index + 1 > maxl) { + ni = 0; + } else { + ni = index + 1; + } + } + }) + + if (ci !== -1 && ni !== -1) { + document.cookie = "kartik_lang=" + slst[ni] + "; path=/"; + document.getElementById("setting-lang").innerText = slng[slst[ni]]; + window.parent.lp = lp = slst[ni]; + } + } + } + if (e.keyCode === 27 || e.keyCode === 8) { // esc + keysEnabled = false; + Sound.click(); + $("#box").fadeOut(500); + setTimeout(() => { + info("OptnWindow", "Switching control to MenuWindow"); + location.href = "menu.html"; + }, 1000) + } + } +}); + +function selectOption() { + item = document.querySelector(".selected a").id; + Sound.click(); + + switch (item) { + case 'back': + $("#box").fadeOut(500); + setTimeout(() => { + info("OptnWindow", "Switching control to MenuWindow"); + location.href = "menu.html?noreset"; + }, 1000) + break; + case 'credits': + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("OptnWindow", "Switching control to MenuWindow"); + location.href = "credits.html"; + }, 1000) + break; + } +} diff --git a/kartik/views/script/settings_load.js b/kartik/views/script/settings_load.js new file mode 100755 index 0000000..c57329f --- /dev/null +++ b/kartik/views/script/settings_load.js @@ -0,0 +1,10 @@ +info("OptnWindow", "Restoring settings..."); + +slang = lp; +langs = JSON.parse($.ajax('../lang/languages.json', { async: false }).responseText); + +if (Object.keys(langs).includes(slang)) { + document.getElementById("setting-lang").innerText = langs[slang]; +} else { + document.getElementById("setting-lang").innerText = slang; +} diff --git a/kartik/views/script/win_global.js b/kartik/views/script/win_global.js new file mode 100755 index 0000000..7448375 --- /dev/null +++ b/kartik/views/script/win_global.js @@ -0,0 +1,22 @@ +if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);} +$("#box").fadeOut(0); +setTimeout(() => { + $("#box").fadeIn(500); +}, 200) + +keysEnabled = true; +$(document).keydown(function(e) { + if (keysEnabled) { + if (e.keyCode === 13 || e.keyCode === 88 || e.keyCode === 32 || e.keyCode === 27 || e.keyCode === 8 || e.keyCode === 16) { // enter/esc + Sound.click(); + window.parent.musicManager.fadeMusic(); + $("#box").fadeOut(500); + setTimeout(() => { + info("GWinWindow", "Switching control to MenuWindow"); + location.href = "menu.html"; + }, 3000) + } + } +}) + +info("GWinWindow", "Rendered!"); \ No newline at end of file diff --git a/kartik/views/script/win_message.js b/kartik/views/script/win_message.js new file mode 100755 index 0000000..fd01c22 --- /dev/null +++ b/kartik/views/script/win_message.js @@ -0,0 +1,9 @@ +if (location.search === "?sp") { + if ((location.hash.substr(4) - 1 + 2) == 1) { + document.write(lang.win.solo.win); + } else { + document.write(lang.win.solo.lose); + } +} else { + document.write(lang.win.versus.replace("0", (location.hash.substr(4) - 1 + 2))); +} \ No newline at end of file diff --git a/kartik/views/script/win_music.js b/kartik/views/script/win_music.js new file mode 100755 index 0000000..6220bb8 --- /dev/null +++ b/kartik/views/script/win_music.js @@ -0,0 +1,2 @@ +info("MusicMgr", "Playing win.mp3"); +window.parent.musicManager.setMusic(kresources.music['win'].file); \ No newline at end of file diff --git a/kartik/views/script/win_play.js b/kartik/views/script/win_play.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/script/win_quit.js b/kartik/views/script/win_quit.js new file mode 100755 index 0000000..e69de29 diff --git a/kartik/views/settings.html b/kartik/views/settings.html new file mode 100755 index 0000000..0548e2d --- /dev/null +++ b/kartik/views/settings.html @@ -0,0 +1,49 @@ + + + + + + + + + + + Kartik + + + + + + + + + + + + + + diff --git a/kartik/views/splash.svg b/kartik/views/splash.svg new file mode 100755 index 0000000..e9bfac3 --- /dev/null +++ b/kartik/views/splash.svg @@ -0,0 +1,2831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kartik/views/stats.html b/kartik/views/stats.html new file mode 100755 index 0000000..b457233 --- /dev/null +++ b/kartik/views/stats.html @@ -0,0 +1,66 @@ + + + + + + + + Kartik + + + + + + + + + + + + + + + + + + diff --git a/kartik/views/win.html b/kartik/views/win.html new file mode 100755 index 0000000..fbc4de6 --- /dev/null +++ b/kartik/views/win.html @@ -0,0 +1,40 @@ + + + + + + + + Kartik + + + + + + + + + + + + + + + + + + diff --git a/kartik/webinit/jquery.js b/kartik/webinit/jquery.js new file mode 100644 index 0000000..c4c6022 --- /dev/null +++ b/kartik/webinit/jquery.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0