different credits based on situationn.

This commit is contained in:
Bryce Covert
2016-02-22 16:41:12 -08:00
parent 434a4bc469
commit 8c20ead7fc
2 changed files with 12 additions and 3 deletions

View File

@@ -27,8 +27,10 @@
"Jana Covert"]
["Motivational Tapes"
"Eriq Chang"]
["In Honor Of"
"Took, son of Luke, son of Puke (1125 - present)"]
["In Loving Memory Of"
"Took, son of Luke, son of Puke"]])
"Took, son of Luke, son of Puke (1125 - 1151)"]])
(defn get-role-style [entities opacity]
(style :label (:font entities) (color 1.0 1.0 1.0 opacity)))
@@ -64,6 +66,8 @@
:finish (fn [e] (assoc-in e [:tweens [:fade id :pause]] pause)))]
fade-in))
(def saved-took? (atom false))
(defn start-message-if-necessary [screen entities]
(if (and (not (get-in entities [:role]))
(= 0.0 (get-in entities [:fade :opacity])))
@@ -92,7 +96,11 @@
:opacity 0.0
:origin-x 0
:origin-y 0)
:remaining-messages credit-messages
:remaining-messages (filter (fn [[credit _]]
(if @saved-took?
(not= credit "In Loving Memory Of")
(not= credit "In Honor Of")))
credit-messages)
:the-end (assoc (utils/get-texture "the-end.png") :x 0 :y 0 :scale-x 4 :scale-y 4 :origin-x 0 :origin-y 0)
:tweens {:fade-in
(tween/tween :fade-in screen [:fade :opacity] 1.0 0.0 5.0 :ease tween/ease-out-cubic)}}))