updates for android.
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
[com.google.android.gms/play-services-games "11.6.2" :extension "aar" :exclusions [com.android.support/support-annotations]]
|
||||
[com.google.android.gms/play-services-auth "11.6.2" :extension "aar" :exclusions [com.android.support/support-annotations]]
|
||||
[com.google.android.gms/play-services-tasks-license "11.6.2" :extension "aar" :exclusions [com.android.support/support-annotations]]
|
||||
[com.google.android.gms/play-services-auth-api-phone-license "11.6.2" :extension "aar" :exclusions [com.android.support/support-annotations]]
|
||||
#_[com.google.android.gms/play-services "11.6.2" :extension "aar" :exclusions [com.android.support/support-annotations]]
|
||||
|
||||
[org.clojure/tools.logging "0.3.1" :exclusions [org.clojure/clojure]]
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 524 B |
@@ -1 +1 @@
|
||||
9
|
||||
10
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 897 KiB After Width: | Height: | Size: 898 KiB |
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -67,6 +67,19 @@ public class GameCenter {
|
||||
});
|
||||
}
|
||||
|
||||
public void show(final UIViewController d) {
|
||||
GKGameCenterViewController controller= new GKGameCenterViewController();
|
||||
controller.setGameCenterDelegate(new GKGameCenterControllerDelegateAdapter() {
|
||||
@Override
|
||||
public void didFinish(GKGameCenterViewController g) {
|
||||
d.dismissViewController(true, null);
|
||||
System.out.println("achievements done");
|
||||
}
|
||||
});
|
||||
System.out.println("showing achievements");
|
||||
d.presentViewController(controller, true, null);
|
||||
}
|
||||
|
||||
/** Report an achievement completed (100 as percentComplete)
|
||||
*
|
||||
* @param identifier */
|
||||
|
||||
Reference in New Issue
Block a user