It’s actually only one gnome. When you click on him while there are still any empty unrevealed squares, he’ll teleport away to one of them. Once there are no more such squares, you actually catch him and get his 10 XP.
josephcsible
Recent community posts
The problem is that gamelib.js calls the getImageData() method on a canvas that has data loaded from an external image file, which falls afoul of https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData#exceptions and https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Same-origin_policy#file_origins when the game is running from a file:/// URL. To work around this, either set up a local Web server and then run the game through localhost, or go into gamelib.js and replace this block of code:
let r = (colorMultiplier >> 16 & 0xff)/0xff;
let g = (colorMultiplier >> 8 & 0xff)/0xff;
let b = (colorMultiplier >> 0 & 0xff)/0xff;
let imgData = ctx.getImageData(0, 0, cellw, cellh);
for(let i = 0; i < imgData.data.length; i += 4)
{
imgData.data[i + 0] *= r;
imgData.data[i + 1] *= g;
imgData.data[i + 2] *= b;
}
ctx.putImageData(imgData, 0, 0);
With this one:
ctx.fillStyle = "#" + colorMultiplier.toString(16).padStart(6, '0');
ctx.globalCompositeOperation = "multiply";
ctx.fillRect(0, 0, frame.rect.w, frame.rect.h);
ctx.fillStyle = "black";
ctx.globalCompositeOperation = "destination-atop";
ctx.drawImage(img, frame.rect.x, frame.rect.y, frame.rect.w, frame.rect.h, 0, 0, frame.rect.w, frame.rect.h);
ctx.globalCompositeOperation = "source-over";
I ran into a soft lock bug on Patters Hill. On day 5, there were five people left alive, and on night 6, three of them died, leaving only two alive (both Soldier claims) on day 6. At this point, I just kept getting offered the “Go to sleep” button over and over again, without anyone else ever dying and without me ever getting a chance to shoot. I kept clicking it until Night 21 before I gave up.
I got a game that didn't have a unique solution. The Five of Spades was the victim, and here's what the rest of the cards said:
- Four of Clubs: There is no card above me. The figure of the card below me was diamond.
- Three of Diamonds: The value of the card above me was higher. The figure of the card below me was heart.
- Eight of Hearts: The value of the card above me was lower. The figure of the card below me was spade.
- Jack of Spades: The value of the card above me was lower. The figure of the card below me was diamond.
- Queen of Diamonds: The value of the card above me was lower. There is no card below me.