View difference between Paste ID: HVTazY3c and CxphrXVR
SHOW: | | - or go back to the newest paste.
1
import pygame
2
import random
3
4
class Jablko(pygame.sprite.Sprite):
5
    def __init__(self):
6
        super().__init__()
7
        self.obraz = pygame.image.load("images/apple.png")
8
        self.rect = pygame.Rect(random.randint(0,24)*32, random.randint(0,18)*32, 32, 32)