diff --git a/python2dspiel.py b/python2dspiel.py index a5b8bd5..40475e0 100644 --- a/python2dspiel.py +++ b/python2dspiel.py @@ -17,11 +17,11 @@ def creer_ananas(pos_x, pos_y): ananas = pygame.sprite.Sprite() pygame.sprite.Sprite.__init__(ananas) ananas.image = pygame.image.load("ananas.png").convert_alpha() - ananas.image = pygame.transform.scale(ananas.image,[200, 100]) + ananas.image = pygame.transform.scale(ananas.image,[200, 100]) ananas.rect = ananas.image.get_rect() ananas.rect.x = pos_x ananas.rect.y = pos_y - + return ananas pygame.init()