对于任何带有移动物体的游戏来说,画布上的位图都是个坏主意
我一直在使用带有位图精灵的画布,并得出结论,如果你想让精灵在屏幕上移动(并且仍然看起来不错),你需要使用 openGL..
即使是单个球(200x200 像素)也不会如果背景填满全屏图像(法庭的图片或其他东西),则实时移动,
我是否正确地认为画布/位图不是这样做的方法,或者听起来我做错了什么?
I've been fooling around with canvas with bitmap sprites on and have come to the conclusion that if you want sprites to move on the screen (and still look good) you need to go openGL..
Even a single ball (200x200 pixels) wont move in real time if the background is filled out with a full screen image (a picture of a court or something)
Am I correct that canvas/bitmap is not the way to do it or does it sound like I'm doing something wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直这样做,即使有大约 20 个动画精灵,它对我来说也很有效。它在模拟器上有延迟,但在实际设备上却没有。 OpenGL可能仍然是更好的选择,但不要使用模拟器来判断动画质量,它比最慢的实际设备慢(至少在我的电脑上是这样)
I've always done that and it works good for me even with around 20 animated sprites. It is laggy on the emulator but not an actual device. OpenGL may still be the better option but don't use the emulator to judge animation quality, it is slower than the slowest actual devices (at least on my pc it is)