From 15e12cfff1561f02a8254f251e4c55134a010138 Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Mon, 26 May 2025 15:58:04 -0600 Subject: [PATCH 1/5] chore: update subproject commit reference in Viron --- Viron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Viron b/Viron index d9809d5..8a0a0a8 160000 --- a/Viron +++ b/Viron @@ -1 +1 @@ -Subproject commit d9809d5632aa341f4f340f741158465022c2ff87 +Subproject commit 8a0a0a8f575210653060a7d4ebfaf217726050c1 From 9e64e93e99e69374e45d4358212c94f5143c7ce1 Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Mon, 26 May 2025 17:06:19 -0600 Subject: [PATCH 2/5] fix: remove unnecessary location object creation in drawEnvironment function --- main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/main.py b/main.py index 5814952..0361f3e 100644 --- a/main.py +++ b/main.py @@ -40,7 +40,6 @@ def log(message): exit_after_create = True def drawEnvironment(locations, graphik, locationWidth, locationHeight): for location in locations: - location = Location(location_id=location['locationId'], x=location['x'], y=location['y']) red = random.randrange(50, 200) green = random.randrange(50, 200) blue = random.randrange(50, 200) From fbb364b12d4cb9d2efa4402137e7af42ad708820 Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Mon, 26 May 2025 17:06:40 -0600 Subject: [PATCH 3/5] refactor: remove unused import of Location model in main.py --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index 0361f3e..f73e796 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,5 @@ -from operator import truediv import random import pygame -from Viron.src.main.python.preponderous.viron.models.location import Location from Viron.src.main.python.preponderous.viron.services.environmentService import EnvironmentService from Viron.src.main.python.preponderous.viron.services.locationService import LocationService from graphik import Graphik From 2ec87e38696abf11f653dcfff9824abab757172a Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Mon, 26 May 2025 18:01:54 -0600 Subject: [PATCH 4/5] fix: adjust rectangle drawing logic in drawEnvironment function for correct positioning and sizing --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f73e796..bfcf442 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,9 @@ def drawEnvironment(locations, graphik, locationWidth, locationHeight): red = random.randrange(50, 200) green = random.randrange(50, 200) blue = random.randrange(50, 200) - graphik.drawRectangle(location.get_x() * locationWidth, location.get_y() * locationHeight, locationWidth, locationHeight, (red,green,blue)) + x = location.get_x() * locationWidth + y = location.get_y() * locationHeight + graphik.drawRectangle(x - 1, y - 1, locationWidth * 1.5, locationHeight * 1.5, (red,green,blue)) def main(): pygame.init() From b40db2bb5e1096fc58f0d2d7e8006929b18af7d0 Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Mon, 26 May 2025 18:02:00 -0600 Subject: [PATCH 5/5] chore: update subproject commit reference in Viron --- Viron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Viron b/Viron index 8a0a0a8..f1f3da0 160000 --- a/Viron +++ b/Viron @@ -1 +1 @@ -Subproject commit 8a0a0a8f575210653060a7d4ebfaf217726050c1 +Subproject commit f1f3da02ba4b41675b13529c88ac8fc7d56fba2e