From bef8e519e6d9b7d4fd08aa4ed5f6eba3b946145e Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Sun, 13 Sep 2015 17:59:07 -0700 Subject: [PATCH] ios updates. --- desktop/gametodos.txt | 6 ++++++ desktop/src-common/advent/actions.clj | 2 +- ios/src/java/advent/core/IOSLauncher.java | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/desktop/gametodos.txt b/desktop/gametodos.txt index d16042ae..4d2bf8b7 100644 --- a/desktop/gametodos.txt +++ b/desktop/gametodos.txt @@ -7,6 +7,12 @@ PROGRAMMING + try to have dialogue for every wrong interaction + preload all sounds +IOS ++ all mp3s ++ particle effects slowdown? ++ pngcrush breaks colors ++ renable pickup sound once it's been replaced + AUDIO + Walking + blink diff --git a/desktop/src-common/advent/actions.clj b/desktop/src-common/advent/actions.clj index 1c957b46..b8ab6f83 100644 --- a/desktop/src-common/advent/actions.clj +++ b/desktop/src-common/advent/actions.clj @@ -533,7 +533,7 @@ (defn give [entities item] (run-action entities (begin [this screen entities] - (sound! (utils/load-sound "pickup.mp3") :play (utils/current-sound-volume)) + #_(sound! (utils/load-sound "pickup.mp3") :play (utils/current-sound-volume)) (-> entities (update-in [:state :inventory] #(conj % item)) diff --git a/ios/src/java/advent/core/IOSLauncher.java b/ios/src/java/advent/core/IOSLauncher.java index 9f60f9be..cf0e7400 100644 --- a/ios/src/java/advent/core/IOSLauncher.java +++ b/ios/src/java/advent/core/IOSLauncher.java @@ -8,10 +8,16 @@ import com.badlogic.gdx.backends.iosrobovm.*; import org.robovm.apple.foundation.*; import org.robovm.apple.uikit.*; +import org.robovm.apple.glkit.GLKViewDrawableColorFormat; +import org.robovm.apple.glkit.GLKViewDrawableDepthFormat; public class IOSLauncher extends IOSApplication.Delegate { protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); + config.colorFormat = GLKViewDrawableColorFormat.SRGBA8888; + config.depthFormat = GLKViewDrawableDepthFormat._24; + config.preferredFramesPerSecond = 30; + RT.var("clojure.core", "require").invoke(Symbol.intern("advent.core")); try { Game game = (Game) RT.var("advent.core", "advent").deref();