this post was submitted on 03 Aug 2024
43 points (100.0% liked)

Programming

17313 readers
208 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 3 months ago (2 children)

cheat codes for console

Infinite wealth

score = 100_000_000_000;

Open all shafts

shaftsOpen = 10;

Add 1 worker to all shafts

Array(shaftsOpen).fill(0).map((_, i) => (shafts[i].workers.push(new Worker())));

[–] [email protected] 10 points 3 months ago (1 children)

It takes like 5 minutes to beat...

[–] [email protected] 13 points 3 months ago (1 children)

but do you have zombie mode?

zombie mode

spritesheetImg.src="https://i.imgur.com/Frt8JKU.png"

[–] [email protected] 12 points 3 months ago

i'm relieved to see that zombies are willing to perform the same slave labor as humans :-)

[–] [email protected] 4 points 3 months ago* (last edited 3 months ago) (1 children)

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 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 :)

[–] [email protected] 1 points 3 months ago