diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:37:22 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:37:22 (GMT) |
commit | e36e067ab3559cfc06689fc7d273eb606800b3f4 (patch) | |
tree | 06bbe5a9884bef69fd0a169819ecb42e611d5650 /card.py | |
parent | 708687fb37db5d61ddcffc16199fc8130d07b2d1 (diff) |
using constants
Diffstat (limited to 'card.py')
-rw-r--r-- | card.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -50,6 +50,16 @@ class Card: tw.card_w*tw.scale, tw.card_h*tw.scale)) self.index = SELECTMASK + elif shape == PLAYMASK: + self.spr = sprNew(tw,0,0,self.load_image(tw.path+"play", + tw.card_w*tw.scale, + tw.card_h*tw.scale)) + self.index = PLAYMASK + elif shape == MATCHMASK: + self.spr = sprNew(tw,0,0,self.load_image(tw.path+"match", + tw.card_w*tw.scale, + tw.card_h*tw.scale)) + self.index = MATCHMASK else: self.shape = shape self.color = color |