22 --updates the object's state
23 function Line
:update(delta
)
24 Object
.update(self
, delta
)
27 --default draw routine
29 draw_line(self
.x
+self
.x1
,self
.y
+self
.y1
,self
.x
+self
.x2
,self
.y
+self
.y2
,self
.r
,self
.g
,self
.b
,self
.a
)
32 --there is no predefined collision behavior
33 -- "ids" is the list of Rect ids that have been collided with
34 -- "type" is the type of the Object that is colliding
35 function Line
:collide(type, ids
)