diff --git a/background.py b/background.py index 097a092..6c3e597 100644 --- a/background.py +++ b/background.py @@ -1,4 +1,5 @@ import pygame +import colorsys class Background: def __init__(self): self.sprite = pygame.image.load('data/gfx/bg.png') @@ -8,4 +9,4 @@ def setSprite(self, tint): copy = self.uncoloredSprite.copy() color = colorsys.hsv_to_rgb(tint,1,1) copy.fill((color[0]*255, color[1]*255, color[2]*255), special_flags=pygame.BLEND_ADD) - self.sprite = copy \ No newline at end of file + self.sprite = copy diff --git a/main.py b/main.py index a4256fa..1d5a5b1 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,12 @@ import pygame, sys, time, random, colorsys, math from pygame.math import Vector2 from pygame.locals import * -from .player import Player -from .background import Background -from .button import Button -from .bean import Bean -from .utils import clamp -from .utils import checkCollisions +from player import Player +from background import Background +from button import Button +from bean import Bean +from utils import clamp +from utils import checkCollisions def main():