Python精灵模块的settop指令

所有命令 单独命令 屏幕命令 角色命令

角色命令 >> Python精灵模块的settop指令

简介:设置角色的最顶y坐标。
例子:
from sprites import Sprite,Screen

screen = Screen()
screen.xy_grid() # 显示坐标底图
 
bug = Sprite(visible=True)
bug.settop(-100)
screen.mainloop()

    

writed by lixingqiu 关注"异编程"微信公众号,获取更多关于Python精灵模块的咨讯: