ttrapp.h
来自「TTR的一个经典游戏」· C头文件 代码 · 共 83 行
H
83 行
/*****************Main Menu Play TTR Tracks New Tracks (downloadable) Downloaded Tracks Artist Track Info on track (high scores, author, difficulty) iPod Library Downloads list of songs from server, compares to local database Random Song Create Artist Album Song Instructions Record Create username / unique ID Save to Internet Back to Main Menu*****************/enum { msNoMenu, msMainMenu, msPlayMenu, msCreateMenu, msSongFinished, msSongRecorded, msDownloading};@interface TtrApp : UIApplication { AVController * avc; AVQueue * avq; AVItem * avi; UIBox *mainView; UIView *menuView; UIView *gameView; UIView *effectsView; NSString *path; NSError *error; UITextLabel * scoreLabel; NSTimer * timer; BOOL songStarted, songFinished, recording; double lastplayingtime; int tapindex, badindex; NSMutableArray * sparkles; NSMutableArray * glows; NSMutableArray * animatables; NSMutableArray * buttons; float glowlevels[4]; int score; NSString * recordFile; UIImage * wrongImage, * goodImage, * perfectImage; Downloader * songDownload, * tapDownload; int mstate;}- (void) applicationDidFinishLaunching: (id) unused;- (void) mouseClickAtX: (float) x Y: (float) y;- (int) columnForX: (float) x;- (int) xForColumn: (int) x;- (void) loadTapsFromFile: (NSString *) filename;- (void) prepareForAnotherTap;- (void) recordTapAtX: (float) x Y: (float) y;- (void) fireWorksBurstAtX: (float)x Y: (float) y;- (void) mouseClickAtX: (float) x Y: (float) y;- (void) scoreChange: (int) ds X: (float) x Y: (float) y;- (void) rewardWithImage: (UIImage *)img atX: (float)x Y: (float)y;- (void) applicationWillSuspend;- (void)fireTimer:(NSTimer*)theTimer;- (void) animationTickAtTime: (double) d;- (void)songHasFinished;- (void)triggerButton: (NSString *) triggerWord;@end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?