Unbewohnte
4 years ago
8 changed files with 43 additions and 42 deletions
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1,13 +1,12 @@
|
||||
import pygame |
||||
|
||||
class surface: |
||||
def __init__(self,name): |
||||
self.surf_name = name |
||||
if self.surf_name == 'kill': |
||||
killsurf() |
||||
class Surface: |
||||
def __init__(self): |
||||
self.width = 64 |
||||
self.height = 64 |
||||
|
||||
def killsurf(self): |
||||
pass |
||||
|
||||
def place(self,name,pos,width,height): |
||||
pass |
||||
def place(self,window,surf_x,surf_y): |
||||
pygame.draw.rect(window,(100,200,240),(surf_x,surf_y,self.width,self.height)) |
||||
|
Loading…
Reference in new issue