Cocos2d SimpleAudioEngine Example

Sound effect always is very important part of Game, I used to use other library that playing sound effect on iPhone App, but it totally make the size of the game bigger and slower. Now, I have move my game design from Cocoa To Cocos2d and it's include a few audio playing library. since I just need a background music and some sound effect, so I have choose SimpleAudioEngine.

Steps for playing background music
1. add your sound effect file to project (e.g. BG.mp3)
2. add header file to AppDelegate
#import "SimpleAudioEngine.h"
3. make sure you have add "SimpleAudioEngine.h" and "SimpleAudioEngine.m" from cocos2d

because I want to play the backgrund music after the app have finish loading. so I have make following change for applicationDidFinishLaunching

- (void) applicationDidFinishLaunching:(UIApplication*)application
{
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"BG.mp3"];

window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
...
}

and Now, if we want to play a sound effect when user tap the button, we should preload the sound effect file on app delegate first, or any function before you play it.
- (void) applicationDidFinishLaunching:(UIApplication*)application
{
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"BG.mp3"];
[[SimpleAudioEngine sharedEngine] preloadEffect:@"tapBtn.mp3"];\

window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
...
}

and play it when you need it

-(void)tapButton:(id)sender
{
[audioEngine playEffect:@"tapBtn.mp3"];
}

Mahjong Match 2


Mahjong Match 2, the new match game from Leung's work!


There is maximum have 200 pairs of Mahjong in different place and layer every time you start the game. The player will pairs by touching them.


If you find there is no Mahjong can be pair, you can shuffle the mahjong anytime. and there is a continue function added to Mahjong Match 2. The game have well prepare for iPhone and iPod Touch. Enjoy the relax and fun game.
















Link Up Fun





New Game from Leung's Work: Link Up Fun













Go Walk Pedometer 2.0


The most simple and powerful Pedometer for your iPhone and iPod Touch, Go Walk Pedometer is now goes to 2.0 with Record and Reset function.

Go Walk Pedometer with the following function:

  • Automatic Record your Steps record
  • Reset data
  • Daily steps Report
  • 3 Levels sensitivity adjust

Fly Kingdom: Training

This is about the training before adventure team of fly kingdom, Fly kingdom is choosing the best team to explore the universe, and it will based on the best score in the ranking list. All member of fly kingdom will use this training include catching the energy coins and avoid any unidentified object danger for the fly. Try your best guide the fly member to catching the energy coin and avoid other object.

Back to Fly Kingdom

Fly Kingdom adventure team have lost connection between team member because unknown attack. and now, Team leader Black will save find the member with you from different mission. For finish all mission, there is a auto save function come with your control device, iPhone and iPod Touch.

Capture

Photo Puzzle Fun

Photo Puzzle Fun 1.0
US$1.99 (GET IT NOW)

Have you try to play a real puzzle on iPhone? Photo Puzzle Fun can let you move the piece of puzzle around the screen. and when you match the correct piece, they will stick together.

worry about you can't finish one puzzle each time? don't worry, photo puzzle game provide you a automatic save function, you can simply tap continue game to continue the puzzle you play last t
ime.

last but not least, you may worry your finger have cover the puzzle, the photo puzzle fun have provide you a zoom function which will zoom the area your figure cover the screen. hope you enjoy the well designed pu
zzle game Photo Puzzle Fun on your iPhone/iPod Touch.

video Demo:


Screen Capture:

Puzzle Fun

Puzzle Fun 1.1

Puzzle Fun, the new puzzle game from Leungs Work! Work your way through the ever increasingly challenging 25 levels of this carefully designed with a beautiful photos. Starting at an easy pace, you will play with 3x3 puzzle. With every level, there are new challenges, size added with different photos, and even an occasional shuffle. Enjoy this simple and fun application, made exclusively for either your iPod Touch or iPhone.

Video Demo:

Go Walk Pedometer


Go Walk Pedometer 1.2

In the ALL NEW version 1.2, you now have an automatic screen dim function, which will dim your screen when you put the iPhone/iPod Touch in your pocket, saving you lots of battery power!

The whole program has been redesigned too, making Go Walk Pedometer one of the most accurate pedometers in the iTunes store. Also, a big new feature: every user can now custom set the sensitivity of the Go Walk Pedometer, so it can be made to suit heavy steps or light steppers! This deals with the only issue raised in feedback to the designer.

Screen Capture: