democratizedspace / dspace

Free, open source space exploration idle game. Build your home base on earth, gather resources, and launch into orbit.
https://democratized.space
BSD Zero Clause License
3 stars 2 forks source link

Less brittle process/progressbar system #37

Open futuroptimist opened 1 year ago

futuroptimist commented 1 year ago

gameState.js is kind of spaghetti code at this point and difficult to edit with GPT-4 due to its size. Need to extract each category of gameState.js (processes, inventory, quests) into separate files and extract everything else into something like utils/gameState/common.js. Once that's done, we can start revamping individual systems.

Also, there's a regression with progress bars that I'm still root causing. As a followup AI we need to either make sure it's properly unit tested, or probe it with a headless browser and alert on regressions. The latter sounds more valuable overall as we could reuse that architecture for other parts of the game.