html5 - 水果机小游戏的实现思路是怎样的?
大家讲道理
大家讲道理 2017-04-17 14:48:41
0
1
618

大概就是类似这样的小游戏,需要用canvas实现,点击spin后,水果开始转动,此时会向后端发起请求获取后端算法算出来的结果,然后将水果停在结果位置,我对游戏这块不熟,目前不知道怎么写这个运行后的动画效果

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
迷茫

You will be exhausted if you write naked canvas or webgl. Try cocos2d or unity. Unity is recommended.
The principle is also very simple. A mask covers the top, and then the three sprites move downward in turn. At the end of the movement, switch the sprite frame and place it on the top and continue to move downward.
For Unity, you can add some shaders, and then you can achieve special effects such as motion blur. Cocos2d can also do it, but it is not written in the document. You have to modify sgNode yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template