Over half my code dissapearing

So I was developing a game
I took a break for the weekend
and when i came back over half the code disappeared and all of the assets were gone
is there a way to load a previous autosave?
The game is still there but not the code

There is no way to autosave unless you’ve either:

A) Saved your work via PNG before the code disappeared
B) Saved your work to a Github Repository
C) Saved your work by publishing it before the code disappeared and kept the link to the game

If you’ve done none of the above, then unfortunately you’ll have to restart your progress if you cannot recreate the lost code.