Nicer temporary colour well.
This commit is contained in:
		@@ -190,10 +190,14 @@ class ColorWell(Block):
 | 
			
		||||
        self.__dict__.update(locals())
 | 
			
		||||
        worldobject.WorldObject.__init__(
 | 
			
		||||
            self, level, x, y, movable=False)
 | 
			
		||||
        self.img = pygame.Surface((128, 96))
 | 
			
		||||
        self.set_colour(0, 0, 0)
 | 
			
		||||
        self.img = pygame.Surface((64, 64))
 | 
			
		||||
 | 
			
		||||
    def set_colour(self, r, g, b):
 | 
			
		||||
        self.well_colour = r * 255, g * 255, b * 255
 | 
			
		||||
        self.img.fill(self.well_colour)
 | 
			
		||||
 | 
			
		||||
    def draw(self, window):
 | 
			
		||||
        if self.visible:
 | 
			
		||||
            window.blit(self.img, (self.x - self.level.camera_x,
 | 
			
		||||
                                   self.y - self.img.get_size()[1]
 | 
			
		||||
                                   - self.level.camera_y))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user