def draw( self ): from main import randcol if not self.vdead: c = randcol( ( [ 255 ], [ 0, 127 ], [ 0, 127 ] ) ) p.draw.rect( self.main.s, c, [ self.x, self.y, self.w, self.h ] ) msg( self.main.s, int( self.length), [self.x + self.w/2. - 1, self.y + self.h/2. - 1], (0,0,0), size=13, centered=1 ) msg( self.main.s, int( self.length), [self.x + self.w/2., self.y + self.h/2.], size=13, centered=1 )
def draw( self ): from main import randcol c = randcol( ( [ 200, 255 ], [ 200, 255 ], [ 200, 255 ] ) ) p.draw.ellipse( self.main.s, c, [ self.x, self.y, self.w, self.h ] ) msg( self.main.s, self.ballamount, [self.x + self.w/2. - 1, self.y + self.h/2. - 1], (0,0,0), size=13, centered=1 ) msg( self.main.s, self.ballamount, [self.x + self.w/2., self.y + self.h/2.], size=13, centered=1 )
def draw( self ): from main import randcol if not self.vdead: c = randcol( ( [ 0 ], [ 200, 232, 255 ], [ 200, 232, 255 ] ) ) p.draw.rect( self.main.s, c, [ self.x, self.y, self.w, self.h ] ) msg( self.main.s, round( self.level, 1 ), [self.x + self.w/2. - 1, self.y + self.h/2. - 1], (0,0,0), size=13, centered=1 ) msg( self.main.s, round( self.level, 1 ), [self.x + self.w/2., self.y + self.h/2.], size=13, centered=1 )