Giter Club home page Giter Club logo

flyingace's Introduction

flyingACE (王牌飞行员)


开发环境 Dev Environment

  • Linux OS (Ubuntu 14.04 LTS)
  • Eclipse 4.4.1
  • Cocos2d-x-3.3
  • Android SDK 4.4.2 (API 19)
  • Android NDK r10d
  • gcc 4.8

配置方法 Configure

mkdir MyGame && mkdir -p MyGame/cocos2dNew && cd MyGame
cocos new FlyingACE -l cpp -p com.YOURNAME.flyingACE -d cocos2dNew/
git clone https://github.com/netbeen/flyingACE.git
rm -r cocos2dNew/FlyingACE/Classes/ && rm -r cocos2dNew/FlyingACE/Resources/ && rm cocos2dNew/FlyingACE/proj.android/jni/Android.mk
cp -r cocos2dNew/FlyingACE/* flyingACE/
sed -i 's/screenOrientation="landscape"/screenOrientation="reversePortrait"/' flyingACE/proj.android/AndroidManifest.xml 
rm -r cocos2dNew/
  • 然后用Eclipse导入Android工程即可。

游戏界面 GUI

Screen-Recording-2021-11-13-at-21.54.57.1.mp4

类功能分布 Files

  • AppDelegate: 程序入口,初始化Director类的参数,场景构建,布景层挂载
  • BulletLayer: 子弹层,用批量渲染技术加载子弹并维护子弹数据
  • BulletUserData: 子弹数据
  • ControlLayer: 游戏控制层,负责分数显示和暂停按钮
  • EnemyLayer: 敌机层,加载敌机并维护敌机数据,检测敌机与子弹、敌机与我机及碰撞
  • EnemyUserData: 敌机数据
  • GameBackgroundLayer: 布景层,实现地图加载,循环滚动
  • GameScene: 游戏主场景
  • PlaneLayer: 飞机层,渲染飞机动画,响应用户滑屏操作
  • PlaneUserData: 飞机数据
  • ResultBackgroundLayer: 游戏结果场景中显示背景图片的层
  • ResultButtonLayer: 游戏结果场景中显示并回调按钮事件的层
  • ResultScene: 游戏结果场景
  • SelectBackgroundLayer: 选择关卡界面背景层
  • SelectButtonLayer: 选择关卡界面按钮层
  • SelectScene: 选择关卡场景
  • UFOLayer: 不明飞行物层,目前用于投放武器加强的buff和大招buff
  • UFOUserData: 数据记录类,用于记录gift的类型
  • WelcomeBackgroundLayer: 欢迎界面中的背景层
  • WelcomeButtonLayer: 欢迎界面中的按钮回调函数
  • WelcomeScene: 欢迎界面

鸣谢 Thanks

  • 特别感谢TexturePacker的作者Andreas Löw为本次开发提供Pro版的序列号
  • Thanks to Mr. Andreas Löw (the author of TexturePacker), for prividing the free key of TexturePacker pro.

联系方式 Contact Me


关键字 Keywords

  • cocos cocos2d cocos2dx cocos2dx3.0


Dev Environment

  • Linux OS (Ubuntu 14.04 LTS)
  • Eclipse 4.4.1
  • Cocos2d-x-3.3
  • Android SDK 4.4.2 (API 19)
  • Android NDK r10d
  • gcc 4.8

Configure

mkdir MyGame && mkdir -p MyGame/cocos2dNew && cd MyGame
cocos new FlyingACE -l cpp -p com.YOURNAME.flyingACE -d cocos2dNew/
git clone https://github.com/netbeen/flyingACE.git
rm -r cocos2dNew/FlyingACE/Classes/ && rm -r cocos2dNew/FlyingACE/Resources/ && rm cocos2dNew/FlyingACE/proj.android/jni/Android.mk
cp -r cocos2dNew/FlyingACE/* flyingACE/
sed -i 's/screenOrientation="landscape"/screenOrientation="reversePortrait"/' flyingACE/proj.android/AndroidManifest.xml
rm -r cocos2dNew/ 
  • And then, Import the project with Eclipse for Android project.

GUI

Screen-Recording-2021-11-13-at-21.54.57.1.mp4

Files

  • AppDelegate: The init access of the program. Init the Direct and construct the Scenes.
  • BulletLayer: Bullet Layer, using SpriteBatchNode to load bullets.
  • BulletUserData: The data struct defined by myself. Recording the damage of each bullet.
  • ControlLayer: Game Control Layer, it provide the function of displaying scrore and pause button.
  • EnemyLayer: Loading the enemys, and also, prividing the interface of the crash detecting.
  • EnemyUserData: The datastruct recording the some paramater of enemy plane, like HP.
  • GameBackgroundLayer: Background Layer, auto loading the background image and rolling.
  • GameScene: The main scene of the game, contain the most object.
  • PlaneLayer: Plane Layer, Interactive layer of the game.
  • PlaneUserData: The datastruct recording the some paramater of enemy plane, like HP.
  • ResultBackgroundLayer: Show the background image in the result scene.
  • ResultButtonLayer: Show the button in the result scene.
  • ResultScene: Game result scene.
  • SelectBackgroundLayer: To show Select Scene's background.
  • SelectButtonLayer: To show Select Scene's button.
  • SelectScene: Select Scene.
  • UFOLayer: This layer is used for some buffs, like enhance the bullet or get the big bomb.
  • UFOUserData: The data structure recording the kind of UFO gift.
  • WelcomeBackgroundLayer: Show the background image in the welcome scene.
  • WelcomeButtonLayer: Show the button in the welcome scene.
  • WelcomeScene: Welcome scene, the loading image.

Thanks

  • Thanks to Mr. Andreas Löw (the author of TexturePacker), for prividing the free key of TexturePacker pro.

Contact Me


Keywords

  • cocos cocos2d cocos2dx cocos2dx3.0

flyingace's People

Contributors

netbeen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.