X-Git-Url: http://git.ya2.it/?p=pmachines.git;a=blobdiff_plain;f=pmachines%2Fitems%2Fbackground.py;h=cdbb1d8dfc775f5858d42ddfc308b4ce46643e5a;hp=1161186f7f5bebaf83330cf1ba8ca1a4b70c4817;hb=1be87278d00d9e951756a0ada2b1ac7b227447b6;hpb=4894bb48c5e511c26d38f58c1bebb32d181e7a7f diff --git a/pmachines/items/background.py b/pmachines/items/background.py index 1161186..cdbb1d8 100644 --- a/pmachines/items/background.py +++ b/pmachines/items/background.py @@ -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()