阅读背景:

Is there a better way to move a sprite using the keyboard with Pygame?

来源:互联网 

Currently, I have small image that I move using the D and A keys on the keyboard. The code works just how I want it to, but it seems to be a bit unnecessarily complicated. Is there a more efficient way of doing this?Currently, I have small image that I move using




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: