TheHammerLukas / Snake_Game

C# WinForms Snake Game
0 stars 0 forks source link

Reset gameSprites #4

Closed TheHammerLukas closed 5 years ago

TheHammerLukas commented 5 years ago

Currently the image files get locked by the program. When GarbageCollector has run these files are freed again. Find a way to free the resources manually before resetting them.

Idea: Save the reset gameSprites as a .tmp file and rename them after closing the gameMenu

TheHammerLukas commented 5 years ago

Actual implementation: Game will prompt the user if he wants to continue resetting. If the user presses yes the application will restart and rename the .tmp files to the actual used files.