From 5ef009920f2f180e21c2b0d910af438a180512b0 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 29 Jun 2016 04:08:40 +0200 Subject: Improved Rayyss --- ray.lua | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.1