1,1,0)elifevent.keyinUP_KEYS:player.jump()elifevent.keyinDOWN_KEYSandplayer.platisnotNone:# Enter hyperlinkifnotplayer.plat.hyperlink=="":pygame.display.set_caption('Escape from Wikipedia - Loading')loading=Word
entities.update() pygame.display.flip() def draw_sprites(self, isScene=False): self.camera.update(self.player) for e in self.entities.sprites(): if e.block_id not in ["player","bot"]: self.screen.blit(e.image, self.camera.apply(e.rect)) # prioritize drawing of player and bots ...
that's not a sprite sheet. it's just a list of images that turn on and off to create an animation. a spritesheet would have all of the drink images in a single very tall or very wide png file--for example--and as the page scrolled you would change which portion of the image...
_KEYS:player.goingright=Trueplayer.goingleft=Falseplayer.image.tex_shape=(0,1,1,0)elifevent.keyinUP_KEYS:player.jump()elifevent.keyinDOWN_KEYSandplayer.platisnotNone:# Enter hyperlinkifnotplayer.plat.hyperlink=="":pygame.display.set_caption('Escape from Wikipedia - Loading')loading=Word("LO...