Created
April 20, 2011 15:53
-
-
Save jamiltron/931739 to your computer and use it in GitHub Desktop.
image idea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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