This commit is contained in:
2021-09-13 20:21:11 +02:00
parent 1e3e7939b0
commit 5b86a84488
26 changed files with 34 additions and 40 deletions

View File

@@ -0,0 +1,16 @@
import pygame.draw
class Rect:
object_type = "r"
def __init__(self, pos, size, color, scene):
self.pos = pos
self.size = size
self.color = color
self.rect = pygame.Rect(self.pos, self.size)
self.scene = scene
def blit(self):
pygame.draw.rect(self.scene.s_, self.color, self.rect)