本文整理汇总了Python中tile.Tile.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Tile.__init__方法的具体用法?Python Tile.__init__怎么用?Python Tile.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tile.Tile
的用法示例。
在下文中一共展示了Tile.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, element, xoffset = 0.0, yoffset = 0.0, level=0):
QObject.__init__(self)
Tile.__init__(self, element)
self.__board = None
self.graphics = GraphicsTileItem(self)
self.__xoffset = xoffset
self.__yoffset = yoffset
self.__dark = False
self.level = level
self.activeAnimation = dict() # key is the property name
self.queuedAnimations = []
示例2: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, block_size, position=(0, 0)):
Tile.__init__(self, block_size, block_size, "Sprites/end.png", starting_position=position)
示例3: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, monitor):
Tile.__init__(self, monitor)
self.store = None
self.cycle_index = 0
示例4: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self,posX,posY):
Tile.__init__(self,posX,posY)
self.collide = False
self.win = False
self.desc = ' _ '
示例5: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, value):
Tile.__init__(self, value)
self.can_grow = True
示例6: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, screen, tilex, tiley, set = "brown"):
Tile.__init__(self, screen, tilex, tiley, set, "spikes")
self.itemclass = "spikes"
self.realign()
return
示例7: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, screen, tilex, tiley, set = "brown"):
Tile.__init__(self, screen, tilex, tiley, set, "spikes")
self.itemclass = "spikes"
self.y = round((self.y/TILE_DIM), 1)*TILE_DIM + SPIKES_VER_OFFSET
return
示例8: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, monitor):
Tile.__init__(self, monitor)
self.root = None
self.catchall = None
示例9: __init__
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import __init__ [as 别名]
def __init__(self, text, width, height, posy=-0.3):
Tile.__init__(self, text, width, height, halo_img="halo_sun.png")
self.posy = posy