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.

13 lines
318 B

4 years ago
import pygame
class Surface:
def __init__(self):
self.width = 64
self.height = 64
4 years ago
def killsurf(self): #Don`t quite understand what I`ll do with these
4 years ago
pass
4 years ago
def place(self,window,surf_x,surf_y):
pygame.draw.rect(window,(100,200,240),(surf_x,surf_y,self.width,self.height))