summaryrefslogtreecommitdiff
path: root/objects/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'objects/test.lua')
-rw-r--r--objects/test.lua6
1 files changed, 2 insertions, 4 deletions
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}