From a7683b519e05d62b0bd5a67494d72b8448ac7f1d Mon Sep 17 00:00:00 2001 From: Tom Tibble Date: Sat, 4 Apr 2020 16:58:20 -0500 Subject: [PATCH] refactored, reorganized, and state change to loop back to beginning after race. --- .idea/workspace.xml | 352 +++++++++++++++++---------------------- audio.js | 2 +- background.js | 40 +++-- foreground_drawing.js | 38 +++++ game.js | 157 ++++++++--------- index.html | 34 ++-- resources/horse_array.js | 19 +++ 7 files changed, 324 insertions(+), 318 deletions(-) create mode 100644 foreground_drawing.js create mode 100644 resources/horse_array.js diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cb6e330..31a3513 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,82 +2,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - - - + + + + + + + - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - + - - + + @@ -93,23 +119,6 @@ - shadow - swaypatter - math. - random - var - play - startcountdown - changeposition - runrace - countdown - horse_image_ar - drawracebackground - inithorses - horse_Array - line - finished - drawcountdown coun horseheigh ctx. @@ -123,6 +132,23 @@ draw draw horses final results + start + star + drawrace + drawracebac + runra + seconds + drawstar + BG_CTXdraw + drawStar + drawSta + SECONDS + drawracebackg + cyclesremainign + handler + inithorses + restarting + coundown cyclesRemaining @@ -137,9 +163,13 @@ @@ -150,14 +180,10 @@ true DEFINITION_ORDER - - - - -