summaryrefslogtreecommitdiff
path: root/objects/test.lua
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-12-20 17:21:59 -0600
committerthe lemons <citrons@mondecitronne.com>2022-12-21 00:12:16 -0600
commit15b1b3127e636a8a63ff9cdb11dbac68f5218ffe (patch)
treeaf710fe75c1081e2d9f119ae3280d2f662eea859 /objects/test.lua
parent94f7fc0d3e410a7c7dc6f6cffe0ed87238608391 (diff)
objects have velocity
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}