scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

Limit total game play timeto 800 moves - 1 working day #432

Closed scrom closed 8 years ago

scrom commented 8 years ago

Given the game says 'it's your firstday at work. Whilst the idea ofday, night and full week would still be cool, adding a 'what's the most you can achieve in 800 moves gives the game some more challenge andpurpose. I could even track high scores.. This also sets up for creating achain of 8 timer events - 1 per hour to enable switching off breakfast, lunch, afternoon juggling club etc. It'd also allow rebalancing of rest and hunger to match times of day. I'd probably add thirst in every 90 moves and movehunger to a longer cycle - rest should still e roughly hourly

scrom commented 8 years ago

breakfast needs to finish after 1 hour, lunch needs to start after a further 2 hours and finish 90 minutes later.

all the thirst/hunger rebalancing is now done! - so it's just the missions and ending the day after ~8 hours.

I'll probably put an "I need more time" easter egg in there that allows another 2 game hours though

scrom commented 8 years ago

the time limit and chain of missions should now be implemented (but need testing). The one area left to do is to resolve removal of more than 1 item from a location (removeObject in mission reward needs to support arrays - logged elsewhere) so that I can add a proper breakfast/lunch spread and then remove it all again if not used afterward.

There should probably also be a check that not too many food items are removed from the servery (I'm sure that can be tested for) - location.countItemsOfType("food") would be enough

scrom commented 8 years ago

done - modifying a location and removing specific objects if they exist works.