changeset 21:2ee01ad22b36

Less light in a room
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Thu, 01 Mar 2012 23:34:55 +0100
parents 8e16e129d2b5
children 22e298d6cbd4
files mhrok.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mhrok.py	Thu Mar 01 23:29:17 2012 +0100
+++ b/mhrok.py	Thu Mar 01 23:34:55 2012 +0100
@@ -293,9 +293,9 @@
 
     def light_room(self, room):
         (rx, ry), (rw, rh) = room
-        for y in xrange(ry * 12, (ry + rh)* 12, 3):
-            for x in xrange(4 + rx * 20, 4 + (rx + rw)* 20, 5):
-                self.light((16+x, 20+y))
+        for y in xrange(ry * 12+20, (ry + rh)* 12-6, 3):
+            for x in xrange(4 + rx * 20 + 10, 4 + (rx + rw)* 20 - 10, 5):
+                self.light((20+x, 16+y))
 
     def draw(self):
         if self.first_draw: