Closed pastthepixels closed 1 year ago
Update: Just fixed the bug and added a couple indicators of my changes in the GUI for the game. Usually I wait before merging feature requests to see if they're stable enough, but since this is a bug fix I can just merge this now. (Plus I've tested the game and everything works as expected.)
So as soon as I merged my code for saving games I noticed a bug with it :(
Describe the bug When you save a game, it saves certain variables from
Game.tscn
that are initially set when you set the difficulty of the game. Therefore it shouldn't be tampered with for the rest of the run... but you can actually save it and go to the main menu, change the difficulty of the game, and then mess up some values when you load the save. This can be especially apparent under the "carnage" difficulty where InfiniteShooter will then save the game with variables changed. So, for a game that was in Medium difficulty, you can exit and come back to it in carnage, but when you save that again it will save the number of enemies that should be on the screen at one time. So something in medium difficulty will perpetually be stuck on a harder one!To Reproduce Steps to reproduce the behavior:
Desktop: