'onCollision': function (player) {
player.killedBy(map.placePlayer());
}
'onCollision': function (player) {
player.killedBy(none);
}
// Assumes you'll need to go down
'onCollision': function (player) {
player.killedBy(map.placeObject(0, player.getY(), 'empty'));
}
// Simply throw exception
'onCollision': function (player) {
player.killedBy((function() {throw 666;})());
}
// Shortest possible response - throws "undefined" error.
'onCollision': function (player) {
player.killedBy(a);
}
'onCollision': function (player) {
player.killedBy();},'type':'item',a:function(){return (0);
}
'onCollision': function (player) {
player.killedBy();},'onCollision': function (player){//);
}