summary refs log tree commit diff stats
path: root/Classes/ClassicGameMode.m
Commit message (Collapse)AuthorAgeFilesLines
* Created score barStarla Insigna2013-01-041-1/+35
| | | | Closes #190
* Added third star to Collect and added failsafe for GameModeInfo's init in ↵Starla Insigna2013-01-041-1/+4
| | | | case numOfStars is over 3
* Removed locked game modes from selection screenStarla Insigna2013-01-021-4/+2
| | | | | | Also removed cluttering attributes "unlockCondition" and "starsToUnlock" from GameModeInfo because they're really not that generalized (and unlockCondition doesn't really make sense if locked game modes are invisible anyway). starsToUnlock can be replaced by simply putting if statements in to GameModeManager's setStars: and then unlocking modes based off that. Completing the tutorial also now unlocks both Collect AND Jump. The idea is that we should make more than just Collect available at the start, and have only a few super hidden game modes that are unlockable; hence locked game modes being invisible.
* Created a game mode managerStarla Insigna2011-11-301-16/+26
| | | | | | | | There is now one location for information relating to each GameMode instead of several places, so that info can be easily updated and propagated to, for instance, GameModeSelectionLayer. GameModes can also be specified by an info instance each owns. There's also a way to get an ordered list of game modes. The three star game mode unlocking system has also been added. Closes #213
* Reworked falling objectsStarla Insigna2011-09-101-15/+56
| | | | Previously, every type of falling object had to have its own class that defined the object type's sprite, weight, and reaction to the cart/floor. This was pretty messy considering how many object types may only be used in one game mode--for instance, the many power ups in Power mode, once it's created, will never be used outside of Power mode. So, to increase customizability and decrease class clutter, game modes now use a FallingObjectFactory to define recipes (basically a sprite filename, a weight and an identifier) that can easily be built throughout the game mode using the identifier. FallingObjectDelegate is now used for all reactions to the cart/floor, rather than defining a standard reaction in the FallingObject subclass and then putting extra stuff in FallingObjectDelegate.
* Fixed negative lives behaviorStarla Insigna2011-09-091-1/+1
| | | | | | The negative lives glitch was being caused by players being killed by two different things at once--a.k.a. being hit by a rock and falling off a ledge in Jump. The problem was that both game modes would only show the game over screen if the player had zero lives, not for negative lives. This has been fixed. Fixes #220
* Decreased Jump unlocking score to 3000Starla Insigna2011-09-041-6/+9
| | | | Refs #204
* Implemented Jump mode (BETA) jumpStarla Insigna2011-09-041-1/+1
| | | | | | Dear god this is beta. I think I'll release a build for the testers soon so I can see what people think and then hammer out the bugs. Refs #204
* Added Jump to selection screenStarla Insigna2011-08-251-0/+12
| | | | | | It currently uses a temporary picture and is unlockable after reaching 5000 points in Collect, at which point a little notification appears at the top of the screen telling you that you've unlocked a new game mode. Also fixed a bug in GameMode with the iteration of objects that would cause the rest of tick to not be called because objects were removed from the set while it was being iterated over. Refs #204
* Fixed game over transitionStarla Insigna2011-08-151-2/+2
| | | | Fixes #189
* Added tutorial modeStarla Insigna2011-08-121-0/+166
GameLayer was also renamed to ClassicGameMode and its pause functionality and score/lives counters were moved out to GameMode. FallingObjectDelegate was created to allow for custom code to be run when items were caught/missed, something that is used extensively by tutorial mode. Important: Cart Collect's bundle identifier was changed in this revision from com.fourisland.Cart-Collect to com.apatheticink.Cart-Collect, so ensure that before attempting to compile/run this build, you clear your build directory and remove the old version of Cart Collect from your device. Closes #193