Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/card.py
diff options
context:
space:
mode:
authorWalter 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)
commite36e067ab3559cfc06689fc7d273eb606800b3f4 (patch)
tree06bbe5a9884bef69fd0a169819ecb42e611d5650 /card.py
parent708687fb37db5d61ddcffc16199fc8130d07b2d1 (diff)
using constants
Diffstat (limited to 'card.py')
-rw-r--r--card.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/card.py b/card.py
index f8a8815..f13462f 100644
--- a/card.py
+++ b/card.py
@@ -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