Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/card.py
diff options
context:
space:
mode:
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