RGB MATCH: timer and score
Considering layout:
Sorting out a way to keep keep track of score:
Setting up the Timer:
At first I thought I’d use p5.js to do this:
But then I found a fairly simple method using plain javascript… which gave me a bit more control and kept keeping time out of my draw() loop:
piecing it all together…
Restarting the timer:
Hours later things seems to mostly be in order:
Something is glitchy about the timer after it restarts so I need to spend more time pinpointing what’s going on. Also I need to be able to pause the game/timer of the user visits the home screen. Or maybe quit the game? Any advice is appreciated.
No Comments