Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Untrusted, a JavaScript adventure game you play by modifying its source. Parent comment
Okay, I think I've replicated it. I just overrode onCollision with empty braces, so the final definition looked like this:
map.defineObject('attackDrone', { 'type': 'dynamic', 'symbol': 'd', 'color': 'red', 'onCollision': function (player) { player.killedBy('an attack drone'); }, 'behavior': function (me) { }, 'onCollision': function (player) { } });
There are no comments on this comment yet.
Okay, I think I've replicated it. I just overrode onCollision with empty braces, so the final definition looked like this:
Note that you're closing the game's braces, inserting another definition, then re-opening braces to match the game's closing ones.