All pastes #75973 Raw Edit

xlordt

public python v1 · immutable
#75973 ·published 2006-06-30 20:32 UTC
rendered paste body
class MakeBar( pygame.sprite.Sprite ):	def __init__( self, color, position ):		pygame.sprite.Sprite.__init__( self )				self.image = pygame.Surface(( 25, 5 )).convert( )		#self.image.fill( color )				self.rect  = self.image.get_rect( )		self.rect.bottom = position				pygame.draw.rect( self.image, ( 0, 0, 255 ), self.rect )		screen = pygame.display.set_mode(( 150, 150 ))screen.fill(( 255, 255, 10 ))scrRect = screen.get_rect( )ball = MyBall( 5 )bar  = MakeBar(( 0, 0, 255 ), screen.get_height( ) - 10 )