本文整理汇总了Python中state.State.draw_to_screen方法的典型用法代码示例。如果您正苦于以下问题:Python State.draw_to_screen方法的具体用法?Python State.draw_to_screen怎么用?Python State.draw_to_screen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类state.State
的用法示例。
在下文中一共展示了State.draw_to_screen方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: draw_to_screen
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import draw_to_screen [as 别名]
def draw_to_screen(self):
State.draw_to_screen(self)
screen = game.screen()
screen.fill((255, 255, 255))
for shape in self._shapes:
shape.draw_to_screen(screen)
return
示例2: draw_to_screen
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import draw_to_screen [as 别名]
def draw_to_screen(self):
State.draw_to_screen(self)
screen = game.screen()
for shape in self._shapes:
shape.draw_to_screen(screen)
self._sprites.draw(screen)
return
示例3: draw_to_screen
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import draw_to_screen [as 别名]
def draw_to_screen(self):
from game import Overworld
State.draw_to_screen(self)
screen = game.screen()
self._level.blitToScreen(Overworld.center_x_index(), Overworld.center_y_index())
self._sprite.draw(screen)
for shape in self._shapes:
shape.draw_to_screen(screen)
return