Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- import random
- class Jablko(pygame.sprite.Sprite):
- def __init__(self):
- super(Jablko, self).__init__()
- self.obraz = pygame.image.load("images/apple.png")
- losowa_pozycja = pygame.Rect(random.randrange(1,25)*32, random.randrange(1,19)*32, 32, 32)
- self.rect = losowa_pozycja
Add Comment
Please, Sign In to add comment