Package pajammin :: Package display :: Package sprite :: Module avatar
[show private | hide private]
[frames | no frames]

Module pajammin.display.sprite.avatar

Sprite categories for the avatar and the avatar's pajamas.
Function Summary
  add_pajama_sprite(name, template, pattern, action_row, action_times, layer)
  merged(template, pattern)
  small_animation(animation)

Variable Summary
list head = [SubImage(ImageFile('avatar/heads.gif', True), 1,...
list PAJAMA_PANTS = [('RedBoxers', 'legs1', 'red', None, None...
list PAJAMA_SHIRTS = [('BlueTShirt', 'torso1', 'blue', None, ...
list small_head = [ScaleImage(SubImage(ImageFile('avatar/head...
tuple SMALL_SIZE = (30, 45)
SuperImpose spec = TileHoriz(SubImage(ImageFile('avatar/heads.gif', ...

Function Details

add_pajama_sprite(name, template, pattern, action_row, action_times, layer)

merged(template, pattern)

small_animation(animation)


Variable Details

head

Type:
list
Value:
[SubImage(ImageFile('avatar/heads.gif', True), 1, 1, 40, 60)]          

PAJAMA_PANTS

Type:
list
Value:
[('RedBoxers', 'legs1', 'red', None, None),
 ('CowPants', 'legs2', 'cow', None, None),
 ('FlashPants', 'legs2', 'lightning', None, None),
 ('KaratePants', 'legs3', 'white', 3, (300, 200)),
 ('SpideyPants', 'legs2', 'web', None, None),
 ('TiggerPants', 'legs4', 'white', 3, (300, 200)),
 ('HalflingShorts', 'legs1', 'halfling', None, None)]                  

PAJAMA_SHIRTS

Type:
list
Value:
[('BlueTShirt', 'torso1', 'blue', None, None),
 ('AngelShirt', 'torso4', 'white', None, None),
 ('CowShirt', 'torso1', 'cow', None, None),
 ('DoctorShirt', 'torso6', 'white', None, None),
 ('FireShirt', 'torso2', 'lava', 3, (300, 200)),
 ('KarateShirt', 'torso5', 'white', 3, (300, 200)),
 ('SpideyShirt', 'torso3', 'web', 4, (300, 200)),
 ('StarShirt', 'torso2', 'stars', 4, (200, 150)),
...                                                                    

small_head

Type:
list
Value:
[ScaleImage(SubImage(ImageFile('avatar/heads.gif', True), 1, 1, 40, 60\
), (30, 45))]                                                          

SMALL_SIZE

Type:
tuple
Value:
(30, 45)                                                               

spec

Type:
SuperImpose
Value:
TileHoriz(SubImage(ImageFile('avatar/heads.gif', True), 1, 1, 40, 60),\
 SubImage(CachedImage('avatar/pjcache/torso1-blue.tga', PatternImage(I\
mageFile('avatar/torso1.gif', True), SubImage(TileVert(ImageFile('avat\
ar/patterns/blue.gif', True), ImageFile('avatar/patterns/blue.gif', Tr\
ue)), 0, 0, 41, 61))), 1, 1, 40, 60), SubImage(CachedImage('avatar/pjc\
ache/legs1-red.tga', PatternImage(ImageFile('avatar/legs1.gif', True),\
 SubImage(TileVert(ImageFile('avatar/patterns/red.gif', True), ImageFi\
le('avatar/patterns/red.gif', True)), 0, 0, 41, 61))), 1, 1, 40, 60))