From a622f8560b30fa6749113cf12af848b0ee2161e0 Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 12 Feb 2026 14:35:15 +0100 Subject: [PATCH] local all the things --- scripts/main.luau | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/main.luau b/scripts/main.luau index d9aa58c..576cd5a 100644 --- a/scripts/main.luau +++ b/scripts/main.luau @@ -16,8 +16,8 @@ local speed = 20 local size = 3 function update(delta: number) - x = x + speed * delta * x_direction - y = y + speed * delta * y_direction + local x = x + speed * delta * x_direction + local y = y + speed * delta * y_direction if x <= size or x >= width - size then x_direction = -x_direction @@ -27,9 +27,9 @@ function update(delta: number) y_direction = -y_direction end - color_x = (x / width) * 255 - color_y = (y / height) * 255 - color_z = 255 - (color_x + color_y) / 2 + local color_x = (x / width) * 255 + local color_y = (y / height) * 255 + local color_z = 255 - (color_x + color_y) / 2 g13.set_color(color_x/2, color_y/2, color_z/2)