fix spawn and better match hitbox to player sprite
This commit is contained in:
parent
414006b667
commit
7e75b665f5
6 changed files with 42 additions and 23 deletions
|
|
@ -76,7 +76,7 @@
|
|||
:objects
|
||||
(let [objects (:content (first (filter #(= (get-in % [:attrs :name]) "objects") (:content map-tmx))))]
|
||||
(vec (map (fn [obj]
|
||||
(let [attrs (dissoc (:attrs obj) :id)
|
||||
(let [attrs (assoc (:attrs obj) :x (Double. (get-in obj [:attrs :x])) :y (Double. (get-in obj [:attrs :y])))
|
||||
tags (flatten (map :content (:content obj)))
|
||||
properties (map #(hash-map (keyword (get-in % [:attrs :name])) (get-in % [:attrs :value])) tags)]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue