summaryrefslogtreecommitdiff
path: root/objects/test.lua
blob: 5c2cb1bcab0742c71c33f0d5e136870d97b84c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local test = {}

function test:draw()
	line(-4, 4, 0, -4, 4, 4, -4, 4)
	set_color(1, 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}