add oldproject folder

This commit is contained in:
2026-03-27 15:34:24 +01:00
parent 92f19f853a
commit bfb1f31eec
69 changed files with 19655 additions and 21 deletions

12
assets/Rect.py Executable file
View File

@@ -0,0 +1,12 @@
import pygame
from game.settings import*
class Page:
def __init__(self, top, left, width, height, rgb = (0, 0, 0)):
self.rgb = rgb
self.width = width
self.height = height
self.draw = pygame.draw.rect(SCREEN, self.rgb, pygame.Rect(top, left, self.width, self.height))
def collision(self, x, y):
return self.draw.collidepoint((x, y))