diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:10:38 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:10:38 (GMT) |
commit | ecbd6044a274c8d308487005a7c847b0563dc4c3 (patch) | |
tree | fa67654c5a4860f1be4b71fc994c589ab48df67c /grid.py | |
parent | 3451063b07803a561a85ea69b1d2e41defde3221 (diff) |
card index starts at 0
Diffstat (limited to 'grid.py')
-rw-r--r-- | grid.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -27,6 +27,8 @@ import random from sprites import * from card import * +from constants import * + # # class for defining 4x3 matrix of cards # @@ -45,8 +47,8 @@ class Grid: # card spacing self.left = int((tw.width-(tw.card_w*5.5*tw.scale))/2) self.xinc = int(tw.card_w*1.5*tw.scale) - self.top = int((tw.height-(tw.card_h*3*tw.scale))/2) - self.yinc = int(tw.card_h*tw.scale) + self.top = int((tw.height-(tw.card_h*3.5*tw.scale))/2) + self.yinc = int(tw.card_h*1.25*tw.scale) # Initialize the deck of cards # some loop through all the patterns |