caves.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:caves 作者: mikaelho 项目源码 文件源码
def play(self, sender):
#    self.mode = console.alert('Race mode',
#      button1='1. Blind draw',
#      button2='2. Timed vectors'
#    )
    self.hide_all()
    #self.show_play_menu() dialog
    self.show_edit_view()
    self.load_actual(burn_waypoints_in=True)

    with io.BytesIO(self.edit_view.img.to_png()) as fp:
      playfield = pilImage.open(fp).resize((int(self.bg.width), int(self.bg.height))).load()
    for layer in self.play_layers:
      layer.set_map(self.edit_view.waypoints, playfield, self.multiplier)
    self.show_play_layers()
    self.turn = -1
    self.next_turn()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号