Skip to content
Snippets Groups Projects
Commit a384521e authored by peters's avatar peters
Browse files

exhibition version

most latest version that is also presented at the exhibition ... commentaries are not there yet ...
parent 4aab7222
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
A6005B8D27B03632009E2967 /* passwordsBruteForceIntro.m4v in Resources */ = {isa = PBXBuildFile; fileRef = A6005B8C27B03632009E2967 /* passwordsBruteForceIntro.m4v */; }; A6005B8D27B03632009E2967 /* passwordsBruteForceIntro.m4v in Resources */ = {isa = PBXBuildFile; fileRef = A6005B8C27B03632009E2967 /* passwordsBruteForceIntro.m4v */; };
A6005B8F27B03704009E2967 /* passwordsIntro.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A6005B8E27B03704009E2967 /* passwordsIntro.mp4 */; }; A6005B8F27B03704009E2967 /* passwordsIntro.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A6005B8E27B03704009E2967 /* passwordsIntro.mp4 */; };
A6005B9127B0388C009E2967 /* passwordsBruteForceFrom1To3.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A6005B9027B0388C009E2967 /* passwordsBruteForceFrom1To3.mp4 */; }; A6005B9127B0388C009E2967 /* passwordsBruteForceFrom1To3.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A6005B9027B0388C009E2967 /* passwordsBruteForceFrom1To3.mp4 */; };
A611458C27BCF90E00D71111 /* explore_disclaimer_02.png in Resources */ = {isa = PBXBuildFile; fileRef = A611458B27BCF90E00D71111 /* explore_disclaimer_02.png */; };
A611458E27BCFBEB00D71111 /* good_bad_02.png in Resources */ = {isa = PBXBuildFile; fileRef = A611458D27BCFBEB00D71111 /* good_bad_02.png */; };
A623508D27AAE67D0030D490 /* InventoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A623508C27AAE67D0030D490 /* InventoryViewController.swift */; }; A623508D27AAE67D0030D490 /* InventoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A623508C27AAE67D0030D490 /* InventoryViewController.swift */; };
A623508F27AAE8360030D490 /* mainmenu_background03.png in Resources */ = {isa = PBXBuildFile; fileRef = A623508E27AAE8360030D490 /* mainmenu_background03.png */; }; A623508F27AAE8360030D490 /* mainmenu_background03.png in Resources */ = {isa = PBXBuildFile; fileRef = A623508E27AAE8360030D490 /* mainmenu_background03.png */; };
A623509527AAEB290030D490 /* ExploreViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A623509427AAEB290030D490 /* ExploreViewController.swift */; }; A623509527AAEB290030D490 /* ExploreViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A623509427AAEB290030D490 /* ExploreViewController.swift */; };
...@@ -42,6 +44,7 @@ ...@@ -42,6 +44,7 @@
A675CCA727B818C1003B3C58 /* explore_btn_reflect.png in Resources */ = {isa = PBXBuildFile; fileRef = A675CCA627B818C1003B3C58 /* explore_btn_reflect.png */; }; A675CCA727B818C1003B3C58 /* explore_btn_reflect.png in Resources */ = {isa = PBXBuildFile; fileRef = A675CCA627B818C1003B3C58 /* explore_btn_reflect.png */; };
A675CCA927B81A39003B3C58 /* reflect_slide.png in Resources */ = {isa = PBXBuildFile; fileRef = A675CCA827B81A39003B3C58 /* reflect_slide.png */; }; A675CCA927B81A39003B3C58 /* reflect_slide.png in Resources */ = {isa = PBXBuildFile; fileRef = A675CCA827B81A39003B3C58 /* reflect_slide.png */; };
A680413627B5857000314DE6 /* inventory_not_collected.png in Resources */ = {isa = PBXBuildFile; fileRef = A680413527B5857000314DE6 /* inventory_not_collected.png */; }; A680413627B5857000314DE6 /* inventory_not_collected.png in Resources */ = {isa = PBXBuildFile; fileRef = A680413527B5857000314DE6 /* inventory_not_collected.png */; };
A69E3DC727BE907F00D561AA /* ar-mode.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A69E3DC627BE907F00D561AA /* ar-mode.mp4 */; };
A6A78BF427A9579800675532 /* Avatar.png in Resources */ = {isa = PBXBuildFile; fileRef = A6A78BF327A9579800675532 /* Avatar.png */; }; A6A78BF427A9579800675532 /* Avatar.png in Resources */ = {isa = PBXBuildFile; fileRef = A6A78BF327A9579800675532 /* Avatar.png */; };
A6B94B2127B5557300861198 /* inventory_collected2.png in Resources */ = {isa = PBXBuildFile; fileRef = A6B94B2027B5557300861198 /* inventory_collected2.png */; }; A6B94B2127B5557300861198 /* inventory_collected2.png in Resources */ = {isa = PBXBuildFile; fileRef = A6B94B2027B5557300861198 /* inventory_collected2.png */; };
A6B94B2327B55C4500861198 /* tutorial.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A6B94B2227B55C4500861198 /* tutorial.mp4 */; }; A6B94B2327B55C4500861198 /* tutorial.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = A6B94B2227B55C4500861198 /* tutorial.mp4 */; };
...@@ -57,6 +60,8 @@ ...@@ -57,6 +60,8 @@
A6005B8C27B03632009E2967 /* passwordsBruteForceIntro.m4v */ = {isa = PBXFileReference; lastKnownFileType = file; path = passwordsBruteForceIntro.m4v; sourceTree = "<group>"; }; A6005B8C27B03632009E2967 /* passwordsBruteForceIntro.m4v */ = {isa = PBXFileReference; lastKnownFileType = file; path = passwordsBruteForceIntro.m4v; sourceTree = "<group>"; };
A6005B8E27B03704009E2967 /* passwordsIntro.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = passwordsIntro.mp4; sourceTree = "<group>"; }; A6005B8E27B03704009E2967 /* passwordsIntro.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = passwordsIntro.mp4; sourceTree = "<group>"; };
A6005B9027B0388C009E2967 /* passwordsBruteForceFrom1To3.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = passwordsBruteForceFrom1To3.mp4; sourceTree = "<group>"; }; A6005B9027B0388C009E2967 /* passwordsBruteForceFrom1To3.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = passwordsBruteForceFrom1To3.mp4; sourceTree = "<group>"; };
A611458B27BCF90E00D71111 /* explore_disclaimer_02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = explore_disclaimer_02.png; sourceTree = "<group>"; };
A611458D27BCFBEB00D71111 /* good_bad_02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = good_bad_02.png; sourceTree = "<group>"; };
A623508C27AAE67D0030D490 /* InventoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryViewController.swift; sourceTree = "<group>"; }; A623508C27AAE67D0030D490 /* InventoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryViewController.swift; sourceTree = "<group>"; };
A623508E27AAE8360030D490 /* mainmenu_background03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mainmenu_background03.png; sourceTree = "<group>"; }; A623508E27AAE8360030D490 /* mainmenu_background03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mainmenu_background03.png; sourceTree = "<group>"; };
A623509427AAEB290030D490 /* ExploreViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExploreViewController.swift; sourceTree = "<group>"; }; A623509427AAEB290030D490 /* ExploreViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExploreViewController.swift; sourceTree = "<group>"; };
...@@ -78,7 +83,6 @@ ...@@ -78,7 +83,6 @@
A664716D27A8399900417BF1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; A664716D27A8399900417BF1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
A664717627A83AB000417BF1 /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = "<group>"; }; A664717627A83AB000417BF1 /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = "<group>"; };
A664717A27A840E200417BF1 /* Letsliterate.rcproject */ = {isa = PBXFileReference; lastKnownFileType = file.rcproject; path = Letsliterate.rcproject; sourceTree = "<group>"; }; A664717A27A840E200417BF1 /* Letsliterate.rcproject */ = {isa = PBXFileReference; lastKnownFileType = file.rcproject; path = Letsliterate.rcproject; sourceTree = "<group>"; };
A6703EC427BB69130039D279 /* ar-mode.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = "ar-mode.mp4"; sourceTree = "<group>"; };
A672B65127B19391000A9007 /* ImagesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImagesViewController.swift; sourceTree = "<group>"; }; A672B65127B19391000A9007 /* ImagesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImagesViewController.swift; sourceTree = "<group>"; };
A672B65327B1944C000A9007 /* strong_password.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = strong_password.png; sourceTree = "<group>"; }; A672B65327B1944C000A9007 /* strong_password.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = strong_password.png; sourceTree = "<group>"; };
A672B65427B1944D000A9007 /* ranking_passwords.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ranking_passwords.png; sourceTree = "<group>"; }; A672B65427B1944D000A9007 /* ranking_passwords.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ranking_passwords.png; sourceTree = "<group>"; };
...@@ -91,6 +95,7 @@ ...@@ -91,6 +95,7 @@
A675CCA627B818C1003B3C58 /* explore_btn_reflect.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = explore_btn_reflect.png; sourceTree = "<group>"; }; A675CCA627B818C1003B3C58 /* explore_btn_reflect.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = explore_btn_reflect.png; sourceTree = "<group>"; };
A675CCA827B81A39003B3C58 /* reflect_slide.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = reflect_slide.png; sourceTree = "<group>"; }; A675CCA827B81A39003B3C58 /* reflect_slide.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = reflect_slide.png; sourceTree = "<group>"; };
A680413527B5857000314DE6 /* inventory_not_collected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = inventory_not_collected.png; sourceTree = "<group>"; }; A680413527B5857000314DE6 /* inventory_not_collected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = inventory_not_collected.png; sourceTree = "<group>"; };
A69E3DC627BE907F00D561AA /* ar-mode.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = "ar-mode.mp4"; sourceTree = "<group>"; };
A6A78BF327A9579800675532 /* Avatar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Avatar.png; sourceTree = "<group>"; }; A6A78BF327A9579800675532 /* Avatar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Avatar.png; sourceTree = "<group>"; };
A6B94B2027B5557300861198 /* inventory_collected2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = inventory_collected2.png; sourceTree = "<group>"; }; A6B94B2027B5557300861198 /* inventory_collected2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = inventory_collected2.png; sourceTree = "<group>"; };
A6B94B2227B55C4500861198 /* tutorial.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = tutorial.mp4; sourceTree = "<group>"; }; A6B94B2227B55C4500861198 /* tutorial.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = tutorial.mp4; sourceTree = "<group>"; };
...@@ -155,6 +160,7 @@ ...@@ -155,6 +160,7 @@
A6A78BF327A9579800675532 /* Avatar.png */, A6A78BF327A9579800675532 /* Avatar.png */,
A623508E27AAE8360030D490 /* mainmenu_background03.png */, A623508E27AAE8360030D490 /* mainmenu_background03.png */,
A675CCA027B81174003B3C58 /* explore_disclaimer.png */, A675CCA027B81174003B3C58 /* explore_disclaimer.png */,
A611458B27BCF90E00D71111 /* explore_disclaimer_02.png */,
A63DDDAA27AC0607007CB857 /* explore_mask_scan.png */, A63DDDAA27AC0607007CB857 /* explore_mask_scan.png */,
A63DDDAC27AC07F8007CB857 /* explore_btn_inventory.png */, A63DDDAC27AC07F8007CB857 /* explore_btn_inventory.png */,
A675CCA427B818B2003B3C58 /* explore_btn_menu_hamburger.png */, A675CCA427B818B2003B3C58 /* explore_btn_menu_hamburger.png */,
...@@ -171,11 +177,12 @@ ...@@ -171,11 +177,12 @@
A672B65427B1944D000A9007 /* ranking_passwords.png */, A672B65427B1944D000A9007 /* ranking_passwords.png */,
A672B65327B1944C000A9007 /* strong_password.png */, A672B65327B1944C000A9007 /* strong_password.png */,
A672B65827B19455000A9007 /* good_idea_bad_idea.png */, A672B65827B19455000A9007 /* good_idea_bad_idea.png */,
A611458D27BCFBEB00D71111 /* good_bad_02.png */,
A672B65727B19455000A9007 /* types_of_usage.png */, A672B65727B19455000A9007 /* types_of_usage.png */,
A680413527B5857000314DE6 /* inventory_not_collected.png */, A680413527B5857000314DE6 /* inventory_not_collected.png */,
A6B94B2027B5557300861198 /* inventory_collected2.png */, A6B94B2027B5557300861198 /* inventory_collected2.png */,
A675CCA827B81A39003B3C58 /* reflect_slide.png */, A675CCA827B81A39003B3C58 /* reflect_slide.png */,
A6703EC427BB69130039D279 /* ar-mode.mp4 */, A69E3DC627BE907F00D561AA /* ar-mode.mp4 */,
A6B94B2227B55C4500861198 /* tutorial.mp4 */, A6B94B2227B55C4500861198 /* tutorial.mp4 */,
); );
path = "Lets Literate"; path = "Lets Literate";
...@@ -245,6 +252,7 @@ ...@@ -245,6 +252,7 @@
A664716E27A8399900417BF1 /* LaunchScreen.storyboard in Resources */, A664716E27A8399900417BF1 /* LaunchScreen.storyboard in Resources */,
A6005B8F27B03704009E2967 /* passwordsIntro.mp4 in Resources */, A6005B8F27B03704009E2967 /* passwordsIntro.mp4 in Resources */,
A63DDDAD27AC07F8007CB857 /* explore_btn_inventory.png in Resources */, A63DDDAD27AC07F8007CB857 /* explore_btn_inventory.png in Resources */,
A611458E27BCFBEB00D71111 /* good_bad_02.png in Resources */,
A6B94B2327B55C4500861198 /* tutorial.mp4 in Resources */, A6B94B2327B55C4500861198 /* tutorial.mp4 in Resources */,
A675CCA327B8149F003B3C58 /* bruteForce_btn_use.png in Resources */, A675CCA327B8149F003B3C58 /* bruteForce_btn_use.png in Resources */,
A623508F27AAE8360030D490 /* mainmenu_background03.png in Resources */, A623508F27AAE8360030D490 /* mainmenu_background03.png in Resources */,
...@@ -263,6 +271,7 @@ ...@@ -263,6 +271,7 @@
A675CCA527B818B2003B3C58 /* explore_btn_menu_hamburger.png in Resources */, A675CCA527B818B2003B3C58 /* explore_btn_menu_hamburger.png in Resources */,
A6E5FCE927BABD7D008EF9E1 /* mainmenu_btn_ar.png in Resources */, A6E5FCE927BABD7D008EF9E1 /* mainmenu_btn_ar.png in Resources */,
A633CDCE27A93ED600450383 /* mainmenu_btn_explore.png in Resources */, A633CDCE27A93ED600450383 /* mainmenu_btn_explore.png in Resources */,
A611458C27BCF90E00D71111 /* explore_disclaimer_02.png in Resources */,
A6B94B2127B5557300861198 /* inventory_collected2.png in Resources */, A6B94B2127B5557300861198 /* inventory_collected2.png in Resources */,
A6B94B2527B56A5E00861198 /* passwordsBruteForceOutro.mp4 in Resources */, A6B94B2527B56A5E00861198 /* passwordsBruteForceOutro.mp4 in Resources */,
A675CCA927B81A39003B3C58 /* reflect_slide.png in Resources */, A675CCA927B81A39003B3C58 /* reflect_slide.png in Resources */,
...@@ -271,6 +280,7 @@ ...@@ -271,6 +280,7 @@
A6005B8D27B03632009E2967 /* passwordsBruteForceIntro.m4v in Resources */, A6005B8D27B03632009E2967 /* passwordsBruteForceIntro.m4v in Resources */,
A633CDC827A93E3500450383 /* mainmenu_background02.png in Resources */, A633CDC827A93E3500450383 /* mainmenu_background02.png in Resources */,
A675CC9F27B80FCF003B3C58 /* bruteForce_mask_scan_four_stones.png in Resources */, A675CC9F27B80FCF003B3C58 /* bruteForce_mask_scan_four_stones.png in Resources */,
A69E3DC727BE907F00D561AA /* ar-mode.mp4 in Resources */,
A672B65527B1944D000A9007 /* strong_password.png in Resources */, A672B65527B1944D000A9007 /* strong_password.png in Resources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
......
No preview for this file type
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
}, },
"properties" : { "properties" : {
"unit" : "centimeters", "unit" : "centimeters",
"width" : 0 "width" : 5
} }
} }
...@@ -41,7 +41,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -41,7 +41,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
if task11_stone_to_use == "1" { if task11_stone_to_use == "1" {
print("Task1.1: correct stone selected") print("Task1.1: correct stone selected")
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
self._playPasswordsTaskBruteForceAttackFrom1To3Chars() //self._playPasswordsTaskBruteForceAttackFrom1To3Chars()
Game.setMode(mode: .task1) Game.setMode(mode: .task1)
subTask = 2 subTask = 2
imageScanMask.image = UIImage(named:"bruteForce_mask_scan_four_stones.png") imageScanMask.image = UIImage(named:"bruteForce_mask_scan_four_stones.png")
...@@ -150,7 +150,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -150,7 +150,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
super.viewDidAppear(animated) super.viewDidAppear(animated)
print("viewDidAppear(_:) called") print("viewDidAppear(_:) called")
if self._disclaimer_showed == false { if self._disclaimer_showed == false {
self._taskImage = "explore_disclaimer.png" self._taskImage = "explore_disclaimer_02.png"
performSegue(withIdentifier: "fromExplore2ImagesSegue", sender: self) performSegue(withIdentifier: "fromExplore2ImagesSegue", sender: self)
self._disclaimer_showed = true self._disclaimer_showed = true
} }
...@@ -201,7 +201,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -201,7 +201,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
print("inTask1: no imageAnchor found") print("inTask1: no imageAnchor found")
return return
} }
if let imageName = imageAnchor.name, imageName == "demo_stone_texture05" { //"demo_stone_texture02" - "stone_H_schwarz" if let imageName = imageAnchor.name, imageName == "stone_h_a" { //"demo_stone_texture02" - "stone_H_schwarz"
print("Station Passwords - Task 1.1: stone for H anchor found") print("Station Passwords - Task 1.1: stone for H anchor found")
rkView.session.remove(anchor: imageAnchor) rkView.session.remove(anchor: imageAnchor)
rkView.session.pause() rkView.session.pause()
...@@ -211,7 +211,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -211,7 +211,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
self.task11_stone_to_use = "H" self.task11_stone_to_use = "H"
return return
} }
if let imageName = imageAnchor.name, imageName == "demo_stone_texture02" { //"demo_stone_texture03" - "stone_i_schwarz" if let imageName = imageAnchor.name, imageName == "stone_i_a" { //"demo_stone_texture03" - "stone_i_schwarz"
print("Station Passwords - Task 1.1: stone for i anchor found") print("Station Passwords - Task 1.1: stone for i anchor found")
rkView.session.remove(anchor: imageAnchor) rkView.session.remove(anchor: imageAnchor)
rkView.session.pause() rkView.session.pause()
...@@ -221,7 +221,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -221,7 +221,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
self.task11_stone_to_use = "i" self.task11_stone_to_use = "i"
return return
} }
if let imageName = imageAnchor.name, imageName == "demo_stone_texture06" { //"demo_stone_texture05" - "stone_1_schwarz" if let imageName = imageAnchor.name, imageName == "stone_1_a" { //"demo_stone_texture05" - "stone_1_schwarz"
print("Station Passwords - Task 1.1: stone for One anchor found") print("Station Passwords - Task 1.1: stone for One anchor found")
rkView.session.remove(anchor: imageAnchor) rkView.session.remove(anchor: imageAnchor)
rkView.session.pause() rkView.session.pause()
...@@ -231,7 +231,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -231,7 +231,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
self.task11_stone_to_use = "1" self.task11_stone_to_use = "1"
return return
} }
if let imageName = imageAnchor.name, imageName == "demo_stone_texture03" { //"demo_stone_texture06" - "stone_Fragezeichen_schwarz" //"demo_stone_texture06" if let imageName = imageAnchor.name, imageName == "stone_frage_a" { //"demo_stone_texture06" - "stone_Fragezeichen_schwarz" //"demo_stone_texture06"
print("Station Passwords - Task 1.1: stone for questionmark anchor found") print("Station Passwords - Task 1.1: stone for questionmark anchor found")
rkView.session.remove(anchor: imageAnchor) rkView.session.remove(anchor: imageAnchor)
rkView.session.pause() rkView.session.pause()
...@@ -272,6 +272,17 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -272,6 +272,17 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
self.task12_stones_to_use = "1i?H" self.task12_stones_to_use = "1i?H"
return return
} }
if let imageName = imageAnchor.name, imageName == "stones_wrong02" {
print("Station Passwords - Task 1.2: stones_wrong01 anchor found")
rkView.session.remove(anchor: imageAnchor)
rkView.session.pause()
self.labelDecoded.text = "This is the '?Hi1'"
self.labelDecoded.isHidden = false
self.btnUse.isHidden = false
btnUse.isEnabled = true
self.task12_stones_to_use = "1i?H"
return
}
//other possibilities here and up at btn //other possibilities here and up at btn
} }
//if the game is in station mode, we want to scan task planes of a cube //if the game is in station mode, we want to scan task planes of a cube
...@@ -280,11 +291,11 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -280,11 +291,11 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
print("inStation, inPasswords: no imageAnchor found") print("inStation, inPasswords: no imageAnchor found")
return return
} }
if let imageName = imageAnchor.name, imageName == "anchor_passwords_task1" { if let imageName = imageAnchor.name, imageName == "anchor_passwords_task3" {
//delete the anchor //delete the anchor
rkView.session.pause() rkView.session.pause()
rkView.session.remove(anchor: imageAnchor) rkView.session.remove(anchor: imageAnchor)
print("Removed anchor: anchor_passwords_task1") print("Removed anchor: anchor_passwords_task3")
if Game.getStations()[0].getTasks()[0].isSolved() == false { if Game.getStations()[0].getTasks()[0].isSolved() == false {
print("Start of Task 1 of Station Passwords") print("Start of Task 1 of Station Passwords")
...@@ -359,11 +370,11 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -359,11 +370,11 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
rkView.session.run(configurationPasswords) rkView.session.run(configurationPasswords)
print("Task 2 done, back to station mode") print("Task 2 done, back to station mode")
} }
if let imageName = imageAnchor.name, imageName == "anchor_passwords_task3" { if let imageName = imageAnchor.name, imageName == "anchor_passwords_task1" {
//delete the anchor //delete the anchor
rkView.session.pause() rkView.session.pause()
rkView.session.remove(anchor: imageAnchor) rkView.session.remove(anchor: imageAnchor)
print("Removed anchor: anchor_passwords_task3") print("Removed anchor: anchor_passwords_task1")
if Game.getStations()[0].getTasks()[2].isSolved() == false { if Game.getStations()[0].getTasks()[2].isSolved() == false {
print("Start of Task 3 of Station Passwords") print("Start of Task 3 of Station Passwords")
...@@ -406,7 +417,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel ...@@ -406,7 +417,7 @@ class ExploreViewController: UIViewController, ARSessionDelegate, UIAlertViewDel
if Game.getStations()[0].getTasks()[3].isSolved() == false { if Game.getStations()[0].getTasks()[3].isSolved() == false {
print("Start of Task 4 of Station Passwords") print("Start of Task 4 of Station Passwords")
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
self._taskImage = "good_idea_bad_idea.png" self._taskImage = "good_bad_02.png"
performSegue(withIdentifier: "fromExplore2ImagesSegue", sender: self) performSegue(withIdentifier: "fromExplore2ImagesSegue", sender: self)
print("Show information ... we make just a sleep for 5 seconds") print("Show information ... we make just a sleep for 5 seconds")
self._pause = true self._pause = true
......
...@@ -108,6 +108,9 @@ class Game { ...@@ -108,6 +108,9 @@ class Game {
} }
return nil return nil
} }
private static func removeStations () {
Game.stations.removeAll()
}
public static func getStations () -> [Station] { public static func getStations () -> [Station] {
return Game.stations return Game.stations
...@@ -148,6 +151,7 @@ class Game { ...@@ -148,6 +151,7 @@ class Game {
print("Actual station is set to none.") print("Actual station is set to none.")
Game.setActStation(station: .none) Game.setActStation(station: .none)
Game.removeStations()
//initialize the password station //initialize the password station
print("Initialize Station Passwords") print("Initialize Station Passwords")
......
No preview for this file type
Lets Literate/explore_disclaimer_02.png

115 KiB

Lets Literate/good_bad_02.png

27.8 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment