def __init__(self, driver, num_peepers=10, **kwargs): ILDParamModule.__init__(self,driver,**kwargs) self.limitX = self.dims[0] self.limitY = self.dims[1] self.reset()
def __init__(self, driver, num_peepers=10, **kwargs) : ILDParamModule.__init__(self,driver,**kwargs) config = SafeConfigParser() config.read('MagneticPoetryWords.txt') self.nouns = eval(config.get('Words','nouns')) self.adjectives = eval(config.get('Words','adjectives')) self.verbs = eval(config.get('Words','verbs')) self.adverbs = eval(config.get('Words','adverbs')) self.prepositions = eval(config.get('Words','prepositions')) self.pronouns = eval(config.get('Words','pronouns')) self.words = pygame.sprite.Group() self.get_new_words() self.font = pygame.font.Font(None,48) self.regen = self.font.render("New Words",2,(255,255,255),(255,50,50)) self.regenrect = self.regen.get_rect() self.regenrect.center = (self.regenrect.width/2.+5,self.dims[1]-self.regenrect.height-5) self.fridge = pygame.image.load("images/fridge.png") self.clock = pygame.time.Clock() self.last_refresh = 0
def __init__(self, driver, num_peepers=10, **kwargs) : ILDParamModule.__init__(self,driver,**kwargs) image_fns = ['images/marble%d.png'%x for x in range(1,2)] self.images = [pygame.image.load(s) for s in image_fns] self.shadow_sprite = ShadowSprite(driver,draw_polygon=False,draw_rects=True) self.sprites = pygame.sprite.Group() for im in self.images : self.sprites.add(MarbleSprite(im,randint(0,self.dims[0]),-10)) self.walls = pygame.sprite.Group()
def __init__(self, driver, num_peepers=10, **kwargs) : ILDParamModule.__init__(self,driver,**kwargs)
def __init__(self, driver, **kwargs) : ILDParamModule.__init__(self,driver,**kwargs)