monica_b1998@programming.dev to Programming@programming.devEnglish · 3 months ago"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.meexternal-linkmessage-square13fedilinkarrow-up11arrow-down10cross-posted to: programming@programming.dev
arrow-up11arrow-down1external-link"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.memonica_b1998@programming.dev to Programming@programming.devEnglish · 3 months agomessage-square13fedilinkcross-posted to: programming@programming.dev
minus-squareMrLLM@ani.sociallinkfedilinkEnglisharrow-up0·3 months ago More 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 more power hungry) Array.from(Array(10)).forEach(() => animate()); Cool game OP :)
More 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
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 more power hungry)
Array.from(Array(10)).forEach(() => animate());
Cool game OP :)