Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/grid.py
diff options
context:
space:
mode:
authorWalter 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)
commitecbd6044a274c8d308487005a7c847b0563dc4c3 (patch)
treefa67654c5a4860f1be4b71fc994c589ab48df67c /grid.py
parent3451063b07803a561a85ea69b1d2e41defde3221 (diff)
card index starts at 0
Diffstat (limited to 'grid.py')
-rw-r--r--grid.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/grid.py b/grid.py
index bbd07fa..69073e8 100644
--- a/grid.py
+++ b/grid.py
@@ -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