def __init__(self, *args, window_map, scanline_x, scanline_y, **kwargs): super().__init__(*args, **kwargs) self.scanline_x, self.scanline_y = scanline_x, scanline_y self.color = COLOR_WINDOW if window_map else COLOR_BACKGROUND if not cythonmode: self.tilemap = tilemap.TileMap(self.mb, "WINDOW" if window_map else "BACKGROUND")
def __cinit__(self, pyboy, mb, *args, window_map, **kwargs): self.tilemap = tilemap.TileMap( self.mb, "WINDOW" if window_map else "BACKGROUND")