updates for android.

This commit is contained in:
Bryce Covert
2018-02-17 09:09:33 -08:00
parent 8e49a72350
commit 477d3eeeab
8 changed files with 33 additions and 5 deletions

View File

@@ -3,7 +3,18 @@
(:require [advent.steam :as steam]
[advent.utils :as utils]))
(def android-ids {"DESTINY" "CgkIwc6UgfgZEAIQAQ"})
(def android-ids {"DESTINY" "CgkIwc6UgfgZEAIQAQ"
"PARDON" "CgkIwc6UgfgZEAIQBw"
"EX_CON" "CgkIwc6UgfgZEAIQBg"
"PRO_WRESTLER" "CgkIwc6UgfgZEAIQBA"
"SHEEP_HORDER" "CgkIwc6UgfgZEAIQAw"
"SAFE_AND_SOUND" "CgkIwc6UgfgZEAIQAg"
"FOOLISH_LULLABY" "CgkIwc6UgfgZEAIQCQ"
"WISE_UP" "CgkIwc6UgfgZEAIQDA"
"TONGUESBANE" "CgkIwc6UgfgZEAIQCA"
"KITTY_KISS" "CgkIwc6UgfgZEAIQBQ"
"BEHOLDER" "CgkIwc6UgfgZEAIQCg"
"MOUTH_DIVER" "CgkIwc6UgfgZEAIQCw"})
(defn set-achievement [achievement]
(utils/platformify

View File

@@ -178,7 +178,7 @@
:interactions {}
:layers [(assoc (utils/atlas->texture atlas "background") :x 0 :y 0 :baseline 0 :scale-x 1 :scale-y 1)]
:update-fn trigger-tongue
:ego-hearts 2
:ego-hearts 5
:tongue-hearts 5
:sounds {:swoosh (utils/load-sound "tongue-fight/swoosh.ogg")
:big-swoosh (utils/load-sound "tongue-fight/big-swoosh.ogg")

View File

@@ -448,7 +448,7 @@
(utils/play-music (:music %)) %)
:ease tween/ease-in-quadratic)}}
entities (utils/platformify
(dissoc entities :google-play)
entities
entities
(dissoc entities :google-play))]
(println "after load" (.getDiagnostics @(resolve 'advent.core/am)))
@@ -552,7 +552,9 @@
(= :google-play actor-key)
(utils/platformify
entities
(do
(.show (advent.core.GameCenter.) (.getUIViewController (Gdx/app)))
entities)
(do
(.showAchievements (advent.core.GooglePlay.) (Gdx/app))
entities)