summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ray.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/ray.lua b/ray.lua
index 486c505..433ef1c 100644
--- a/ray.lua
+++ b/ray.lua
@@ -34,10 +34,6 @@ function Ray:draw(offset_x, offset_y, scale)
if y > m.center_y then
dy = -dy
end
- local dx = m.width
- if x > m.center_x then
- dx = -dx
- end
- love.graphics.line((m.center_x+offset_x+dx)*scale,(m.center_y+offset_y+dy)*scale,(x+offset_x)*scale,(y+dy*0.7+offset_y)*scale)
+ love.graphics.line((-x+offset_x)*scale,(-y+offset_y-dy*0.7)*scale,(x+offset_x)*scale,(y+dy*0.7+offset_y)*scale)
love.graphics.setLineWidth(1)
end