import block_class
from block_class import Block
from GraphicsUtil import toplength, topwidth

blockWidth = 25
lineXpos = 0
lineYpos = 0

BLUE = (0,0,255)

lineSurface = Surface((25,100))
lineSurface.set_colorkey((0,0,0))

B1 = Block(blockWidth,blockWidth, BLUE, lineXpos, lineYpos)

B1.groupDrawLineBlock(lineSurface)


class lineBlock:
    def __init__(self):
        self.color = 2
        self.surface = lineSurface
        self.rotate = 0

    def points(self):
        if self.rotate%2==0:
            return [(0,0), (0,1), (0,2), (0,3)]
        if self.rotate%2==1:
            return [(0,0), (1,0), (2,0), (3,0)]
    
# while True: