diff --git a/resources/public/index.html b/resources/public/index.html index 18ab5bc..5278ef8 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -50,7 +50,7 @@ body { Gravity - + press <space> to start diff --git a/src/cljs/frpong/core.cljs b/src/cljs/frpong/core.cljs index 4c0c363..e1d4d0a 100644 --- a/src/cljs/frpong/core.cljs +++ b/src/cljs/frpong/core.cljs @@ -311,9 +311,11 @@ score-el (dom/by-id "score") lpaddle-el (dom/by-id "lpaddle") rpaddle-el (dom/by-id "rpaddle") - fps-el (dom/by-id "fps")] + fps-el (dom/by-id "fps") + title-el (dom/by-id "title")] (dom/set-style! ball-el "fill" "orange") (dom/set-text! state-el "") + (dom/set-text! title-el "Gravity Pong!") (go (loop [fps-p nil score-p nil] (let [fps (int (/ 1000 ( to restart") + (dom/set-text! title-el "GAME OVER") (start-on-space))) (recur fps score))))))