haxegon / zeedonk

Haxegon + Puzzlescript = Zeedonk!
http://www.zeedonk.net
12 stars 2 forks source link

can permanently clobber built in functions #166

Closed increpare closed 9 years ago

increpare commented 9 years ago

if you type

Game.background=null;

the Game.background can't be called until you reload the browser session.

try running this and uncommenting/commenting the null line to test

function new() {
  Game.background(Col.BLACK);
// Game.background=null;
  Game.background(Col.WHITE);
}

function update() {
}   

should probably reset/reregister all the builtin functions when things are recompiled

TerryCavanagh commented 9 years ago

Ok, I changed things so that the entire system is set up again when you reload!