diff --git a/background.py b/background.py index 097a092..a8a62ea 100644 --- a/background.py +++ b/background.py @@ -1,4 +1,4 @@ -import pygame +import pygame, colorsy class Background: def __init__(self): self.sprite = pygame.image.load('data/gfx/bg.png') diff --git a/main.py b/main.py index a4256fa..54abcfd 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,15 @@ + +#We import the required modules 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 +#Import external classes +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():