先是素材:
背景
精灵
所有素材均取自此书
接下来就是精灵类的创建了:
(self) self.master_image === -1= 1= 1=== 1============rect == (rect.width // width) * (rect.height // height) - 1 update(self, current_time, rate=30 current_time > self.last_time ++= 1 self.frame >== self.frame !== (self.frame % self.columns) *= (self.frame // self.columns) *=== self.frame
查看更多关于pygame制作游戏人物精灵的行走及二段跳实现方法的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did81909