Code Monkey home page Code Monkey logo

man-game-20s's Introduction

是男人就坚持20秒Remastered

⏰CocosCreator v1.5.0

⏰tsc Version 2.3.4

⏰密集恐惧症慎用

男人就坚持20秒属于经典的弹幕游戏,做例子研究也很有价值,足够小且完整,还有相当的游戏性。这是很多Demo所不具备的。这两天用TypeScript语言Remastered了一下,之前那个是C++写的。

感觉上,CocosCreator+TypeScript写起东西来非常顺手。CocosCreator内部提供了很多成熟的快速开发功能,比起以前效率提高不少。TypeScript的各种提示识别,变量函数增删改查都很方便,完全能够抵消多出来的代码编写编译所需的时间,项目越大效果应该越明显。

替代文本

用到的一些功能和写法:

  • 重写摇杆算法支持全部方向
  • 加入ASDW上下左右按键控制
  • 空Node作为RootNode调整坐标系
  • Prefab与NodePool编写子弹
  • 碰撞系统
  • 数据驱动方式
  • 事件系统处理交互
  • Global全局变量以及挂载方式
  • 预先埋伏Node并隐藏
  • 游戏评价用了点JavaScript语言特性
  • 加入一个道具

替代文本

替代文本

替代文本

man-game-20s's People

Contributors

gdgoldlion avatar

Watchers

 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.