react-native - react native 雪碧表

标签 react-native 2d-games

是否可以使用 React Native 制作基于 sprite sheet 的动画?看来您必须加载单个图像,而不是 sprite 表。

最佳答案

不完全是单个 Sprite 表,而是 react-native-sprite桥接 UIImageView 以支持对一系列图像进行原生动画处理。

或许可以将 SpriteKit 引入 react-native。在这种情况下,您可以使用 texture atlas 编译单个 Sprite 表。 .

关于react-native - react native 雪碧表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37452960/

相关文章:

javascript - 制作一个球从屏幕一侧弹起但不弹起的游戏

reactjs - 我的模拟函数在 Sagas 测试中没有被调用

react-native - react 导航 (V2) : How to set the Icon and the label of a stack Navigator inside a Drawer Navigator?

python - 如何选择一个好的Python列表数据结构来存储每一种可能的井字棋游戏

java - 我的 2d Android 游戏遇到问题

javascript - 如何基于数组制作Simon Js游戏?

reactjs - React Native 与 semantic-ui-react

firebase - 有没有办法修复将有天赋的聊天消息发送到 firestore 时 react native 上的 "Encountered two children with the same key"错误?

react-native - React Native 异步存储 : where are information storage at? 电话或应用程序?

python-3.x - 用于 2D Python 游戏编程的工具包选项