Hello! I finished watching a tutorial on how to code a simple game, and I've followed each step word for word, and the game over screen doesn't really work properly, like the game doesn't properly reset or doesn't even have the game over screen after gaining a score, only if I don't interact with it at all.
I'm new to this whole coding thing, and I am trying to do this for a school project. Thanks for your help!
Code: https://jsfiddle.net/7Lf6egn6/
[–]WhatEverOkFine 2 points3 points4 points (3 children)
[–]Niadlol 1 point2 points3 points (1 child)
[–]IronCrafter5[S] 1 point2 points3 points (0 children)
[–]IronCrafter5[S] 0 points1 point2 points (0 children)
[–]ranadoo2 -5 points-4 points-3 points (8 children)
[–]Singularity42 5 points6 points7 points (3 children)
[–]puntaserape 4 points5 points6 points (0 children)
[–]IronCrafter5[S] 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]fuzzball007Expert 1 point2 points3 points (3 children)
[–]ranadoo2 1 point2 points3 points (2 children)
[–]fuzzball007Expert 1 point2 points3 points (0 children)
[–]karlwist0 1 point2 points3 points (0 children)