Make UiElement inherit from pygame.sprite.Sprite

This commit is contained in:
Michał Czekański 2020-04-03 22:55:22 +02:00
parent 9e9fb7c4b2
commit bb29d0cd1f

View File

@ -1,2 +1,7 @@
class UiElement:
pass
import pygame
class UiElement(pygame.sprite.Sprite):
def __init__(self, rect):
super().__init__()
self.rect = rect