def update(self): SpriteParent.update(self) self.set_orientation(-self.model.ang*57.296) self.rect=self.image.get_rect() self.rect.center=self._project.transform(self.model.position) if PERIODIC_HACK: pos= self.rect.center self.rect.center=(pos[0]%config.screen_size[0],pos[1]%config.screen_size[1])
def update(self): """Called every tick to update the state of the entity""" Sprite.update(self) self.rect.topleft = self.pos if self.resize: self.resize = False self.image = Surface(self.size).convert() self.image.fill(self.color) self.rect = self.image.get_rect(topleft=self.pos)
def update(self): SpriteParent.update(self) self.set_orientation(-self.model.ang * 57.296) self.rect = self.image.get_rect() self.rect.center = self._project.transform(self.model.position) if PERIODIC_HACK: pos = self.rect.center self.rect.center = (pos[0] % config.screen_size[0], pos[1] % config.screen_size[1])
def update(self): """Called every tick to update the state of the board""" Sprite.update(self) self.resize_board()
def update(self, current_time): Sprite.update(self)
def update(self): '''The sprite's update method, doesn't do anything at all''' Sprite.update(self)