App Source Code for Sale
Letter Memory Game
Letter memory game is complete project ready for upload to iTunes store.
Game have 2 screens: intro screen and gameplay screen. Gameplay features board 3 rows * 4 columns size (12 tiles).
Screen transition between title and gameplay screen is horizontal flip.
Retina graphics (960*480 px) is supported, in "images" folder you can find @2x retina files.
Game supports retina display, images for retina are higher resolution images and have @2x suffix.
Images used in game are placed in „Images“ folder and divided in „Normal“ and „Retina“ folder depending on resolution. Feel free to replace Images with your own.
Images used are defined in Game.m class file, in case you add some image with different name to project, change it's name here:
#define TILE_BACKGROUND @"hidden-tile.png" #define TILE_IMAGE1 @"tileA.png" #define TILE_IMAGE2 @"tileB.png" #define TILE_IMAGE3 @"tileC.png" #define TILE_IMAGE4 @"tileD.png" #define TILE_IMAGE5 @"tileE.png" #define TILE_IMAGE6 @"tileF.png"
- (void)viewDidLoad - prepare mutable arrays with values - calls resetGame method to shuffle array - (void)matchTiles:(NSNumber *)clickedTile - if tiles don't match set them to enabled state (hide images), otherwise leave tiles opened - (void)resetGame - shuffle array and set coresponding images to UIButtons
- (IBAction)tileClicked:(id)sender - when player clicks game tile opens first tile - if first tile is opened open second tile and check do they match - (IBAction)quitClicked:(id)sender - return to main menu