Tzuro

lekcja 8 - Jablko.py

Jun 29th, 2023
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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