Beispiel #1
0
 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 = []
Beispiel #2
0
 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 = []
 def __init__(self,
              name: str = "null",
              glyph: int = 0,
              tile: int = None,
              fg: str = None,
              bg: str = None,
              walk: bool = False,
              see: bool = False):
     Tile.__init__(self, glyph, tile, fg, bg)
     self.walk = walk
     self.see = see
     self.name = name
Beispiel #4
0
    def __init__(self, spritesheet, sprite_loc, world_coords, dest_world,
                 dest_coords):
        Tile.__init__(self, spritesheet, sprite_loc, world_coords)
        self.dest_world = None
        self.dest_coords = None
        self.dest_world = dest_world
        self.dest_coords = dest_coords

        width = constants.TILE_WIDTH
        # The alternate image for a door makes obvious that it's a door in level editor
        door_overlay = pygame.image.load(
            constants.DOOR_OVERLAY_PATH).convert_alpha()
        self.door_overlay = pygame.transform.smoothscale(
            door_overlay, (width, width))
        self.alt_img = self.image.copy()
        self.alt_img.blit(self.door_overlay, (0, 0))
	def __init__(self,posX,posY):
		Tile.__init__(self,posX,posY)
		self.collide = False
		self.win = False
		self.desc = ' _ '
Beispiel #6
0
 def __init__(self, initialValue):
     Tile.__init__(self, initialValue)
     self.can_grow = True
Beispiel #7
0
 def __init__(self, value):
     Tile.__init__(self, value)
     self.can_grow = True
Beispiel #8
0
 def __init__(self, img, text):
     Tile.__init__(self, img, text)
     self.startx = -100
     self.starty = -100
Beispiel #9
0
 def __init__(self, block_size, position=(0, 0)):
     Tile.__init__(self, block_size, block_size, "Sprites/end.png", starting_position=position)
Beispiel #10
0
 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
Beispiel #11
0
 def __init__(self, action, text="button"):
     Tile.__init__(self)
     self.action = action
     self.text = text
Beispiel #12
0
 def __init__(self, position):
     """Creates a new Door tile."""        
     Tile.__init__(self, 'door', position)
Beispiel #13
0
 def __init__(self):
     Tile.__init__(self)
Beispiel #14
0
 def __init__(self, monitor):
     Tile.__init__(self, monitor)
     self.root = None
     self.catchall = None
Beispiel #15
0
 def __init__(self, posX, posY):
     Tile.__init__(self, posX, posY)
     self.collide = True
     self.win = False
     self.desc = ' # '
Beispiel #16
0
 def __init__(self, monitor):
     Tile.__init__(self, monitor)
     self.store = None
     self.cycle_index = 0
 def __init__(self, screen, tilex, tiley, set = "brown"):
   Tile.__init__(self, screen, tilex, tiley, set, "spikes")
   self.itemclass = "spikes"
   self.realign()
   return
Beispiel #18
0
 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
Beispiel #19
0
    def __init__(self, text, width, height, posy=-0.3):
        Tile.__init__(self, text, width, height, halo_img="halo_sun.png")

        self.posy = posy