Skip to content

Commit

Permalink
winscreen: without spoilers in the title
Browse files Browse the repository at this point in the history
  • Loading branch information
narimiran committed May 21, 2024
1 parent 354de48 commit 6ddc2e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/amaze/win_screen.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
state))


(defn- draw-title [{:keys [score]}]
(defn- draw-title [{:keys [score score-shown]}]
(q/text-size title-size)
(q/text-align :right)
(q/text-style :bold)
(let [txt (if (>= score 1000)
(let [txt (if (and (= score score-shown)
(>= score 1000))
"aMAZEing VICTORY"
"VICTORY")]
(q/text txt (- scene-width right-margin) (* 0.1 scene-height))))
Expand Down

0 comments on commit 6ddc2e9

Please sign in to comment.