From d93cddcb6e389eb4f531d018023ced0ad3b48cf0 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 4 Jun 2025 20:32:25 -0500 Subject: [PATCH] Remove debug render objects. --- main.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 8c957e6..1e554a9 100644 --- a/main.py +++ b/main.py @@ -21,12 +21,12 @@ RENDER_BUFFER = 50 SPEED = 700 # Pixels per second # Grid settings -GRID_WIDTH = 20 # Number of cells horizontally -GRID_HEIGHT = 15 # Number of cells vertically +GRID_WIDTH = 30 # Number of cells horizontally +GRID_HEIGHT = 25 # Number of cells vertically CELL_SIZE = 20 # Size of each cell in pixels -DEFAULT_TPS = 20 # Number of ticks per second for the simulation -FOOD_SPAWNING = False +DEFAULT_TPS = 200 # Number of ticks per second for the simulation +FOOD_SPAWNING = True def draw_grid(screen, camera, showing_grid=True): @@ -144,9 +144,6 @@ def main(): # Initialize world world = World(CELL_SIZE, (CELL_SIZE * GRID_WIDTH, CELL_SIZE * GRID_HEIGHT)) - world.add_object(DebugRenderObject(Position(x=0, y=0))) - world.add_object(DebugRenderObject(Position(x=20, y=0))) - # sets seed to 67 >_< random.seed(67)