Minor style fixes
This commit is contained in:
@@ -28,6 +28,7 @@ class Background():
|
||||
for image in backgroundImages:
|
||||
image.set_colorkey((255,0,255))
|
||||
|
||||
|
||||
def __init__(self, mainGameClass):
|
||||
pygame.sprite.Sprite.__init__(self)
|
||||
|
||||
|
||||
@@ -17,8 +17,10 @@ class CollisionBox(pygame.sprite.Sprite):
|
||||
self.rect.x += self.offset[0]
|
||||
self.rect.y += self.offset[1]
|
||||
|
||||
|
||||
def setY(self, y):
|
||||
self.rect.y = y + self.offset[1]
|
||||
|
||||
|
||||
def setX(self, x):
|
||||
self.rect.x = x + self.offset[0]
|
||||
|
||||
Reference in New Issue
Block a user