3 ms·
You should reinit the map though, otherwise doing this on level 2 causes funny bugs (and makes the game rather easy ;) maze.create = function() {}; var
by th0br0 13y ago
You should reinit the map though, otherwise doing this on level 2 causes funny bugs (and makes the game rather easy ;)
maze.create = function() {};
var tmp = map.placeObject;
map.placeObject = function(x, y, t) {
if(t == 'exit') tmp(x,y,t);
};
- untitaker_ 13y agolevel 2 can be solved by using the two "unlocked" lines to comment out the whole maze.create call, too.
- maaaats 13y agoThat's kinda the point, though. Read the comments for that file. ;)
- mt3ck 13y agothanks for the help ;)
- randunel 13y agoyou don't need 2 lines, you only need the one below to overwrite the map function, and leave an open dot :D map.placeObject(7,4,'exit');var a = {map: {placeObject:function(){}}};a.
- zenojevski 13y agoRelated: things like these do not work, because of implementation. if (false) // <- inserted by me for (var ...) { // <- existing code ...code... } Too bad, because extra `for`s could be fun...
- alnis 13y agoIf you reload the game, the map should now re-init on every level. PS. I'm really enjoying all the creative solutions you guys are coming up with!