From 5b27529cf88eb5300c9e1752ac5cf1f98135d8fd Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 12 Feb 2026 15:24:34 +0100 Subject: [PATCH] x and y is not local, dumbass --- scripts/main.luau | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/main.luau b/scripts/main.luau index 576cd5a..cc116cf 100644 --- a/scripts/main.luau +++ b/scripts/main.luau @@ -16,8 +16,8 @@ local speed = 20 local size = 3 function update(delta: number) - local x = x + speed * delta * x_direction - local y = y + speed * delta * y_direction + x = x + speed * delta * x_direction + y = y + speed * delta * y_direction if x <= size or x >= width - size then x_direction = -x_direction @@ -35,6 +35,8 @@ function update(delta: number) g13.clear() + print(x, y) + for sy = -size,size do for sx = -size,size do g13.set_pixel(x + sx, y + sy, true)