Unbewohnte
4 years ago
3 changed files with 37 additions and 22 deletions
@ -1,12 +1,16 @@
|
||||
import pygame |
||||
from beings import * |
||||
|
||||
class Surface: |
||||
def __init__(self): |
||||
self.width = 64 |
||||
self.height = 64 |
||||
|
||||
def killsurf(self): #Don`t quite understand what I`ll do with these |
||||
pass |
||||
def __init__(self,name): |
||||
if str(name) == 'killsurf': |
||||
self.width = windowX |
||||
self.height = windowY |
||||
self.color = (30,70,40) |
||||
if str(name) == 'default': |
||||
self.width = windowX/1.5 |
||||
self.height = windowY/1.5 |
||||
self.color = (50,20,60) |
||||
|
||||
def place(self,window,surf_x,surf_y): |
||||
pygame.draw.rect(window,(100,200,240),(surf_x,surf_y,self.width,self.height)) |
||||
pygame.draw.rect(window,self.color,(surf_x,surf_y,self.width,self.height)) |
||||
|
Loading…
Reference in new issue