import pygame import workers, towers, ring import random boxcols=[(90,90,90),(128,0,0),(0,128,0),(0,0,128)] class Grid(): def __init__(self,x,y,spacing,w,h): self.x,self.y,self.spacing,self.w,self.h=x,y,spacing,w,h self.xe,self.ye=x+spacing*w,y+spacing*h self.highlight=None self.act=0 self.menu=None self.mx,self.my=0,0 self.towers=[] # I'll make this a property later self.workers=[] def cell(self,x,y): sx,sy,s,w,h=self.x,self.y,self.spacing,self.w,self.h if not (sx