Skip to content

Instantly share code, notes, and snippets.

@jamiltron
Created April 20, 2011 15:53
Show Gist options
  • Save jamiltron/931739 to your computer and use it in GitHub Desktop.
Save jamiltron/931739 to your computer and use it in GitHub Desktop.
image idea
def Unit(pygame.sprite.Sprite):
images = None
def __init__(self, sprite_map):
if Unit.images == None:
Unit.images = load_images(sprite_map)
self.images = Unit.image.convert(Unit.images)
def load_assests(self, sprite_map):
Unit.images = load_images(sprite_map)
self.images = Unit.image.convert(Unit.images)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment