//
// MGPongView.h
// MenuGames
//
// Created by Rasmus Andersson on 6/22/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
@class MGPongBallLayer, MGPongPaddleLayer, MGPeriodicTimer, MGPongAIPlayer;
@interface MGPongView : NSView <NSWindowDelegate> {
NSSize baseSize_;
NSTimer *animationTimer_;
MGPongBallLayer *ball_;
MGPongPaddleLayer *leftPaddle_;
MGPongPaddleLayer *rightPaddle_;
MGPongAIPlayer *aiPlayer_; // AI player
CALayer *pauseIcon_;
CALayer *banner_;
CGFloat bannerDestinationOpacity_;
__weak MGPongPaddleLayer *localPlayerPaddle_;
__weak MGPongPaddleLayer *remotePlayerPaddle_; // AI or non-local human
CALayer *vDividerLayer_;
CALayer *leftDividerLayer_;
CALayer *rightDividerLayer_;
CGFloat score_;
BOOL up1KeyPressed_;
BOOL down1KeyPressed_;
BOOL up2KeyPressed_;
BOOL down2KeyPressed_;
BOOL waitingToStartGame_;
BOOL isWarmingUp_;
BOOL isInJustWonState_;
uint64_t timeOfLastUpdate_;
long bannerTimerId_;
}
@property (readonly) MGPongPaddleLayer *rightPaddle;
@property (readonly) MGPongPaddleLayer *leftPaddle;
@property (readonly) MGPongPaddleLayer *firstPlayerPaddle;
@property (readonly) MGPongPaddleLayer *secondPlayerPaddle;
@property (assign, nonatomic) CGFloat score;
@property (assign, nonatomic) BOOL localMultiplayer;
@property (assign) BOOL isWarmingUp;
- (void)toggleFullscreen:(id)sender;
- (void)resetGame:(id)sender;
- (void)startGame:(id)sender;
- (void)newGame:(id)sender;
- (void)resumeUpdating;
- (void)pauseUpdating;
- (void)showBanner:(NSString*)imageName duration:(NSTimeInterval)duration;
- (void)hideBanner:(id)sender;
- (void)paddle:(MGPongPaddleLayer*)paddle
destinationChangedFrom:(CGFloat)startYPosition
withDuration:(CFTimeInterval)duration;
- (void)ball:(MGPongBallLayer*)ball hitPaddle:(MGPongPaddleLayer*)paddle;
- (void)ball:(MGPongBallLayer*)ball hitWallBehindPaddle:(MGPongPaddleLayer*)paddle;
- (void)ball:(MGPongBallLayer*)ball hitVerticalWallOnTop:(BOOL)topWall;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——rsms-menu-games-17bb424.zip
共41个文件
m:9个
psd:9个
h:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 104 浏览量
2023-07-05
23:22:43
上传
评论
收藏 5.87MB ZIP 举报
温馨提示
iOS游戏应用源代码——rsms-menu-games-17bb424.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——rsms-menu-games-17bb424.zip (41个子文件)
rsms-menu-games-17bb424
appstore
mac_installer_identity.cer 1KB
mac_app_identity.cer 1KB
screenshot.psd 8.33MB
MGPongView.h 2KB
MenuGames
winner-banner-left.png 528B
pause-icon.png 288B
pause-icon.psd 33KB
MGConstants.h 196B
MGPongPlayer.m 392B
MenuGamesAppDelegate.h 250B
MenuGames-Prefix.pch 147B
MGPongAIPlayer.m 4KB
main.m 255B
MGPongBallLayer.h 555B
MGPongAIPlayer.h 647B
winner-banner.psd 42KB
icon-16.psd 31KB
you-banner-2locals.png 313B
MenuGamesAppDelegate.m 5KB
you-banner-2locals.psd 39KB
MGGameWindow.h 241B
you-banner.psd 44KB
you-banner-right.png 258B
MGPongPlayer.h 403B
icon.psd 145KB
winner-banner-right.png 530B
you-banner-left.png 461B
icon-128.psd 60KB
MenuGames-Info.plist 1KB
icon.icns 43KB
MGConstants.m 261B
en.lproj
MainMenu.xib 154KB
Credits.rtf 436B
InfoPlist.strings 45B
MGPongBallLayer.m 10KB
MGGameWindow.m 2KB
icon-32.psd 40KB
MGPongView.m 20KB
MenuGames.xcodeproj
MGPongPaddleLayer.h 509B
project.pbxproj 20KB
MGPongPaddleLayer.m 2KB
共 41 条
- 1
资源评论
快乐无限出发
- 粉丝: 1137
- 资源: 7289
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功