Mercurial > rinkhals
comparison gamelib/tiles.py @ 381:7a58dadfd251
little cleanups, every sprite in its proper layer.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 25 Oct 2009 11:36:30 +0000 |
parents | a8a7ada27fa2 |
children | e3408c803b12 |
comparison
equal
deleted
inserted
replaced
380:1586eccdefe4 | 381:7a58dadfd251 |
---|---|
92 """Extension of pgu's TileVid class to handle the complications | 92 """Extension of pgu's TileVid class to handle the complications |
93 of raising chickens. | 93 of raising chickens. |
94 """ | 94 """ |
95 def __init__(self): | 95 def __init__(self): |
96 tilevid.Tilevid.__init__(self) | 96 tilevid.Tilevid.__init__(self) |
97 self.sprites = LayeredSprites(['animals', 'buildings', 'animations', 'cursor'], 'animals') | 97 self.sprites = LayeredSprites(['buildings', 'animals', 'animations', 'cursor'], 'animals') |
98 | 98 |
99 def png_folder_load_tiles(self, path): | 99 def png_folder_load_tiles(self, path): |
100 """Load tiles from a folder of PNG files.""" | 100 """Load tiles from a folder of PNG files.""" |
101 full_path = data.filepath(path) | 101 full_path = data.filepath(path) |
102 for dirpath, dirnames, filenames in os.walk(full_path): | 102 for dirpath, dirnames, filenames in os.walk(full_path): |