andymaul123 / pca-engine

Learning htmx and servers
0 stars 0 forks source link

Feature: Saving/Loading Game State #17

Closed andymaul123 closed 4 months ago

andymaul123 commented 4 months ago

Description

The player can now save and load their game! :tada:

When a player is in-game, they can click the Save Game button from the Main Menu. This will serialize the game state into JSON and save as a .txt file to a saves directory. From the Title Screen, selecting Load Game will put them right back where they left off.

This addresses Issue #10.

I hunted around for as many bugs as possible, but I'm sure there will be more found in the future.

Code Changes