comparison tools/simulate.js @ 27:75deda08db90 0.9.1

game debug functions separated into own file; release build option, distribution script
author ark
date 2026-10-20 17:19 +0200
parents 2f555a54c332
children a464bd43b76c
comparison
equal deleted inserted replaced
26:28e1fc486be5 27:75deda08db90
92 }); 92 });
93 files.forEach(function (f, i) { 93 files.forEach(function (f, i) {
94 vm.runInThisContext(fs.readFileSync(f, "utf8"), { filename: f }); 94 vm.runInThisContext(fs.readFileSync(f, "utf8"), { filename: f });
95 if (i === files.length - 1) countMelee(); 95 if (i === files.length - 1) countMelee();
96 if (i === 1) { 96 if (i === 1) {
97 var cfg = MM.config;
98 // debug switches off, whatever the config says
99 cfg.debug.start_coins = -1;
100 cfg.debug.unlimited_coins = false;
101 cfg.debug.no_heart_loss = false;
102 cfg.debug.extra_speeds = [];
103 if (waves) { 97 if (waves) {
104 Object.keys(waves).forEach(function (m) { cfg.maps[m].waves = waves[m]; }); 98 Object.keys(waves).forEach(function (m) { MM.config.maps[m].waves = waves[m]; });
105 } 99 }
106 MM.audio = { play: function () {} }; 100 MM.audio = { play: function () {} };
107 } 101 }
108 }); 102 });
109 } 103 }