From 12c4d3ee15263200caf51cc3f6cdbb690b339e1a Mon Sep 17 00:00:00 2001
From: elukjanovica <elukjanovica.e@rkg.lv>
Date: Wed, 28 Feb 2024 23:44:02 +0200
Subject: [PATCH]

---
 main.py          | 9 ++++++---
 main_data.json   | 6 +++---
 main_puzzle.json | 2 +-
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/main.py b/main.py
index a34c41a..c56392b 100644
--- a/main.py
+++ b/main.py
@@ -11,7 +11,7 @@ import numpy as np
 pygame.init()
 FPS = 60
 
-MAIN_PATH = "C:/Users/User/Documents/Coding/Picture Puzzle/"
+MAIN_PATH = "C:/Users/User/Documents/Coding/Picture_Puzzle/"
 #School: MAIN_PATH = "C:/Users/RVKG/Documents/My Palettes/Picture Puzzle/"
 IMAGES_PATH = "images/albums/"
 SIZE_PATH = "images/assets/"
@@ -109,7 +109,7 @@ else:
     puzzle_size = (360, 360)
     non_movable_area = pygame.Rect(18, 48, 360, 360)
     timer_area = pygame.Rect(49, 5, 86, 32)
-    win_area = pygame.Rect(71, 98, 55, 12)
+    win_area = pygame.Rect(200, 100, 55, 12)
     size = [50, 55, 120, 35]
     cons = [35, 455, 25, 13, 26]
     scaled_size = (43, 48, 310, 310)
@@ -716,10 +716,13 @@ else:
     ver2_layer = sprite_sheet.get_sprite((798, 156), WIDTH, HEIGHT, color_key=(255, 0, 128))
 
 path_components = puzzle_data[f'current {puzzle_version}']['selected_image'].split('/')[2:]
+print(path_components)
+# why there was an error some time ago?
 current_data = storage[path_components[0]]
 for component in path_components[1:]:
     current_data = current_data[component]
-    
+
+
 completed = current_data[1]
 not_shuffled = current_data[2]
 timer_text = current_data[5]
diff --git a/main_data.json b/main_data.json
index c1c04e0..71e8b9b 100644
--- a/main_data.json
+++ b/main_data.json
@@ -94,7 +94,7 @@
       },
       "Birds": {
          "1.png": [
-            1,
+            0,
             0,
             0,
             0,
@@ -116,8 +116,8 @@
             0,
             0,
             0,
-            "00:00:00",
-            "00:00:00",
+            "00:00:01",
+            "00:00:01",
             0
          ]
       }
diff --git a/main_puzzle.json b/main_puzzle.json
index aab31ab..563dead 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": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "selected_image": "/images/albums/Birds/1.png"}, "current 3x3": {"matrix": [[3, 6, 7], [5, 4, 1], [0, 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": [[6, 8, 0, 12], [1, 11, 13, 15], [5, 7, 14, 4], [2, 9, 10, 3]], "selected_image": "/images/albums/Birds/3.png"}, "current 3x3": {"matrix": [[3, 6, 7], [5, 4, 1], [0, 8, 2]], "selected_image": "/images/albums/Birds/1.png"}}
\ No newline at end of file