V 0.2 - Added functions and menus to save and load games!
A lot of work has gone into the menu in recent weeks. The latest addition was saving to a .json file and reading the data.
I chose .json because it's an easy to read format and can store data much the same format as a dictionary in Godot. Will the player be able to easily edit their saves and cheat? Yes, but that's part of the fun, isn't it?! The game will be neither online nor competitive, so that shouldn't matter.
For now the saved game files store the last scene (level) that the player was in, their current and max health, and which spears they have unlocked. I'll need to add more data to them for quests completed, items picked up etc. but I can add that as I go along.
The menu updates the scene dynamically as the player moves the mouse or changes the focus of the saved game slot buttons. Different spears appear on the weapon rack on the left and health is displayed on the obelisk on the right.
Necessary additions:
Warn the player before overwriting a save and require confirmation (perhaps through a popup dialogue box)
More work on the backend to check that saved game files are valid and won't cause the game to crash during play.
The ability to delete saves (although isn't entirely necessary since saves can be overwritten anyway)
Other ideas under consideration:
Save the current biome and dynamically change the tileset in the menu to display the player's current location in the game world.
Save the play time and display that, providing more information about the progress of each save slot.
Files
Get Project Zero: Solastalgia
Project Zero: Solastalgia
A 2D action platformer made with Godot. Set off on a journey to save your world. It's an early work in progress!
Status | In development |
Author | Kanti1984 |
Genre | Platformer, Adventure |
Tags | 2D, Godot, overworld, Pixel Art |
More posts
- V 0.1 - 14/01/2021Jan 13, 2021
Leave a comment
Log in with itch.io to leave a comment.