МУРОМ является долговечным игровым редактором, работающим в браузере | MUROM is a durable game editor working in a browser http://opengamestudio.org/murom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
601KB

  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <body>
  6. <script>
  7. var муром = {};
  8. var murom = муром;
  9. муром.модули = [
  10. [
  11. "муром.загрузка_1.0.0",
  12. "LyoKICogTk9URSBPbmx5IEFTQ0lJIGlzIGFsbG93ZWQgaW4gdGhpcyBsb2FkaW5nIG1vZHVsZQogKiBOT1RFIGJlY2F1c2UgaXQncyBkZWNpcGhlcmVkIHdpdGggYnRvYSgpIGNhbGwsCiAqIE5PVEUgd2hpY2ggY2FuJ3QgaGFuZGxlIFVuaWNvZGUuCiAqIE5PVEUgSG93ZXZlciwgbXVyb20uYXRvYi9idG9hIGZ1bmN0aW9ucyAoZGVmaW5lZCBoZXJlKQogKiBOT1RFIHdvcmsgZmluZSB3aXRoIFVuaWNvZGUsIHNvIHlvdSBhcmUgZnJlZQogKiBOT1RFIHRvIHVzZSBVbmljb2RlIGluIG90aGVyIG1vZHVsZXMKICovCgptdXJvbS5pbnN0YWxsTG9jYWxGb3JhZ2UgPSBmdW5jdGlvbigpCnsKLyoKICAgIGxvY2FsRm9yYWdlIC0tIE9mZmxpbmUgU3RvcmFnZSwgSW1wcm92ZWQKICAgIFZlcnNpb24gMS43LjMKICAgIGh0dHBzOi8vbG9jYWxmb3JhZ2UuZ2l0aHViLmlvL2xvY2FsRm9yYWdlCiAgICAoYykgMjAxMy0yMDE3IE1vemlsbGEsIEFwYWNoZSBMaWNlbnNlIDIuMAoqLwohZnVuY3Rpb24oYSl7aWYoIm9iamVjdCI9PXR5cGVvZiBleHBvcnRzJiYidW5kZWZpbmVkIiE9dHlwZW9mIG1vZHVsZSltb2R1bGUuZXhwb3J0cz1hKCk7ZWxzZSBpZigiZnVuY3Rpb24iP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cm4oIlNraXAgbG9hZGluZyAnIiArIG5hbWUgKyAiJyBtb2R1bGUgYmVjYXVzZSBpdCdzIHR1cm5lZCBvZmYiKTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgIHsKICAgICAgICAgICAgdHJ5CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGV2YWwoY29kZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgY2F0Y2ggKGUpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoIkNvdWxkIG5vdCBsb2FkICciICsgbmFtZSArICInIG1vZHVsZTogJyIgKyBlICsgIiciKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KICAgIAogICAgbXVyb20uc3RhcnQoKTsKfTsKCm11cm9tLmxvYWRJbmRleGVkREJNb2R1bGVzID0gZnVuY3Rpb24oY29tcGxldGlvbkhhbmRsZXIpCnsKICAgIC8vIFNlZSBpZiBJbmRleGVkREIgaGFzIG1vZHVsZXMuCiAgICAvLyBJbmRleGVkREIgbW9kdWxlcyBvdmVycmlkZSB0aG9zZSBjb21pbmcgZnJvbSBIVE1MLgogICAgbG9jYWxmb3JhZ2UuY29uZmlnKHsgbmFtZTogIm11cm9tIiB9KTsKICAgIGxvY2FsZm9yYWdlLmdldEl0ZW0oIm1vZHVsZXMiLCBmdW5jdGlvbihlcnJvciwgbW9kdWxlcykgewogICAgICAgIGlmIChtb2R1bGVzKQogICAgICAgIHsKICAgICAgICAgICAgbXVyb20ubW9kdWxlcyA9IG1vZHVsZXM7CiAgICAgICAgICAgIGNvbnNvbGUuZGVidWcoIk1vZHVsZXMgaGF2ZSBiZWVuIGxvYWRlZCBmcm9tIEluZGV4ZWREQiIpOwogICAgICAgIH0KICAgICAgICBpZiAoZXJyb3IpCiAgICAgICAgewogICAgICAgICAgICBjb25zb2xlLmVycm9yKCJDb3VsZCBub3QgZ2V0IG1vZHVsZXMgZnJvbSBJbmRleGVkREI6ICciICsgZXJyb3IgKyAiJyIpOwogICAgICAgIH0KICAgICAgICAvLyBDb250aW51ZS4KICAgICAgICBjb21wbGV0aW9uSGFuZGxlcigpOwogICAgfSk7Cn07CgptdXJvbS5pbnN0YWxsTG9jYWxGb3JhZ2UoKTsKbXVyb20uaW5zdGFsbFVuaWNvZGVCYXNlNjQoKTsKLy8gSW5kZXhlZERCIG1vZHVsZXMgb3ZlcnJpZGUgSFRNTCBvbmVzLgptdXJvbS5sb2FkSW5kZXhlZERCTW9kdWxlcyhtdXJvbS5sb2FkTW9kdWxlcyk7Cg==",
  13. {}
  14. ],
  15. [
  16. "муром.файл_1.0.0",
  17. "0LzRg9GA0L7QvC7RhNCw0LnQuyA9IHt9OwrQvNGD0YDQvtC8LtGE0LDQudC7LtC90LDRh9Cw0LvQviA9CmAKPCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDxib2R5PgogICAgICAgIDxzY3JpcHQ+CnZhciDQvNGD0YDQvtC8ID0ge307CnZhciBtdXJvbSA9INC80YPRgNC+0Lw7CtC80YPRgNC+0Lwu0LzQvtC00YPQu9C4ID0gWwpgOwrQvNGD0YDQvtC8LtGE0LDQudC7LtC60L7QvdC10YYgPQpgCl07CgpPYmplY3QuZGVmaW5lUHJvcGVydHkobXVyb20sICJtb2R1bGVzIiwgewogICAgZ2V0OiBmdW5jdGlvbigpCiAgICB7CiAgICAgICAgcmV0dXJuINC80YPRgNC+0Lwu0LzQvtC00YPQu9C4OwogICAgfSwKICAgIHNldDogZnVuY3Rpb24o0LfQvdCw0YfQtdC90LjRjykKICAgIHsKICAgICAgICDQvNGD0YDQvtC8LtC80L7QtNGD0LvQuCA9INC30L3QsNGH0LXQvdC40Y87CiAgICB9Cn0pOwoKdmFyINC30LDQs9GA0Y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ZGVmaW5lID0gYWNlLmRlZmluZTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgaWYgKCF3aW5kb3cuYWNlKQogICAgICAgICAgICAgICAgICAgICAgICB3aW5kb3cuYWNlID0gYTsKICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gYSkgaWYgKGEuaGFzT3duUHJvcGVydHkoa2V5KSkKICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LmFjZVtrZXldID0gYVtrZXldOwogICAgICAgICAgICAgICAgICAgIHdpbmRvdy5hY2VbImRlZmF1bHQiXSA9IHdpbmRvdy5hY2U7CiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBtb2R1bGUgPT0gIm9iamVjdCIgJiYgdHlwZW9mIGV4cG9ydHMgPT0gIm9iamVjdCIgJiYgbW9kdWxlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gd2luZG93LmFjZTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSkoKTsKfTsKCtC80YPRgNC+0Lwu0LfQsNCz0YDRg9C30LjRgtGM0KDQtdC20LjQvEFDRUpTID0gZnVuY3Rpb24oKQp7CiAgICAvLyDQoNC10LbQuNC8IEphdmFTY3JpcHQg0LTQu9GPIEFDRS4KICAgIC8vIGh0dHBzOi8vZ2l0aHViLmNvbS9hamF4b3JnL2FjZS1idWlsZHMvYmxvYi9tYXN0ZXIvc3JjLW1pbi1ub2NvbmZsaWN0L21vZGUtamF2YXNjcmlwdC5qcwphY2UuZGVmaW5lKCJhY2UvbW9kZS9kb2NfY29tbWVudF9oaWdobGlnaHRfcnVsZXMiLFsicmVxdWlyZSIsImV4cG9ydHMiLCJtb2R1bGUiLCJhY2UvbGliL29vcCIsImFjZS9tb2RlL3RleHRfaGlnaGxpZ2h0X3J1bGVzIl0sZnVuY3Rpb24oZSx0LG4peyJ1c2Ugc3Rya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A0LDQvdC40YLRjC5kaXNhYmxlZCA9IHRydWU7CiAgICAgICAgbG9jYWxmb3JhZ2Uuc2V0SXRlbSgibW9kdWxlcyIsINC80YPRgNC+0Lwu0LzQvtC00YPQu9C4LCBmdW5jdGlvbijQvtGI0LjQsdC60LAsINC30L3QsNGH0LXQvdC40LUpewogICAgICAgICAgICDQv9GDLtC60L3QvtC/0LrQsNCh0L7RhdGA0LDQvdC40YLRjC5kaXNhYmxlZCA9IGZhbHNlOwogICAgICAgICAgICBpZiAo0L7RiNC40LHQutCwKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKCLQndC1INGD0LTQsNC70L7RgdGMINGB0L7RhdGA0LDQvdC40YLRjCDQvNC+0LTRg9C70Lg6ICciICsg0L7RiNC40LHQutCwICsgIiciKTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgfQogICAg0L/Rgy7RgdC+0YXRgNCw0L3QuNGC0Ywu0L/QvtC00L/QuNGB0LDRgtGM0JzQvdC+0LPQvihbCiAgICAgICAg0YHQvtGF0YDQsNC90LjRgtGM0JLRi9Cx0YDQsNC90L3Ri9C50JzQvtC00YPQu9GMLAogICAgICAgINGB0L7RhdGA0LDQvdC40YLRjCwKICAgIF0pOwoKICAgIC8vIEhvdyB0byBjcmVhdGUgYSBmaWxlIGluIG1lbW9yeSBmb3IgdXNlciB0byBkb3dubG9hZCwgYnV0IG5vdCB0aHJvdWdoIHNlcnZlcj8KICAgIC8vIGh0dHBzOi8vc3RhY2tvdmVyZmxvdy5jb20vYS8xODE5NzM0MQogICAgZnVuY3Rpb24g0YHQutCw0YfQsNGC0YwoKQogICAgewogICAgICAgIHZhciDRgdC+0LTQtdGA0LbQuNC80L7QtSA9INC80YPRgNC+0Lwu0YTQsNC50Lsu0L3QsNGH0LDQu9C+OwogICAgICAgIGZvciAodmFyINC90L7QvNC10YAgaW4g0LzRg9GA0L7QvC7QvNC+0LTRg9C70LgpCiAgICAgICAgewogICAgICAg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HRi9C70YwpOwogICAgICAgINGB0YHRi9C70YwuY2xpY2soKTsKICAgICAgICBkb2N1bWVudC5ib2R5LnJlbW92ZUNoaWxkKNGB0YHRi9C70YwpOwogICAgfQogICAg0L/Rgy7RgdC60LDRh9Cw0YLRjC7Qv9C+0LTQv9C40YHQsNGC0Ywo0YHQutCw0YfQsNGC0YwpOwoKICAgIC8vINCf0YDQuCDQt9Cw0L/Rg9GB0LrQtS4KICAgINGB0L/QuNGB0L7Qui7QstGL0LHRgNCw0YLRjCgwKTsKfQoKLyoKICoKICog0J/Rg9GB0LoKICoKICovCgppZiAod2luZG93LmxvY2F0aW9uLnNlYXJjaCA9PSAiPzAiKQp7CiAgICBjb25zb2xlLmRlYnVnKCLQl9Cw0L/Rg9GB0Log0L/QsNC90LXQu9C4INGD0L/RgNCw0LLQu9C10L3QuNGPIik7CiAgICDQt9Cw0LTQsNGC0YzQktC90LXRiNC90LjQudCS0LjQtCgpOwogICAg0LfQsNC/0YPRgdGC0LjRgtGM0J/QoygpOwogICAgY29uc29sZS5kZWJ1Zygi0J/QsNC90LXQu9GMINGD0L/RgNCw0LLQu9C10L3QuNGPINC30LDQv9GD0YnQtdC90LAiKQp9",
  38. {"status":true}
  39. ],
  40. ];
  41. Object.defineProperty(murom, "modules", {
  42. get: function()
  43. {
  44. return муром.модули;
  45. },
  46. set: function(значения)
  47. {
  48. муром.модули = значения;
  49. }
  50. });
  51. var загрузочныйМодуль = муром.модули[0];
  52. var код = atob(загрузочныйМодуль[1]);
  53. eval(код);
  54. </script>
  55. </body>
  56. </html>