added second walkbehind.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -81,7 +81,8 @@
|
|||||||
(let [
|
(let [
|
||||||
_ (input! :set-cursor-image (cursor "cursor.png" 0) 0 0)
|
_ (input! :set-cursor-image (cursor "cursor.png" 0) 0 0)
|
||||||
background (texture "bg5.png")
|
background (texture "bg5.png")
|
||||||
house (texture "house.png")]
|
house (texture "house.png")
|
||||||
|
overdirt (texture "overdirt.png")]
|
||||||
{:cursor {:id "cursor" :cursor-index 0}
|
{:cursor {:id "cursor" :cursor-index 0}
|
||||||
:background (assoc background
|
:background (assoc background
|
||||||
:id "background" :x 0 :y 0
|
:id "background" :x 0 :y 0
|
||||||
@@ -90,12 +91,17 @@
|
|||||||
:house (assoc house
|
:house (assoc house
|
||||||
:x 0 :y 0
|
:x 0 :y 0
|
||||||
:baseline 122)
|
:baseline 122)
|
||||||
:ego (get-ego screen)}))
|
:overdirt (assoc overdirt
|
||||||
|
:x 0 :y 0
|
||||||
|
:baseline 240)
|
||||||
|
:ego (get-ego screen)
|
||||||
|
:fps (assoc (label "0" (color :white) ) :x 5 :baseline 9000)}))
|
||||||
|
|
||||||
:on-render
|
:on-render
|
||||||
(fn [screen [entities]]
|
(fn [screen [entities]]
|
||||||
(clear!)
|
(clear!)
|
||||||
(let [entities (assoc entities :ego (update-ego screen entities (:ego entities)))]
|
(let [entities (assoc entities :ego (update-ego screen entities (:ego entities)))
|
||||||
|
_ (label! (:fps entities) :set-text (str (game :fps)))]
|
||||||
(render! screen (sort-by :baseline (vals entities)))
|
(render! screen (sort-by :baseline (vals entities)))
|
||||||
entities))
|
entities))
|
||||||
:on-resize (fn [screen entities]
|
:on-resize (fn [screen entities]
|
||||||
|
|||||||
Reference in New Issue
Block a user