_
This commit is contained in:
7
UI/objects/Rect.py
Normal file
7
UI/objects/Rect.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from numpy import array as a
|
||||
import numpy as np
|
||||
|
||||
|
||||
class Rect:
|
||||
def __init__(self):
|
||||
pass
|
17
UI/objects/Screen.py
Normal file
17
UI/objects/Screen.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from numpy import array as a
|
||||
import numpy as np
|
||||
import pygame
|
||||
|
||||
|
||||
class Screen:
|
||||
def __init__(self, width: float, height: float, font_size: int, matrix: np.array):
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.size = a([width, height])
|
||||
self.matrix = matrix
|
||||
|
||||
self.s = pygame.Surface([width, height])
|
||||
|
||||
self.font_size = font_size
|
||||
|
||||
self.center = a([width, height]) / 2
|
Reference in New Issue
Block a user