Project Got Bloated
Its been a long while since my last update. I increased the number of resources to 433 resources and 11 projects so far so good. However this drastically slowed down the game and had a memory leak. This resulted in a complete rewrite on how the code behaves and now the game is finally working again.
Previously,
1. When I switched pages i cleared and regenerated the html code.
2. When I added a resource i regenerated the html.
3. Also i regularly retrieved elements to do this.
Now,
1. I generate all pages and resources once at the start.
2. I cache most elements which allows for faster updates.
3.The prestige mechanism performs a page reload helping prevent memory leaks.
The current state of the game is nearly feature complete. I need to add a better Help document, some more projects, and more resources getting closer to my 900 maximum.