comparison orpg/mapper/grid.py @ 19:78407d627cba traipse_dev

Beginning of Code Clean-up. Some code untested, may break!
author sirebral
date Sat, 25 Jul 2009 17:24:40 -0500
parents 4385a7d0efd1
children 072ffc1d466f
comparison
equal deleted inserted replaced
18:67b900deb35c 19:78407d627cba
52 self.canvas = canvas 52 self.canvas = canvas
53 self.iso_ratio = RATIO_DEFAULT #2:1 isometric ratio 53 self.iso_ratio = RATIO_DEFAULT #2:1 isometric ratio
54 self.mapscale = 1.0 54 self.mapscale = 1.0
55 self.unit_size = 100 55 self.unit_size = 100
56 self.unit_size_y = 100 56 self.unit_size_y = 100
57 #unit_widest and unit_offset are for the Hex Grid only. these are mathmatics to figure out the exact center of the hex 57 #unit_widest and unit_offset are for the Hex Grid only.
58 #These are mathematics to figure out the exact center of the hex
58 self.unit_widest = 100 59 self.unit_widest = 100
59 self.unit_offset = 100 60 self.unit_offset = 100
60 #size_ratio is the size ajustment for Hex and ISO to make them more accurate 61 #size_ratio is the size ajustment for Hex and ISO to make them more accurate
61 self.size_ratio = 1.5 62 self.size_ratio = 1.5
62 self.snap = True 63 self.snap = True