pastthepixels / InfiniteShooter

A simplistic shooter made with the Godot engine.
https://pastthepixels.itch.io/infiniteshooter
GNU General Public License v3.0
18 stars 3 forks source link

Feature request: Add the ability to save and load games #15

Closed pastthepixels closed 1 year ago

pastthepixels commented 2 years ago

So. InfiniteShooter is designed to be a quick game, or at least a game that can last as long as you want it to, while being a rougelike of sorts in the sense that when you die you have to start all over again. The problem with this, however, is that this means each "session" of the game you have ends when you die. What if you only had 10 minutes of spare time, but it's been half an hour now and you still haven't died? This is why I'm thinking of including saves for InfiniteShooter. With this, you should be able to save your game after the ten minutes and come back to it another day. However, this can lead to cheating the rouge-like-ness of the game by just reloading your last save when you die. Therefore, I suggest that saves:

pastthepixels commented 2 years ago

New idea: Instead of having a "quit" button in-game, InfiniteShooter could have it save and quit and I could add a "continue game" button and "new game" button in place of the current start button in the main menu.

pastthepixels commented 1 year ago

Another possibility: There could be a fixed number of saves (e.g. 4), one for each run. Once you die, a save slot is cleared, but you can also choose to delete slots if you want to.

pastthepixels commented 1 year ago

Update: I got a working prototype for what the GUI of the save/load screen. Here's what it looks like right now: image

pastthepixels commented 1 year ago

Update: I finished writing code to add saves to the game (under JSON files so you can cheat edit them for debugging purposes) and after a while of testing everything seems to be working fine. As always I'll wait a bit to see if any errors come up then I'll merge it into feature-additions.