added sound to pong and fixed some bugs
This commit is contained in:
parent
c7919309e9
commit
ac4036dfc8
15 changed files with 1373 additions and 111 deletions
|
@ -9,6 +9,7 @@
|
|||
#import <UIKit/UIKit.h>
|
||||
#import "GGSDelegate.h"
|
||||
#import "GGSNetwork.h"
|
||||
#import <AVFoundation/AVAudioPlayer.h>
|
||||
|
||||
enum GameType {
|
||||
kGameTypeSinglePlayer = 0,
|
||||
|
@ -28,6 +29,11 @@ enum GameType {
|
|||
IBOutlet UILabel *pointsP2;
|
||||
|
||||
GGSNetwork *ggsNetwork;
|
||||
|
||||
AVAudioPlayer *pingSound;
|
||||
AVAudioPlayer *pongSound;
|
||||
AVAudioPlayer *lostSound;
|
||||
|
||||
}
|
||||
|
||||
@property (nonatomic, retain) IBOutlet UIView *ballView;
|
||||
|
@ -40,6 +46,8 @@ enum GameType {
|
|||
|
||||
@property (nonatomic, retain) GGSNetwork *ggsNetwork;
|
||||
|
||||
- (void)restart;
|
||||
|
||||
- (void)startPositions;
|
||||
- (void)zeroPoints;
|
||||
|
||||
|
|
Reference in a new issue