From 482562da4c894ed056aea003790e22cf6244bda9 Mon Sep 17 00:00:00 2001 From: elukjanovica Date: Tue, 12 Mar 2024 10:04:57 +0200 Subject: [PATCH] --- main.py | 6 ++---- main_data.json | 2 +- main_puzzle.json | 2 +- main_settings.json | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 097da9d..ec91db4 100644 --- a/main.py +++ b/main.py @@ -186,8 +186,8 @@ else: f_line = [276, 70, 200, 32] s_line = [276, 105, 200, 32] s_button = [479, 70, 24, 40] - arrow1 = (485, 0, 21, 32) - arrow2 = (509, 0, 21, 32) + arrow1 = (506, 0, 26, 34) + arrow2 = (536, 0, 26, 34) spaces2 = (4, 0, 2, 5, 60, 80) spaces3 = [50, 40, 43] if current_style == STYLE_CHOICES[2]: @@ -878,7 +878,6 @@ def render_text_in_rect(long_text, rect_area): return text_surfaces, text_rects -# Example usage rect_area = non_movable_area.copy() rect_area.x += text_size[1] rect_area.width -= text_size[1] @@ -1267,7 +1266,6 @@ while run: surface = pygame.Surface((non_movable_area.width, non_movable_area.height), pygame.SRCALPHA) surface.fill((0, 0, 0, alpha)) - print(alpha) screen.blit(surface, (non_movable_area.x, non_movable_area.y)) render_text("You win !!", (win_area.x, win_area.y), screen, (255, 255, 255, text_alpha), True) diff --git a/main_data.json b/main_data.json index 7512bc2..fb5adba 100644 --- a/main_data.json +++ b/main_data.json @@ -2,7 +2,7 @@ "albums": { "Original images": { "1.png": [ - 0, + 1, 0, 0, 0, diff --git a/main_puzzle.json b/main_puzzle.json index 876ee62..48027d7 100644 --- a/main_puzzle.json +++ b/main_puzzle.json @@ -1 +1 @@ -{"puzzle 4x4": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "puzzle 3x3": [[1, 2, 3], [4, 5, 6], [7, 8, 0]], "current 4x4": {"matrix": [[15, 7, 2, 3], [10, 14, 5, 4], [13, 6, 0, 12], [9, 1, 8, 11]], "selected_image": "images/albums/Original images/1.png"}, "current 3x3": {"matrix": [[6, 7, 0], [3, 4, 1], [5, 8, 2]], "selected_image": "/images/albums/Birds/1.png"}} \ No newline at end of file +{"puzzle 4x4": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "puzzle 3x3": [[1, 2, 3], [4, 5, 6], [7, 8, 0]], "current 4x4": {"matrix": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "selected_image": "images/albums/Original images/1.png"}, "current 3x3": {"matrix": [[6, 7, 0], [3, 4, 1], [5, 8, 2]], "selected_image": "/images/albums/Birds/1.png"}} \ No newline at end of file diff --git a/main_settings.json b/main_settings.json index 34c2016..642d277 100644 --- a/main_settings.json +++ b/main_settings.json @@ -1,11 +1,11 @@ { - "size": "medium", + "size": "big", "style": "classic", "grid": "4x4", "gui color": 0, "music": { "on": true, - "volume": 1, + "volume": 8, "version": "sunny day" }, "sound": {