continueable quest.
This commit is contained in:
@@ -224,7 +224,7 @@
|
||||
(if (= 3 (get-in @entities [:state :mints-eaten]))
|
||||
(do (actions/walk-to entities :ego [159 62] :face :right)
|
||||
|
||||
#_(actions/update-state entities (fn [s] (assoc s :mints-eaten 0))
|
||||
#_(actions/update-state entities (fn [s] (assoc s :mints-eaten 0)))
|
||||
(actions/do-dialogue entities
|
||||
:ego "She's all out."
|
||||
:shopkeep "That's right I'm all out."
|
||||
|
||||
@@ -66,6 +66,11 @@
|
||||
(texture! flipped :flip true false)
|
||||
flipped))
|
||||
|
||||
(defn quest-label []
|
||||
(if (:seen-intro? (scene/get-state))
|
||||
"Continue quest"
|
||||
"Begin quest"))
|
||||
|
||||
(defscreen title-screen
|
||||
:on-show
|
||||
(fn [screen entities]
|
||||
@@ -73,7 +78,7 @@
|
||||
(utils/setup-viewport screen 1280 960)
|
||||
(utils/load-settings!)
|
||||
(let [font (utils/get-font "ego/font.fnt")
|
||||
start-playing (assoc (label "Begin quest" (style :label font (color 0.6 1.0 1.0 1.0))) :x 0 :y 280 :height 32 :origin-x 0 :origin-y 0)
|
||||
start-playing (assoc (label (quest-label) (style :label font (color 0.6 1.0 1.0 1.0))) :x 0 :y 280 :height 32 :origin-x 0 :origin-y 0)
|
||||
start-playing (center start-playing)
|
||||
copyright (assoc (label "DEMO - Copyright Bryce Covert - Not for distribution" (style :label font (color 0.6 1.0 1.0 1.0))) :x 0 :y 0 :height 32 :origin-x 0 :origin-y 0)
|
||||
copyright (center copyright)
|
||||
|
||||
Reference in New Issue
Block a user