Cocos Creator 2.3.2 Spine棋牌对战游戏练习
- 布置战斗背景
- 制作英雄预制体
- 新建英雄数据Utils类
- 初始化每个英雄,分左右两边
- 对英雄的出手速度进行排序
- 轮流出手攻击
- 通过状态机来进行动画
- 如果是远程攻击,则直接攻击,近战需要移动到目标位置
- 攻击之后,判断目标是否死亡并且返回原来位置
- 如果有一方的英雄全部死亡,则游戏结束
- 项目预览地址 ,服务器很慢,需要加载一定的时间
This project forked from goodiboy/cocos-creator-battlespine
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.