ya2 · news · projects · code · about

box
[pmachines.git] / pmachines / items / background.py
index 1161186f7f5bebaf83330cf1ba8ca1a4b70c4817..cdbb1d8dfc775f5858d42ddfc308b4ce46643e5a 100644 (file)
@@ -7,7 +7,7 @@ class Background:
     def __init__(self):
         root = NodePath('background_root')
         root.reparent_to(render)
-        ncols, nrows = 8, 5
+        ncols, nrows = 12, 8
         start_size, end_size = 5, 2.5
         offset = 5
         for col, row in product(range(ncols), range(nrows)):
@@ -16,6 +16,6 @@ class Background:
             model.reparent_to(root)
             total_width, total_height = end_size * ncols, end_size * nrows
             left, bottom = -total_width/2, -total_height/2
-            model.set_pos(left + end_size * col, -offset, bottom + end_size * row)
+            model.set_pos(left + end_size * col, offset, bottom + end_size * row)
         root.clear_model_nodes()
         root.flatten_strong()