From 15b1b3127e636a8a63ff9cdb11dbac68f5218ffe Mon Sep 17 00:00:00 2001 From: the lemons Date: Tue, 20 Dec 2022 17:21:59 -0600 Subject: objects have velocity --- objects/test.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'objects') diff --git a/objects/test.lua b/objects/test.lua index 5c2cb1b..d8c1a65 100644 --- a/objects/test.lua +++ b/objects/test.lua @@ -1,17 +1,15 @@ -local test = {} +local test = {radius = 4} function test:draw() line(-4, 4, 0, -4, 4, 4, -4, 4) - set_color(1, 0.6, 0.7) + set_color(4, 0.6, 0.7) line(4, -4, 0, 4, -4, -4, 4, -4) end function test:init() - self.data.angle = math.random() * math.pi end function test:tick() - self.data.angle = self.data.angle + 0.1 end return {test = test} -- cgit v1.2.3