Beginning to get IOS, Android, and Desktop all working at once. Re-enabling steam.
This commit is contained in:
@@ -33,7 +33,8 @@
|
||||
entity)
|
||||
|
||||
|
||||
(def ui-scale (Double/parseDouble (str (or (System/getProperty "ui_scale") 1.5))))
|
||||
|
||||
(def ui-scale (doto (Double/parseDouble (str (or (System/getProperty "ui_scale") 1.5))) (println "UI scale")))
|
||||
(def button-scale (+ 1 (* (- ui-scale 1.0) 2.0)))
|
||||
(def mobile? (= 1.5 ui-scale))
|
||||
(def max-zoom (if mobile? 0.5 0.75))
|
||||
@@ -306,8 +307,7 @@
|
||||
edn/read-string)))
|
||||
|
||||
(defn get-font [filename]
|
||||
(let [font (-> (bitmap-font filename)
|
||||
#_(doto (bitmap-font! :set-font-scale 0.5 0.5)))
|
||||
(let [font (-> (bitmap-font filename))
|
||||
tr (bitmap-font! font :get-region)
|
||||
tx (.getTexture tr)]
|
||||
(call! ^Texture tx :set-filter Texture$TextureFilter/Linear Texture$TextureFilter/Linear)
|
||||
|
||||
Reference in New Issue
Block a user