МУРОМ является долговечным игровым редактором, работающим в браузере | 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.

02.loader.js 465B

1234567891011121314151617181920212223
  1. function Murom()
  2. {
  3. }
  4. Murom.prototype.loadModules = function()
  5. {
  6. // Skip `0` module because it's us.
  7. for (var i = 1; i < MM.length; ++i)
  8. {
  9. var module = MM[i];
  10. var name = module[0];
  11. var code = atob(module[1]);
  12. try
  13. {
  14. eval(code);
  15. }
  16. catch (e)
  17. {
  18. console.error("Could not load '" + name + "' module: '" + e + "'");
  19. }
  20. }
  21. };
  22. var M = new Murom();
  23. M.loadModules();