IAPing.
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
[play-clj.math :refer :all]
|
||||
[play-clj.ui :refer :all]
|
||||
[play-clj.utils :refer :all]
|
||||
[play-clj.g2d :refer :all])
|
||||
[play-clj.g2d :refer :all]
|
||||
[advent.iap :as iap]
|
||||
[advent.ios :as ios])
|
||||
(:import [com.badlogic.gdx.graphics Color]
|
||||
[com.badlogic.gdx Application Gdx]))
|
||||
|
||||
@@ -378,15 +380,10 @@
|
||||
:label "Pit of destiny"
|
||||
:cursor :look
|
||||
:script (actions/get-script entities
|
||||
(println "billing purchased before" @@(resolve 'advent.core/has-purchased?))
|
||||
|
||||
(when-not @@(resolve 'advent.core/has-purchased?)
|
||||
(.triggerPurchase (Gdx/app))
|
||||
(a/<!! @(resolve 'advent.android/purchase-chan)))
|
||||
(println "billing purchased now:" @@(resolve 'advent.core/has-purchased?))
|
||||
(when @@(resolve 'advent.core/has-purchased?)
|
||||
(actions/walk-to entities :ego [154 41])
|
||||
(actions/talk entities :ego "Wow! That's a long way down.")))
|
||||
|
||||
(actions/walk-to entities :ego [154 41])
|
||||
(actions/talk entities :ego "Wow! That's a long way down."))
|
||||
:scripts {:shovel (actions/get-script entities
|
||||
(actions/walk-to entities :ego [154 41])
|
||||
(actions/talk entities :ego "I guess I'm doomed to be a gravedigger.")
|
||||
|
||||
Reference in New Issue
Block a user