Exemplo n.º 1
0
    def __init__(self):
        Moves.__init__(self)

        self.p1 = Player('white', 'down')
        self.p2 = Player('black', 'up')

        self.p1.enemy = self.p2
        self.p2.enemy = self.p1

        self.turn = self.p1
Exemplo n.º 2
0
 def __init__(self, x,y, dx,dy, screenRect, v=20):
     Moves.__init__(self,x,y,dx,dy,screenRect,v)
     self.image.fill((0,255,0))
     self.drawImage(self.image,1000)
Exemplo n.º 3
0
    def __init__(self, x,y, dx, dy, screenRect,v = 125, c = (255,0,0)):
        Moves.__init__(self,x,y,dx,dy,screenRect,v)
        self.color = c

        #pygame.draw.rect(self.image, self.color, self.image.get_rect(), 0)
        pygame.draw.rect(self.image, self.color, Rect(0,0, self.width, self.height), 0)
Exemplo n.º 4
0
 def __init__(self, screenRect):
     print "MADE PLAYER"
     Moves.__init__(self,175, 550,0,0,screenRect,40)
     self.rect.topleft = 175,550
     pygame.draw.circle(self.image, self.color, (self.width/2,self.height/2),12, 0)
Exemplo n.º 5
0
    def __init__(self, x, y, dx, dy, screenRect, v = 25):
        Moves.__init__(self,x,y,dx,dy,screenRect,v)

        self.drawImage(self.image)