Can anyone make a functioning restart button for my platformer game: Shadow Runner
Also, comment the code below so I can use it
PattanAhmed
@HenryMusic Hi,
Restarting a Python Script Within Itself by Petr Zemek.
That's it
Thanks!
Hope this helps
Coder100
that's python not HTML @PattanAhmed
PattanAhmed
@Coder100 Is he asking HTML
Any clue?
Coder100
hm true ig @PattanAhmed
PattanAhmed
@Coder100 I guessed it as Python...
Maybe you are True.
Who knows
Quarreling on this regard is something called MAD
LoL!
Coder100
Well you should comment your code
HenryMusic
@Coder100 it is html and script.js
Coder100
ok, do location.reload()
@HenryMusic
Generally for all languages, I would expect for you to put each section of your game into a function and have that function started for a restart button.
I can clarify this more if you tell me what language you are using and/or the repl.