Git Product home page Git Product logo

cocos_fc_tank's Introduction

Cocos_Fc_Tank

Powerd by Cocos Creator 3.4.2 and https://github.com/ocfbnj/CocosCreatorTank

1.疫情封在家,学一学Cocos Creator,边学边做,索性就把ocfbnj的老项目移植到Cocos Creator3.4.2。

2.增加了道具坦克以及相关道具功能,比如定时,炸弹,无敌。

3.增加坦克升级逻辑,打铁撸草。(为调试方便,死亡坦克不掉等级,等级高后无法死亡。)

4.优化碰撞逻辑,坦克再多也能跑满60FPS。

5.优化了WASD手感,避免丢失按键事件,玩起来更流畅。

6.修复很多原有bug,比如切换关卡后子弹残留到下一关,切换关卡过程中坦克还能移动开枪,游戏已经Gameover还能继续玩等等。

7.代码风格不统一,但基本不影响阅读。

8.发现bug可以提交pr,也可以提交issue,但我回复肯定不及时,奶爸很忙,请谅解。

9.图像声音资源来自网络(仅用于学习研究用途),代码MIT(你随便用)。

10.游戏运行后效果:

20220415_1135042022415113671

11.还可以进一步优化坦克之间的碰撞算法,比如使用 松散的四叉树 或者 网格分割来优化。优化后性能会有很大提高。(正在测试稳定后提交)

20220417_10300620224171032391

cocos_fc_tank's People

Contributors

rontang avatar

Stargazers

 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

cocos_fc_tank's Issues

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.