Coder Social home page Coder Social logo

oiteboys / earlybird Goto Github PK

View Code? Open in Web Editor NEW
199.0 199.0 193.0 9.06 MB

A Mobile Game Similar to FlappyBird, which is based on cocos2dx-3.0beta2

Home Page: http://oiteboys.github.io/Earlybird

License: Apache License 2.0

CMake 3.82% C++ 34.60% Python 3.69% Makefile 1.98% Java 48.89% Objective-C 1.10% Objective-C++ 5.63% C 0.29%

earlybird's People

Contributors

clasnake avatar edengzv avatar formatcvt avatar zzycami 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

earlybird's Issues

game over的菜单问题

结束菜单的问题比较大,主要有这么几点:

  1. 分数, 奖章没有和背景一起从下面上来,这是第一个问题
  2. 奖牌和分数的背景有重复, 背景有动画,所以可能容易看出来一点,奖牌可能也有重复
    3.回调没做,就是奖牌这些动画做完之后再淡入下面的重新开始和排名按钮
    建议:
  3. 可以将分数,奖牌和背景设置在同一个node下面,动画做在node上面,如果复杂的话建议将这个类分离出来。
  4. 重复的问题一定是第二次没有调用原来的也没有清楚原来的直接创建新的精灵了,建议重用之前的精灵或者杀死以前的精灵再重新创建,注意不论是动作还是精灵,其实都是可以清楚的。
  5. 关于回调怎么做:https://github.com/zzycami/parasite-city/blob/master/Classes/WelcomeLayer.cpp 这个网址是我以前写的游戏里面试用的,
    第171行:
    CallFunc _actionDone = CallFunc::create(callback);
    Sequence *sequence = Sequence::create(actionMove, actionBack, actionDone, NULL);
    SimpleAudioEngine::getInstance()->playEffect("00258.wav");
    menuItem->runAction(sequence);
    这一段你可以仔细研究下
    另外引擎封装的CC_CALLBACK__系列宏定义实际上就是用bind来实现的,你可以去看看源码。

ps.
https://github.com/cocos2d/cocos-docs/blob/master/tutorial/how-to-make-a-game-like-flappybird/zh.md
这里是一个家伙用C++写的和我们差不多的游戏,但是我个人觉的我们做的不论是充精细程度还是对原作的还原度以及技术程度都比这个家伙要好。不过我还还是要借鉴下这个家伙写的好的地方,讨论他不好的地方,我个人我们的最大优势是发挥了最新引擎的很多特性,不论是代码数量还是逻辑严密读都要好。但是这家伙的分层和起名字的水平比我们要好。看过之后欢迎在trell或者git上和我交流。

ps2.这次我改变了思路用物理引擎实现了碰撞,效果好,代码少,期间其实走过挺多弯路的,主要原因是我不知道static的刚体是可以直接由你来设置位置的而不受物理引擎的控制,这也是我今晚最大的收获。

ps3.今天有做的比较晚了。你的代码我还没有全部看完。哪里说的不好还请你指正。

v3.1 cannot be compiled successfully or crashed after fixing compilation issue

There are several issues:

  1. The code cannot be compiled, because some file contains CCMenuItem.h header file, while its folder is not added. (Actually it's contained in cocos2d.h, unnecessary to include it explicitly)
    2 After fix first issue, the game is crashed on both Windows and Android, after debugging, it seems the PNGs are in "image" folder under Resources, however it's only file name in the source code, file doesn't exist "splash.png" is not under Resources.
    2.a Copy images from image folder to Resource root folder can fix the issue.
    2.b add /image/ to file name in source code. e.g. "/image/splash.png"
  2. The last issue is Android.mk file is not correct, many CPP files are not included

Output

i built the build_native.py with NDK, i imported the project into eclipse, when i run it on my android device it says "earlybird" has stopped working. the API levels are all correct.

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.