[WIP] Lluita contra jefe.
This commit is contained in:
@@ -12,13 +12,18 @@ function point.new(_hab,_x,_y,_x_offset,_y_offset,_id)
|
||||
w=8,
|
||||
h=8,
|
||||
draw=point.draw,
|
||||
bb={x=0,y=0,w=1,h=1},
|
||||
}
|
||||
end
|
||||
|
||||
function point:draw()
|
||||
function point:draw(fill)
|
||||
local scr_x, scr_y = viewp:screen_coords( self.x, self.y )
|
||||
-- debug rect
|
||||
draw.rect(scr_x,scr_y,self.w,self.h,3)
|
||||
if not fill then
|
||||
draw.rect(scr_x,scr_y,self.w,self.h,3)
|
||||
else
|
||||
draw.rectf(scr_x,scr_y,self.w,self.h,3)
|
||||
end
|
||||
end
|
||||
|
||||
function point:update()
|
||||
|
||||
Reference in New Issue
Block a user