giganciprogramowania

lekcja 8 - Jablko.py

Feb 18th, 2022 (edited)
846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  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)
Add Comment
Please, Sign In to add comment