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 |
import pygame |
||||||
|
|
||||||
class surface: |
class Surface: |
||||||
def __init__(self,name): |
def __init__(self): |
||||||
self.surf_name = name |
self.width = 64 |
||||||
if self.surf_name == 'kill': |
self.height = 64 |
||||||
killsurf() |
|
||||||
|
|
||||||
def killsurf(self): |
def killsurf(self): |
||||||
pass |
pass |
||||||
|
|
||||||
def place(self,name,pos,width,height): |
def place(self,window,surf_x,surf_y): |
||||||
pass |
pygame.draw.rect(window,(100,200,240),(surf_x,surf_y,self.width,self.height)) |
||||||
|
Loading…
Reference in new issue