This commit is contained in:
2021-09-01 11:26:29 +02:00
parent 47d06204ea
commit 57863eb08a
11 changed files with 88 additions and 193 deletions

View File

@@ -0,0 +1,15 @@
import pygame.draw
from numpy import array as a
import numpy as np
class Rect:
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)