MrLLM@ani.socialtoProgramming@programming.dev•"Goldmine" - an idle game in 200 lines of pure JavaScriptEnglish
4·
4 months agoMore cheat codes for console
Instant travel speed for the lift
lift.y = 0; lift.speed = 30;
Allow up to 100 workers on the first floor
shafts[0].max_workers = 100;
Allow up to 10 workers per shaft
for (let i = 1; i < max_shafts; i++) shafts[i].max_workers = 10;
Despawn all workers
shafts.forEach((shaft) => { shaft.workers = []; });
Accelerate the game x10 (this might be more power hungry)
Array.from(Array(10)).forEach(() => animate());
Get paid $10 for hiring a worker (you pay $5 and receive $10)
shafts.forEach((shaft) => shaft.workers.push = function () { score += 10; return Array.prototype.push.apply(this, arguments); });
Cool game OP :)
I hope they don’t start using ML or my name, otherwise I’ll be ruined.