// Kuaga - iphone game
// Copyright (C) 2009-2011 Sammy Munoz
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>
//
// GameViewController.h
// Kuaga
//
// Created by Sammy Munoz on 3/15/09.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "BlockObject.h"
#define RANDOM_SEED() srandom(time(NULL))
#define RANDOM_INT(__MIN__, __MAX__) ((__MIN__) + random() % ((__MAX__+1) - (__MIN__)))
#define kFilename @"data.plist"
#define kMaximumArray 10
#define kFramesPerSecond 1.0f/60
#define kMaximumStartXPosition 355
#define kMinimumStartXPosition 25.0
#define kMaximumStartYPosition 320
#define kMinimumStartYPosition 25.0
#define kBlockWidth 41.0
#define kBlockHeight 41.0
#define kBlockInitialXPosition 418
#define kLabelWidth 35
#define kLabelHeight 20
#define kLabelInitialXPosition 460
#define kResetIndex -1
@interface GameViewController : UIViewController <UIActionSheetDelegate> {
NSTimer *timer;
NSMutableDictionary *blockMutableDictionary;
NSNumber *currentScore;
NSNumber *highScore;
UILabel *currentScoreLabel;
UILabel *highScoreLabel;
UILabel *currentText;
UILabel *highScoreText;
UILabel *livesText;
UILabel *livesLabel;
UILabel *label1;
UILabel *label2;
UILabel *label3;
UILabel *label4;
UILabel *label5;
NSNumber *orangeButterFlyCount;
NSNumber *blueBeeCount;
NSNumber *redSnailCount;
NSNumber *greenBeatleCount;
NSNumber *yellowWormCount;
BlockObject *removeBlockObject;
CGPoint point;
int blockSpeed;
float compiledTime;
int lives;
float fireRate;
}
@property (nonatomic, retain) NSTimer *timer;
@property (nonatomic, retain) NSMutableDictionary *blockMutableDictionary;
@property (nonatomic, retain) NSNumber *currentScore;
@property (nonatomic, retain) NSNumber *highScore;
@property (nonatomic, retain) UILabel *currentScoreLabel;
@property (nonatomic, retain) UILabel *highScoreLabel;
@property (nonatomic, retain) UILabel *currentText;
@property (nonatomic, retain) UILabel *highScoreText;
@property (nonatomic, retain) UILabel *livesText;
@property (nonatomic, retain) UILabel *livesLabel;
@property (nonatomic, retain) UILabel *label1;
@property (nonatomic, retain) UILabel *label2;
@property (nonatomic, retain) UILabel *label3;
@property (nonatomic, retain) UILabel *label4;
@property (nonatomic, retain) UILabel *label5;
@property (nonatomic, retain) NSNumber *orangeButterFlyCount;
@property (nonatomic, retain) NSNumber *blueBeeCount;
@property (nonatomic, retain) NSNumber *redSnailCount;
@property (nonatomic, retain) NSNumber *greenBeatleCount;
@property (nonatomic, retain) NSNumber *yellowWormCount;
@property (nonatomic, retain) BlockObject *removeBlockObject;
@property CGPoint point;
@property int blockSpeed;
@property float compiledTime;
@property int lives;
@property float fireRate;
-(void)startLoop;
-(void)stopLoop;
-(void)renderFrame;
-(void)back;
-(void)createBlocks;
-(void)initializeInterface;
-(void)initializeVariables;
-(void)moveBlocks;
-(void)updateScore;
-(void)addBlock:(BlockObject*)block withColorNumber:(NSNumber*)number withFrameSize:(CGRect)size;
-(NSString *)dataFilePath;
-(void)applicationWillTerminate:(NSNotification *)notification;
-(void)gameEnded;
-(void)onAnimationComplete:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;
-(void)makeScoreAnimation:(NSNumber*)score;
-(void)makeMissedAnimation:(NSString*)string;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——sdmunoz-Kuaga-0d8a426.zip
共73个文件
png:35个
m:9个
h:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 68 浏览量
2023-07-05
23:23:34
上传
评论
收藏 149KB ZIP 举报
温馨提示
iOS游戏应用源代码——sdmunoz-Kuaga-0d8a426.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——sdmunoz-Kuaga-0d8a426.zip (73个子文件)
sdmunoz-Kuaga-0d8a426
HowToPlayView.xib 6KB
README 1KB
GameView.xib 6KB
AchievementsView.xib 6KB
Kuaga.xcodeproj
sammymunoz.perspectivev3 43KB
sammymunoz.mode1v3 40KB
sdmunoz.mode1v3 41KB
project.pbxproj 48KB
sammymunoz.pbxuser 13KB
xcuserdata
sammymunoz.xcuserdatad
xcschemes
Kuaga-iPad.xcscheme 3KB
xcschememanagement.plist 667B
Kuaga.xcscheme 3KB
project.xcworkspace
contents.xcworkspacedata 150B
xcuserdata
sammymunoz.xcuserdatad
UserInterfaceState.xcuserstate 43KB
WorkspaceSettings.xcsettings 382B
sdmunoz.pbxuser 16KB
main.m 957B
CreditView.xib 6KB
MainMenuView.xib 6KB
Kuaga_Prefix.pch 179B
Classes
MainMenuViewController.m 5KB
MainMenuViewController.h 994B
CreditViewController.m 3KB
AchievementsViewController.m 9KB
CreditViewController.h 893B
BlockObject.m 1KB
KuagaAppDelegate.h 1KB
BlockObject.h 1KB
GameViewController.h 4KB
AchievementsViewController.h 1KB
HowToPlayViewController.h 900B
RootViewController.m 4KB
GameViewController.m 26KB
RootViewController.h 1KB
KuagaAppDelegate.m 1KB
HowToPlayViewController.m 3KB
images
greenbee.png 1KB
smallicon.png 4KB
orangeworm.png 1KB
orangebeatle.png 1KB
greenworm.png 1KB
redbutterfly.png 2KB
bluesnail.png 1KB
greenbeatle.png 1KB
yellowworm.png 1KB
btnachievements.png 1KB
greenbutterfly.png 2KB
btnmenu.png 780B
greensnail.png 1KB
bluebutterfly.png 2KB
redbee.png 1KB
redbeatle.png 1KB
redsnail.png 1KB
title.png 6KB
orangebee.png 1KB
bluebeatle.png 1KB
redworm.png 1KB
blueworm.png 1KB
rightbar.png 543B
yellowbeatle.png 1KB
background.png 1KB
bluebee.png 1KB
yellowsnail.png 1KB
yellowbee.png 1KB
orangesnail.png 1KB
btncredits.png 1KB
orangebutterfly.png 2KB
btnstart.png 1KB
yellowbutterfly.png 2KB
gamebackground.png 6KB
btnhow.png 1KB
MainWindow.xib 9KB
Info.plist 983B
共 73 条
- 1
资源评论
快乐无限出发
- 粉丝: 1137
- 资源: 7289
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功