From c9337218ef1660360097928c753bde1c79775618 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Tue, 23 Aug 2011 07:52:24 -0400 Subject: Added scrolling to level selection screen Using http://www.xcombinator.com/2010/09/08/a-paging-uiscrollview-in-cocos2d-with-previews/ as a base, I was able to implement a paging scroller for the level selection screen so players can swipe through available levels and choose one to play. At this point, the level selection screen is practically done--the only other thing I want to add is a UIPageControl to interact with the scrolling and give the player an indication of how many levels there are. Refs #207 --- Cartographic.xcodeproj/project.pbxproj | 40 +++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 6 deletions(-) (limited to 'Cartographic.xcodeproj') diff --git a/Cartographic.xcodeproj/project.pbxproj b/Cartographic.xcodeproj/project.pbxproj index cda609e..59cf7cd 100755 --- a/Cartographic.xcodeproj/project.pbxproj +++ b/Cartographic.xcodeproj/project.pbxproj @@ -102,6 +102,9 @@ 6C0C141113F2099B003A31B2 /* Cart.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141013F2099B003A31B2 /* Cart.m */; }; 6C0C141413F20E98003A31B2 /* GameMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141313F20E98003A31B2 /* GameMode.m */; }; 6C18C3CA1402AD9C0005AA4C /* UIImage+ColorMasking.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C18C3C91402AD9C0005AA4C /* UIImage+ColorMasking.m */; }; + 6C18C3D214033DC50005AA4C /* CocosOverlayScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C18C3CD14033DC10005AA4C /* CocosOverlayScrollView.m */; }; + 6C18C3D314033DC60005AA4C /* NMPanelMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C18C3CF14033DC30005AA4C /* NMPanelMenu.m */; }; + 6C18C3D414033DC60005AA4C /* TouchDelegatingView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C18C3D114033DC40005AA4C /* TouchDelegatingView.m */; }; 6C29041013EAEB590032DA0F /* TutorialBubble.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C29040F13EAEB590032DA0F /* TutorialBubble.m */; }; 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C29041113EAEC8A0032DA0F /* framestuff.png */; }; 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C39CFDF13FC2708002B21AF /* tutorial.png */; }; @@ -414,6 +417,12 @@ 6C0C141313F20E98003A31B2 /* GameMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameMode.m; sourceTree = ""; }; 6C18C3C81402AD9C0005AA4C /* UIImage+ColorMasking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+ColorMasking.h"; sourceTree = ""; }; 6C18C3C91402AD9C0005AA4C /* UIImage+ColorMasking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+ColorMasking.m"; sourceTree = ""; }; + 6C18C3CC14033DBF0005AA4C /* CocosOverlayScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocosOverlayScrollView.h; sourceTree = ""; }; + 6C18C3CD14033DC10005AA4C /* CocosOverlayScrollView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CocosOverlayScrollView.m; sourceTree = ""; }; + 6C18C3CE14033DC20005AA4C /* NMPanelMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NMPanelMenu.h; sourceTree = ""; }; + 6C18C3CF14033DC30005AA4C /* NMPanelMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NMPanelMenu.m; sourceTree = ""; }; + 6C18C3D014033DC40005AA4C /* TouchDelegatingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TouchDelegatingView.h; sourceTree = ""; }; + 6C18C3D114033DC40005AA4C /* TouchDelegatingView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TouchDelegatingView.m; sourceTree = ""; }; 6C29040E13EAEB590032DA0F /* TutorialBubble.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialBubble.h; sourceTree = ""; }; 6C29040F13EAEB590032DA0F /* TutorialBubble.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialBubble.m; sourceTree = ""; }; 6C29041113EAEC8A0032DA0F /* framestuff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = framestuff.png; sourceTree = ""; }; @@ -427,6 +436,7 @@ 6C39D00713FD9037002B21AF /* florence.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = florence.png; sourceTree = ""; }; 6C39D01113FD9945002B21AF /* paris.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = paris.png; sourceTree = ""; }; 6C5179C513DF3839006F1F38 /* Morning1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Morning1.png; sourceTree = ""; }; + 6CB532581403BA4F00780A5E /* GameModeSelectionDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameModeSelectionDelegate.h; sourceTree = ""; }; 6CC89DD813F2F4E6003704F7 /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = ""; }; 6CC89DDD13F31413003704F7 /* TutorialMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialMode.h; sourceTree = ""; }; 6CC89DDE13F31413003704F7 /* TutorialMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialMode.m; sourceTree = ""; }; @@ -710,6 +720,7 @@ 2D500B1D0D5A766B00DBA0E3 /* Classes */ = { isa = PBXGroup; children = ( + 6CB532561403492E00780A5E /* Selection Screen */, 6C0C141513F211C7003A31B2 /* Game Modes */, 6C5887E313EE3ED900B5A80A /* Items */, E0F81035120A173C005866B8 /* GameConfig.h */, @@ -727,12 +738,6 @@ 3F03221813D7904E00E6A708 /* Highscore.m */, 6C29040E13EAEB590032DA0F /* TutorialBubble.h */, 6C29040F13EAEB590032DA0F /* TutorialBubble.m */, - 6C39CFF113FD4F87002B21AF /* GameModeSelection.h */, - 6C39CFF213FD4F89002B21AF /* GameModeSelection.m */, - 6C39CFF613FD7636002B21AF /* GameModeSelectionLayer.h */, - 6C39CFF713FD7637002B21AF /* GameModeSelectionLayer.m */, - 6C18C3C81402AD9C0005AA4C /* UIImage+ColorMasking.h */, - 6C18C3C91402AD9C0005AA4C /* UIImage+ColorMasking.m */, ); path = Classes; sourceTree = ""; @@ -929,6 +934,26 @@ name = Items; sourceTree = ""; }; + 6CB532561403492E00780A5E /* Selection Screen */ = { + isa = PBXGroup; + children = ( + 6C39CFF113FD4F87002B21AF /* GameModeSelection.h */, + 6C39CFF213FD4F89002B21AF /* GameModeSelection.m */, + 6C39CFF613FD7636002B21AF /* GameModeSelectionLayer.h */, + 6C39CFF713FD7637002B21AF /* GameModeSelectionLayer.m */, + 6C18C3C81402AD9C0005AA4C /* UIImage+ColorMasking.h */, + 6C18C3C91402AD9C0005AA4C /* UIImage+ColorMasking.m */, + 6C18C3CC14033DBF0005AA4C /* CocosOverlayScrollView.h */, + 6C18C3CD14033DC10005AA4C /* CocosOverlayScrollView.m */, + 6C18C3CE14033DC20005AA4C /* NMPanelMenu.h */, + 6C18C3CF14033DC30005AA4C /* NMPanelMenu.m */, + 6C18C3D014033DC40005AA4C /* TouchDelegatingView.h */, + 6C18C3D114033DC40005AA4C /* TouchDelegatingView.m */, + 6CB532581403BA4F00780A5E /* GameModeSelectionDelegate.h */, + ); + name = "Selection Screen"; + sourceTree = ""; + }; E02BBB19126CC2F5006E46A2 /* cocos2d */ = { isa = PBXGroup; children = ( @@ -1445,6 +1470,9 @@ 6C39CFF313FD4F8B002B21AF /* GameModeSelection.m in Sources */, 6C39CFF813FD7638002B21AF /* GameModeSelectionLayer.m in Sources */, 6C18C3CA1402AD9C0005AA4C /* UIImage+ColorMasking.m in Sources */, + 6C18C3D214033DC50005AA4C /* CocosOverlayScrollView.m in Sources */, + 6C18C3D314033DC60005AA4C /* NMPanelMenu.m in Sources */, + 6C18C3D414033DC60005AA4C /* TouchDelegatingView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; -- cgit 1.4.1