My OOP practice project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

12 lines
271 B

import pygame
class Surface:
def __init__(self):
self.width = 64
self.height = 64
def killsurf(self):
pass
def place(self,window,surf_x,surf_y):
pygame.draw.rect(window,(100,200,240),(surf_x,surf_y,self.width,self.height))