美国高仿表开飞机游戏

撸管已经OUT了 盘点十大打飞机街机游戏(全文)
对于70后,80后的玩家来说街机陪伴了童年和少年,从够不着机子用板凳垫在下面开始玩起,一直玩到高中、大学长胡须了,可谓不亦乐乎。本人也是个街机游戏爱好者,不知道为此花了多少铜板(曾经是1块钱4个,后来1块钱只有2个,现在很多地方1块钱只能买1个了),而打灰机游戏一直是最热衷的,最近重温了一下街机的各种打灰机游戏,从画质、音乐、打击感三个方面打分,列出了一个TOP10名单,纯属个人意见,欢迎大家拍砖。顺便请大家投下票,有木有打过这些经典的灰机。相关新闻:TOP10:星际武力画质★★音乐★★打击感★综合评分5分画质渣,打击感差,但是在街机上玩的第一款打灰机游戏,是FC的移植版,BOSS碉堡了,是个举重的杠铃么?因为是第一款,为了纪念一下,所以勉强让他进入第十吧。TOP9:雷龙画质★★音乐★★打击感★★综合评分6分你要知道当时通关要花多少铜板,当时打第一关BOSS就花了我3个炸弹才炸出。音乐就别提了,当时游戏厅里都是哇哇叫的声音,完全没感觉到音乐的存在。TOP8:雷电画质★★音乐★★打击感★★☆综合评分6.5分不得不说的一款经典灰机游戏,现在已经出到5代了,可以看出经典所在,虽然飞机只有2架,小红和小蓝,但是当时的弹幕射击着实让人心涌澎湃。因为屏幕左边和右边还有延伸,所以特别要当心从左右两边突然射出的子弹,这也是本款游戏难点所在。TOP7:四国战机画质★★音乐★★打击感★★★综合评分7分终于可以选择多款飞机了,作战以一副地图的形式出现也着实给人一种新鲜感,一款不错的游戏。日本的一日司令(角色名字)可以让游戏画面定时3秒,那么早就有时空定时装置了啊。TOP6:战国世纪画质★★音乐★★★打击感★★★综合评分8分乍看简单,其实却有重要创新之处,那就是按住子弹发射键不放,然后听到“轰”的一生,然后在松开子弹键,会发射一种比普通子弹厉害的武器,这后来演变为彩京游戏的特色。音乐也十分好听,画面体现了日本战国文化。TOP5:怒首领蜂画质★★音乐★★★打击感★★★综合评分8分这款游戏最大的特色就是打分数,100SHOT拿到100000分的奖励,共有3款飞机,而且每一款又可以选择不同的攻击方式,给人一种耳目一新的感觉。TOP4:苍穹红莲队画质★★★音乐★★★★★打击感★★★★★综合评分9分3架飞机名字挺酷,屠龙、紫电、鹏牙。画面也不错,音乐更赞,原是PS版本上移植。创新点就是其实图像有2个空间,如果玩家按住子弹不放能发射导弹向不同平面的敌人攻击,可能是对立体攻击的一种尝试吧。TOP3:闪亮之星画质★★★音乐★★★★★打击感★★★★★综合评分9分有3个特色,第一就是把可供选择的6架飞机分成攻击性防御型和灵巧型,给玩家更多的选择空间;第二是增加了大量的道具,比如蓝玉、天神和LUCKY的收集,增加了可玩度;第三是战后评定的引入,电脑根据击退敌人数量和自身损伤以及连击的情况把一关按照ABCD来分级。TOP2:1945画质★★★★音乐★★★★打击感★★★★★综合评分9.5分1945其实共有3代,外加一个PULS版本,一代一代发展,飞机越来越先进,第三代居然连F117都有了,囧啊,但是本人还是喜欢第一架飞机P38闪电。TOP1:婆娑罗画质★★★★★音乐★★★★★打击感★★★★★综合评分10分一款难以超越的经典射击游戏,特别是结合日本战国历史,战国迷们不能错过啊。日本特色的音乐,丰富的剧情,漫天飞舞的子弹,让人欲罢不能。
(本文来源:游侠网
网易游戏24小时评论排行
评论22148条
评论4839条
评论1993条
评论1373条
评论1287条
网易公司版权所有国人高仿美国全能战斗机F15 如今的老爷机《创世战车》里重生国人高仿美国全能战斗机F15 如今的老爷机《创世战车》里重生军事冲号百家号F-15是美国麦道公司(现波音公司)为美国空军研制生产的双引擎、全天候、高机动性空中优势战斗机,它的设计思想就是要对1975年之后出现的任何地方战机都保证绝对空中优势,所以它的每一部位设计都是对空,不过之后它也在对地作战中有不错的表现,被称为全能战斗机。F-15机身前段包括头部雷达罩、座舱和电子设备舱,中段与机翼相连,后段为钛合金结构发动机舱,它的机翼设计采用切尖三角翼翼型,能在跨音速区的阻力增加变得平缓,战斗机的尾部采用的双发小间距布局,也是用来减小飞机阻力,所以F-15的机动性很高。F-15有许多衍生型号,初步估计就有二十余种,它的战绩也是硕果累累,比如在1984年与伊朗的小规模冲突中击落二架F-4,海湾战争中击落二架幻象F1等等,美国宣称到2000年,F-15缔造了104架击坠记录,虽然目前的数据未有官方统计,但是就能看出F-15是全能战斗机不为过。图为衍生型号在《创世战车》里,中国玩家纯手工打造出来了高仿F-15战机,为了最大程度还原,不影响美观,未安装移动装置,所以可以在车库中先看看了。其中使用了“翼龙”座舱、铆钉车轮、小型履带、改进版引擎和火箭推进器,武器使用不太限制,看大家的个人喜好。本文仅代表作者观点,不代表百度立场。系作者授权百家号发表,未经许可不得转载。军事冲号百家号最近更新:简介:国际最新军事热点,解读全球战略幕后的博弈作者最新文章相关文章拒绝访问 | steamcn.com | 百度云加速
请打开cookies.
此网站 (steamcn.com) 的管理员禁止了您的访问。原因是您的访问包含了非浏览器特征(3e90e8d46aca436a-ua98).
重新安装浏览器,或使用别的浏览器后使用快捷导航没有帐号?
查看: 2203|回复: 12
新人欢迎积分1 阅读权限1积分22精华0UID帖子金钱63 威望0
UID帖子威望0 多玩草0 草
不喜勿喷!我是业余LOL爱好者,不打排位。只因视野下架跪求一款类似或者高仿LOL的游戏 ‘可以无限视野’的。
新人欢迎积分0 阅读权限99积分38608精华0UID帖子金钱64695 威望0
Lv.10, 积分 38608, 距离下一级还需 16392 积分
UID帖子威望0 多玩草1282 草
小时代3& &&&
新人欢迎积分1 阅读权限50积分2150精华0UID帖子金钱33636 威望0
Lv.5, 积分 2150, 距离下一级还需 350 积分
UID帖子威望0 多玩草0 草
目前不知道& &--
新人欢迎积分1 阅读权限50积分1049精华0UID帖子金钱4759 威望0
Lv.5, 积分 1049, 距离下一级还需 1451 积分
UID帖子威望0 多玩草0 草
小时代2& && && && && && && &
儿时的苹果糖丶
新人欢迎积分1 阅读权限80积分13466精华0UID帖子金钱8879 威望3
论坛巫妖王
Lv.8, 积分 13466, 距离下一级还需 6534 积分
UID帖子威望3 多玩草945 草
300英雄。。你百度。。。& && && && &
新人欢迎积分1 阅读权限1积分22精华0UID帖子金钱63 威望0
UID帖子威望0 多玩草0 草
求**!!!求**!!!求**!!!求**!!!
新人欢迎积分1 阅读权限50积分1049精华0UID帖子金钱4759 威望0
Lv.5, 积分 1049, 距离下一级还需 1451 积分
UID帖子威望0 多玩草0 草
胸大是天生的 发表于
真的是天生的咩我认识你哦-.-
新人欢迎积分0 阅读权限50积分1931精华0UID帖子金钱602 威望0
Lv.5, 积分 1931, 距离下一级还需 569 积分
UID帖子威望0 多玩草0 草
不可能,高仿要赔很多钱的,谁会脑残到做这种高仿游戏
新人欢迎积分1 阅读权限1积分22精华0UID帖子金钱63 威望0
UID帖子威望0 多玩草0 草
求**!!!求**!!!求**!!!
新人欢迎积分1 阅读权限1积分22精华0UID帖子金钱63 威望0
UID帖子威望0 多玩草0 草
求SF!!!求SF!!!求SF!!!
新人欢迎积分1 阅读权限40积分473精华0UID帖子金钱8393 威望0
Lv.4, 积分 473, 距离下一级还需 527 积分
UID帖子威望0 多玩草80 草
sssdad2eqw 发表于
求SF!!!求SF!!!求SF!!!
新人欢迎积分1 阅读权限40积分497精华0UID帖子金钱1547 威望0
Lv.4, 积分 497, 距离下一级还需 503 积分
UID帖子威望0 多玩草0 草
百度,英霸联盟,仿真山寨程度99%
新人欢迎积分1 阅读权限40积分638精华0UID帖子金钱5259 威望0
Lv.4, 积分 638, 距离下一级还需 362 积分
UID帖子威望0 多玩草0 草
300 英雄& && && && && && && && &
手机论坛勋章
APP发帖双倍积分,登陆即送勋章!
需要金钱:1100
手机盒子客户端点击或扫描下载
Powered bycocos2d-x实现高仿微信打飞机游戏
#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
#include "ChangeBullet.h"
#include "FoePlane.h"
using namespace cocos2d;
class HelloWorld : public cocos2d::CCLayer
& // Method 'init' in cocos2d-x returns
bool, instead of 'id' in cocos2d-iphone (an object pointer)
& & virtual bool init();
& // there's no 'id' in cpp, so we
recommend to return the class instance pointer
& & static cocos2d::CCScene* scene();
& // a selector callback
& & void menuCloseCallback(CCObject* pSender);
& // preprocessor macro for "static
create()" constructor ( node() deprecated )
& CREATE_FUNC(HelloWorld);
& // 背景 --
& & CCSprite *BG1;
& & CCSprite *BG2;
& & int adjustmentBG;
判断游戏是否结束
& & bool isGameO
& // 玩家飞机
& & CCSprite *
& // 飞机的子弹
& & CCSprite *
& & int bulletS//子弹速度
& //敌人飞机
& & CCArray *foeP
& & int smallPlaneT//25毫秒出现一个敌人小飞机
& & int mediumPlaneT//400毫秒出现一个敌人的中等飞机
& & int bigPlaneT//每个<span STYLE="CoLor: #秒中出现一个敌人的打飞机
& //空降物品时间计数
& & int propT
& //空降物品
& //ChangeBullet *
& //判断空间物品是否出去了
& & bool isV
& & //得分
& & CCLabelTTF *scoreL
& & int scoreI//得分
& & //开始
& & CCMenu *
& //更换子弹
& & bool isBigB
& & bool isChangeB
& & int bulletLastT//更换子弹持续的时间
& //游戏结束提示
& & CCLabelTTF *gameOverL
& //初始化数据
& & void initData();
& & //背景
& & void loadBackground();
& & void scrollBackground();
& //重写触屏回调函数
& & virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
& & virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
& & virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);
& //重写生命周期函数
& & virtual void onEnter();
& & virtual void onExit();
& //更新函数
& & void update(float dt);
& //载入玩家
& & void loadPlayer();
& //制造子弹
& & void madeBullet();
& & void firingBullet();
& & void resetBullet();
& //添加敌机
& & void addFoePlane();
& //移动敌机
& & void moveFoePlane();
& //子弹持续时间
& & void bulletLast();
& //制造小飞机
& & FoePlane *makeSmallFoePlane();
& //制造中等飞机
& & FoePlane *makemediumFoePlane();
& //制造大飞机
& & FoePlane *makeBigFoePlane();
& //碰撞检测
& & void collisionDetection();
& & void foePlaneBlowup(FoePlane *foePlane);
& & void blowupEnd(FoePlane *foePlane);
& //游戏结束
& & void GameOver();
& //游戏暂停
& & void GamePause();
& //游戏开始
& & void GameStart();
& //游戏重新开始
& & void GameRestart();
& //玩家飞机爆炸动画
& & void playerPlaneBlowup();
& //飞机的小尾巴
& & void getBoom(CCPoint pt);
& & void getLine(CCPoint pt);
& CCMotionStreak*
__HELLOWORLD_SCENE_H__
"HelloWorldScene.h"
"SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosD
CCScene* HelloWorld::scene()
& // 'scene' is an autorelease object
& & CCScene *scene = CCScene::create();
& // 'layer' is an autorelease object
& HelloWorld *layer = HelloWorld::create();
& // add layer as a child to scene
& & scene-&addChild(layer);
& // return the scene
& & return
// on "init" you need to initialize your instance
bool HelloWorld::init()
& //////////////////////////////
& // 1. super init first
& & if ( !CCLayer::init() )
& & return
& //初始化数据
& initData();
& //载入背景
& loadBackground();
& loadPlayer();
& madeBullet();
& resetBullet();
& //系统更新函数
& scheduleUpdate();
& return true;
void HelloWorld::initData()
& adjustmentBG = 568;
& isGameOver = false;
& //子弹初速度是25
& bulletSpeed = 25;
& //各种类型飞机出现的时间间隔
& smallPlaneTime = 0;
& mediumPlaneTime = 0;
& bigPlaneTime = 0;
& bulletLastTime = 1200;
& //空降物品计数
& & propTime = 0;
& //得分计数
& & scoreInt = 0;
& isBigBullet = false;
& isChangeBullet = false;
& foePlanes = CCArray::create();
& & foePlanes-&retain();
void HelloWorld::loadBackground()
& //下雪拉
& CCParticleSystem* particleSyetem =
CCParticleSnow::create();
particleSyetem-&setTexture( CCTextureCache::sharedTextureCache()-&addImage("snow.png"));
& & addChild(particleSyetem,1);
& CCSpriteFrameCache::sharedSpriteFrameCache()-&addSpriteFramesWithFile("gameArts.plist");
& CCSpriteBatchNode *spriteSheet =
CCSpriteBatchNode::batchNodeWithFile("gameArts.png");
& & addChild(spriteSheet);
CCSprite::spriteWithSpriteFrameName("background_2.png");
CCSprite::spriteWithSpriteFrameName("background_2.png");
& & BG1-&setPosition(ccp(0,0));
& & BG2-&setPosition(ccp(0,566));
& BG1-&setAnchorPoint(ccp(0,0));
& BG2-&setAnchorPoint(ccp(0,0));
& & addChild(BG1,0,888);
& & addChild(BG2,0,999);
& //显示分数的Label
& scoreLabel = CCLabelTTF::create("Score:0000", "Zapfino", 20);
& scoreLabel-&setPosition(ccp(170,450));
& addChild(scoreLabel,4,333);
& //显示暂停按钮
& strike=CCMotionStreak::streakWithFade(1.0f,//尾巴持续的时间
16.0f,//尾巴大小
16.0f,//图片的大小
ccc3(0,0,255),//颜色
"fire.png"//使用的图片
& & addChild(strike,1);
& & strike-&setPosition(ccp(240,160));
& CCMenuItemImage *pCloseItem = CCMenuItemImage::create(
& & "BurstAircraftPause.png",
& & "BurstAircraftPause.png",
& & menu_selector(HelloWorld::GamePause) );
& & pCloseItem-&setPosition( ccp(CCDirector::sharedDirector()-&getWinSize().width - 300, 460) );
& // create menu, it's an autorelease
& & CCMenu* pMenu = CCMenu::create(pCloseItem, NULL);
& & pMenu-&setPosition( CCPointZero );
& & this-&addChild(pMenu, 1);
void HelloWorld::scrollBackground()
& & CCSprite *bg1 = CCSprite::create();
& & bg1 = (CCSprite *)this-&getChildByTag(888);
& & CCSprite *bg2 = CCSprite::create();
& & bg2 = (CCSprite *)this-&getChildByTag(999);
bg1-&setPositionY(bg1-&getPositionY()-2);//背景<span STYLE="CoLor: #向下移动
bg2-&setPositionY(bg1-&getPositionY()+566);//背景<span STYLE="CoLor: #跟随背景<span STYLE="CoLor: #向下移动
& & if(bg2-&getPositionY() == 0)
& bg1-&setPositionY(0);
void HelloWorld::loadPlayer()
& //从gameArts.png上面截取一个小图片
& player = CCSprite::create("gameArts.png", CCRectMake(432,
& & //锚点
& player-&setAnchorPoint(ccp(0.5,
& & addChild(player,2,555);
& //创建动画
& & CCAnimation *animation = CCAnimation::create();
& & animation-&setDelayPerUnit(0.1f);
& //添加每个zhen
& & animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 0,
66, 82)));
& & animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 332, 66, 80)));
& & CCAnimate *anim = CCAnimate::create(animation);
& & player-&runAction(::cocos2d::CCRepeatForever::create(anim));
& player-&setAnchorPoint(ccp(0.5,
& & player-&setPosition(ccp(160,50));
void HelloWorld::madeBullet()
& bullet = CCSprite::spriteWithSpriteFrameName((!isBigBullet)?"bullet1.png":"bullet2.png");
& bullet-&setAnchorPoint(ccp(0.5,
& addChild(bullet);
void HelloWorld::resetBullet()
((isBigBullet&&isChangeBullet) || (!isBigBullet&&isChangeBullet))
& & bullet-&removeFromParentAndCleanup(false);
& madeBullet();
& & isChangeBullet
& & bulletSpeed = (480 - (player-&getPositionY() + 50))/15;
(bulletSpeed&&/span&5)
bulletSpeed=5;
& bullet-&setPosition(ccp(player-&getPositionX(), player-&getPositionY()+50));
void HelloWorld::firingBullet()
& bullet-&setPosition(ccp(bullet-&getPositionX(), bullet-&getPositionY()+bulletSpeed));
& & if (bullet-&getPositionY()&460) {
& resetBullet();
void HelloWorld::onEnter(){
& CCDirector::sharedDirector()-&getTouchDispatcher()-&addTargetedDelegate(this,0,false);
& & CCLayer::onEnter();
void HelloWorld::onExit(){
& CCDirector::sharedDirector()-&getTouchDispatcher()-&removeDelegate(this);
& & CCLayer::onExit();
bool HelloWorld::ccTouchBegan(CCTouch* touch, CCEvent* event){
& CCLOG("ccTouchBegan");
& return true;
void HelloWorld::ccTouchMoved(CCTouch* touch, CCEvent* event){
& //CCLOG("ccTouchMoved");
& //飞机烟花么?
& getLine(touch-&getLocation());
& strike-&setPosition(touch-&getLocation());
& & CCSprite *nowSprite = (CCSprite *)this-&getChildByTag(555);
& (nowSprite-&getPosition().x-touch-&getLocation().x)&&span style="color:
#272ad8"&50
& &&(nowSprite-&getPosition().x-touch-&getLocation().x)&-50
& (nowSprite-&getPosition().y-touch-&getLocation().y)&&span style="color:
#272ad8"&30
& &&(nowSprite-&getPosition().y-touch-&getLocation().y)&-30
& nowSprite-&setPosition(touch-&getLocation());
& //CCLOG("nowSprite &
",nowSprite-&getPosition().x,nowSprite-&getPosition().y);
& //CCLOG("touch&
& & %f& %f
",touch-&getLocation().x,touch-&getLocation().y);
void HelloWorld::ccTouchEnded(CCTouch* touch, CCEvent* event){
& //CCLOG("ccTouchEnded");
getBoom(touch-&getLocation());
void HelloWorld::update(float dt)
& if(!isGameOver)
scrollBackground();
firingBullet();
& addFoePlane();
moveFoePlane();
& bulletLast();
collisionDetection();
void HelloWorld::bulletLast()
(isBigBullet)
(bulletLastTime &
bulletLastTime --;
bulletLastTime = 1200;
isBigBullet = false;
isChangeBullet = true;
void HelloWorld::collisionDetection()
& //检测子弹和敌方飞机是否碰撞
& & for (int i = 0;i&&span style="color:
#4f8187"&foePlanes-&count();i++)
& FoePlane
*tmpPlane =(FoePlane *)
foePlanes-&objectAtIndex(i);
& & if (tmpPlane-&boundingBox().intersectsRect(bullet-&boundingBox()))
& //CCLOG("子弹和敌方飞机相撞");
//子弹重设
resetBullet();
& //判读敌人飞机是否还有血
tmpPlane-&hp =
tmpPlane-&hp - (isBigBullet?2:1);//一个子弹一滴血
if (tmpPlane-&hp &= 0)
& & //运行爆炸动画
//CCLOG("运行爆炸动画");
& & //各种类型的飞机爆炸的效果
& & foePlaneBlowup(tmpPlane);
& & foePlanes-&removeObject(tmpPlane);
//CCLOG("每个子弹都有打击效果
主要是中等飞机和大飞机");
& //每个子弹都有打击效果主要是中等飞机和大飞机
//[self hitAnimationToFoePlane:tmpPlane];
& //检测敌方飞机和我方飞机是否相撞
& & for (int i = 0;i&&span style="color:
#4f8187"&foePlanes-&count();i++)
& FoePlane
*tmpPlane =(FoePlane *)
foePlanes-&objectAtIndex(i);
& & if (tmpPlane-&boundingBox().intersectsRect(player-&boundingBox()))
CCLOG("玩家飞机和敌方飞机相撞");
//游戏结束
GameOver();
//玩家飞机爆炸
& playerPlaneBlowup();
//敌方飞机爆炸
foePlaneBlowup(tmpPlane);
//敌方飞机移出数组
void HelloWorld::GameOver()
& & isGameOver = true;
& GamePause();
& gameOverLabel = CCLabelTTF::create("GAME
OVER", "Zapfino", 20);
& & gameOverLabel-&setPosition(ccp(160, 300));
& addChild(gameOverLabel,4);
& CCMenuItemFont *gameOverItem = CCMenuItemFont::create("Restart", this,menu_selector(HelloWorld::GameRestart));
& & restart = CCMenu::create(gameOverItem,NULL);
& & restart-&setPosition(ccp(160, 200));
& & addChild(restart,4);
void HelloWorld::GamePause()
& & if (isGameOver == false) {
& CCMenuItemFont *gameOverItem = CCMenuItemFont::create("Start
Game", this,
menu_selector(HelloWorld::GameStart));
& gameOverItem-&setFontName("Zapfino");
& gameOverItem-&setFontSize(20);
& restart =
CCMenu::create(gameOverItem,NULL);
& addChild(restart,4);
& isGameOver =
//prop-&stopAllA
void HelloWorld::GameStart()
(isGameOver) {
& removeChild(restart, true);
& isGameOver =
void HelloWorld::GameRestart()
& removeAllChildrenWithCleanup(true);
& foePlanes-&removeAllObjects();
& initData();
& loadBackground();
& loadPlayer();
& madeBullet();
& resetBullet();
void HelloWorld::playerPlaneBlowup()
& //首先飞机停止所有动画
& player-&stopAllActions();
& //创建动画
& & CCAnimation *animation = CCAnimation::create();
& & animation-&setDelayPerUnit(0.1f);
& //添加每个zhen
& & animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 249, 66, 82)));
& & animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 83, 66,
& & animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 166, 66, 82)));
& & animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(47, 569, 44, 52)));
& & CCAnimate *anim = CCAnimate::create(animation);
& & player-&runAction(CCSequence::actions(anim,NULL));
void HelloWorld::foePlaneBlowup(FoePlane *foePlane)
& & int animationNum = 0;
& & if (foePlane-&planeType == 1)
& animationNum = 4;
& scoreInt +=
& & //首先飞机停止所有动画
& foePlane-&stopAllActions();
& //创建动画
& CCAnimation
*animation = CCAnimation::create();
& animation-&setDelayPerUnit(0.1f);
& & //添加每个zhen
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(47, 657, 34, 24)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(420, 729, 34, 32)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(472, 719, 38, 34)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(479, 413, 32, 32)));
& CCAnimate
*anim = CCAnimate::create(animation);
& & CCCallFuncN
*end = CCCallFuncN::actionWithTarget(this,
callfuncN_selector(HelloWorld::blowupEnd));
& foePlane-&runAction(CCSequence::actions(anim,end,NULL));
& & if (foePlane-&planeType == 3)
& animationNum = 4;
& scoreInt +=
& & //首先飞机停止所有动画
& foePlane-&stopAllActions();
& //创建动画
& CCAnimation
*animation = CCAnimation::create();
& animation-&setDelayPerUnit(0.1f);
& & //添加每个zhen
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 538, 46, 60)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 599, 46, 60)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(432, 476, 46, 62)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(0, 628,
46, 52)));
& CCAnimate
*anim = CCAnimate::create(animation);
& & CCCallFuncN
*end = CCCallFuncN::actionWithTarget(this,
callfuncN_selector(HelloWorld::blowupEnd));
& foePlane-&runAction(CCSequence::actions(anim,end,NULL));
& & if (foePlane-&planeType == 2)
& animationNum = 7;
& scoreInt +=
& & //首先飞机停止所有动画
& foePlane-&stopAllActions();
& //创建动画
& CCAnimation
*animation = CCAnimation::create();
& animation-&setDelayPerUnit(0.1f);
& & //添加每个zhen
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(0, 754,
110, 169)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(321, 171, 110, 169)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(321, 514, 110, 169)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(321, 343, 110, 169)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(321, 0,
110, 169)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(213, 569, 94, 133)));
& animation-&addSpriteFrame(CCSpriteFrame::create("gameArts.png", CCRectMake(117, 569, 94, 133)));
& CCAnimate
*anim = CCAnimate::create(animation);
& & CCCallFuncN
*end = CCCallFuncN::actionWithTarget(this,
callfuncN_selector(HelloWorld::blowupEnd));
& foePlane-&runAction(CCSequence::actions(anim,end,NULL));
& & CCString *scoreString = CCString::createWithFormat("Score:%d",scoreInt);
& & scoreLabel-&setString(scoreString-&getCString());
void HelloWorld::blowupEnd(FoePlane *foePlane)
& & FoePlane *tmpPlane = (FoePlane *)foeP
tmpPlane-&removeFromParentAndCleanup(false);
void HelloWorld::addFoePlane()
& smallPlaneTime ++;
& mediumPlaneTime ++;
& bigPlaneTime ++;
(smallPlaneTime & 25)
& & //CCLOG("制造小飞机");
& FoePlane
*smallPlane = HelloWorld::makeSmallFoePlane();
& addChild(smallPlane,3);
& foePlanes-&addObject(smallPlane);
& & smallPlaneTime
(mediumPlaneTime & 400)
& & //CCLOG("制造中飞机");
& FoePlane
*mediumPlane = HelloWorld::makemediumFoePlane();
& addChild(mediumPlane,3);
& foePlanes-&addObject(mediumPlane);
& & mediumPlaneTime
(bigPlaneTime & 700)&
& & //CCLOG("制造大飞机");
& FoePlane
*bigPlane = HelloWorld::makeBigFoePlane();
& addChild(bigPlane,3);
& foePlanes-&addObject(bigPlane);
& & // [self
performSelector:@selector(bigPlaneOutSount) withObject:nil
afterDelay:0.5];
& bigPlaneTime
& //CCLOG("foePlanes ===
%d",foePlanes-&count());
FoePlane * HelloWorld::makeSmallFoePlane()
& & FoePlane *smallPlane =(FoePlane *) FoePlane::spriteWithSpriteFrameName("enemy1_fly_1.png");
& & smallPlane-&setAnchorPoint(ccp(0,
& & smallPlane-&setPosition(ccp(arc4random()%290+17,
& & smallPlane-&planeType = 1;
& & smallPlane-&hp = 1;
& & smallPlane-&speed = arc4random()%4 + 2;
& //CCLOG(" smallPlane&
& x= %d & & y =
",smallPlane-&getPositionX(),smallPlane-&getPositionY());
& & return smallP
FoePlane * HelloWorld::makemediumFoePlane()
& & FoePlane *mediumPlane =(FoePlane *) FoePlane::spriteWithSpriteFrameName("enemy3_fly_1.png");
& & mediumPlane-&setAnchorPoint(ccp(0,
& & mediumPlane-&setPosition(ccp(arc4random()%280+23,
& & mediumPlane-&planeType = 3;
& & mediumPlane-&hp = 15;
& & mediumPlane-&speed = arc4random()%3 + 2;
& //CCLOG(" mediumPlane&
& x= %d & & y =
",mediumPlane-&getPositionX(),mediumPlane-&getPositionY());
& & return mediumP
FoePlane * HelloWorld::makeBigFoePlane()
& & FoePlane *bigPlane =(FoePlane *) FoePlane::spriteWithSpriteFrameName("enemy2_fly_1.png");
& & bigPlane-&setAnchorPoint(ccp(0,
& & bigPlane-&setPosition(ccp(arc4random()%210+55,
& & bigPlane-&planeType = 2;
& & bigPlane-&hp = 25;
& & bigPlane-&speed = arc4random()%2 + 2;
& //CCLOG(" bigPlane&
& x= %d & & y =
%d ",bigPlane-&getPositionX(),bigPlane-&getPositionY());
& & return bigP
void HelloWorld::moveFoePlane()
& & for (int i = 0 ; i&&span style="color:
#4f8187"&foePlanes-&count(); i++)
& FoePlane*
temPlane =& (FoePlane*)foePlanes-&objectAtIndex(i);
& & //CCLog("
temPlane& & x= %d
& & y = %d
",temPlane-&getPositionX(),temPlane-&getPositionY());
& temPlane-&setPosition(ccp(temPlane-&getPositionX(), temPlane-&getPositionY()-temPlane-&speed));
(temPlane-&getPositionY()
foePlanes-&removeObject(temPlane);
temPlane-&removeFromParentAndCleanup(false);
void HelloWorld::getLine(CCPoint pt)
& cocos2d::CCParticleSystemQuad *mSystem=CCParticleSystemQuad::particleWithFile("himiParticle.plist");
//mSystem-&initWithFile("Particle.plist");//plist文件可以通过例子编辑器获得
mSystem-&setTextureWithRect(CCTextureCache::sharedTextureCache()-&addImage("fire.png")
& ,CCRectMake(0,0,32,32));//加载图片,第一个参数是纹理,第二个参数是选择图片上的位置
mSystem-&setBlendAdditive(true);//这个调用必不可少
& & mSystem-&setPosition(pt);//设置位置
& & mSystem-&setDuration(0.000003f);
& & mSystem-&setLife(0.000005f);
& & addChild(mSystem);
& //mSystem-&release();
& //delete mS
& //CC_SAFE_DELETE(mSystem);
mSystem-&setAutoRemoveOnFinish(true);
void HelloWorld::getBoom(CCPoint pt)
& cocos2d::CCParticleSystemQuad & *mSystem2 =
CCParticleSystemQuad::particleWithFile("himiParticle.plist");
//mSystem2-&initWithFile("Boom.plist");//plist文件可以通过例子编辑器获得
mSystem2-&setTextureWithRect(CCTextureCache::sharedTextureCache()-&addImage("stars.png")
& & ,CCRectMake(0,0,32,32));//加载图片,第一个参数是纹理,第二个参数是选择图片上的位置
& & mSystem2-&setBlendAdditive(true);//这个调用必不可少
& & mSystem2-&setPosition(pt);//设置位置
& & mSystem2-&setDuration(0.05f);
& & addChild(mSystem2);
& //mSystem2-&release();
& //CC_SAFE_DELETE(mSystem2);
mSystem2-&setAutoRemoveOnFinish(true);
void HelloWorld::menuCloseCallback(CCObject* pSender)
& CCDirector::sharedDirector()-&end();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
& & exit(0);
FoePlane.h
xiaoguodongAttackPlane
Created by Dong on 13-10-9.
__xiaoguodongAttackPlane__FoePlane__
__xiaoguodongAttackPlane__FoePlane__
#include "cocos2d.h"
#include "cocos-ext.h"
using namespace cocos2d::extension;
class FoePlane:public cocos2d::CCSprite
virtual bool init();
static cocos2d::CCScene* scene();
CREATE_FUNC(FoePlane);
int planeT
直接运行肯定会崩溃的 &需要加入游戏的一些资源文件
自己还添加了一些粒子效果
&虽然风格和原来的黑白画面不太协调而且很花哨但是自己很喜欢。。。
没有加道具和音效,期待3.0版本吧,嘻嘻
360云盘地址:
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。}

我要回帖

更多关于 高仿手表 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信