发牌动画
我看过动画课程,但很难理解你到底是如何做事的。 就我而言,屏幕中间有一副纸牌,我想通过向用户(位于屏幕的四个边缘)显示在屏幕上滑动的纸牌来动画处理交易。
在某些情况下,我需要将卡片面朝上设置动画,然后将其面朝下显示在玩家手中。
我真的完全迷失了。
I have looked at the Animation class and am having difficulty understanding how exactly you do things.
In my case, you have a deck of cards in the middle of the screen and I want to animate the deal by showing cards sliding across the screen to the users (who are located on the four edges of the screen).
In some cases, I need to animate the card face-up and then show it face-down in the player hand.
I really am totally lost.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以看一下SurfaceView类,它有一个Canvas来画东西。一般来说,使用 Canvas 创建游戏和动画要容易得多。祝你好运!
You may take a look at the SurfaceView class, which has a Canvas to draw things. Creating games and animations in general is much easier with Canvas. Good luck!