summary refs log tree commit diff stats
path: root/Classes/GameModeSelection.m
Commit message (Collapse)AuthorAgeFilesLines
* Fixed selection screen highscore label bugStarla Insigna2011-08-251-1/+1
| | | | | | This is pretty much the same as the bug that was fixed in r15--CCSprite textures need different cache keys when they change, otherwise they won't change. Fixes #212
* Added support for multiple local highscore listsStarla Insigna2011-08-241-31/+22
| | | | | | This revision increments the database version to 2. Also fixed a small problem with GameModeSelection that aligned the highscore text incorrectly.
* Added scrolling to level selection screenStarla Insigna2011-08-231-10/+25
| | | | | | | | 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
* Added borders to level selection imagesStarla Insigna2011-08-221-50/+145
| | | | | | | | | | The image for each level selection now has a tutorial bubble-esque border around it, which was achieved using image masking. The border is included in the graying-out effect when the image is being tapped, and it is also included in the grayscaling when the level is not yet unlocked. Also rewrote most of the selection drawing code. The titles are now drawn above the image, with Quartz instead of Cocos2D. The highscore label is also drawn with Quartz, though it is still below the image. The unlock condition label no longer appears, and instead, locked levels are now tappable and tapping them shows an alert view containing the unlock condition. Will probably be changed to be more elegant later. Really, the biggest thing left before the selection screen is done is the ability to scroll through levels. The background also needs changing, but that will come later once I recruit a graphics designer. :P Refs #207
* Made game mode selections tappableStarla Insigna2011-08-181-4/+34
| | | | | | | | | | Both the Tutorial and Collect game mode selections can now be tapped to start playing the mode. Holding your finger down on a game mode darkens the image, to give the player feedback on the fact that they are touching a button. This only applies to unlocked game modes--not-yet-unlocked game modes are just sprites, not buttons, and do not react to touch. Note that the game mode does not yet transition in with the zoom in/fade in transition combo that is specified in the ticket. Also fixed a bug that would, if the player hadn't yet unlocked Collect and then played the Tutorial, continue to show the grayscale Collect image even though the button was completely working and tappable. Also changed Tutorial Mode to bring the player to the game mode selection screen upon completion instead of the main menu. Refs #207
* Started game mode selection screenStarla Insigna2011-08-181-0/+88
So far, tapping "New Game" shows a screen with two game modes: the tutorial and the classic collect. They both have pictures and Collect's is grayscale if it hasn't been unlocked yet (a.k.a. the tutorial hasn't been completed yet). Also, Collect's title is replaced with question marks and the text "Beat the tutorial!" is shown if it isn't unlocked--if it is unlocked, the player's highscore, if they have one, is shown. A "Back to Main Menu" button is also present. Neither selection is as of yet tappable, and neither picture yet has a border. You cannot scroll through modes yet either. Refs #207