summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-06-29 04:08:40 +0200
committerAki <nthirtyone@gmail.com>2016-06-29 04:08:40 +0200
commit5ef009920f2f180e21c2b0d910af438a180512b0 (patch)
tree88c3af191bcaa3705c611ee138d1a5aab55437b9
parent2b207c4282219bae06eff9589824dc851f014be3 (diff)
downloadroflnauts-5ef009920f2f180e21c2b0d910af438a180512b0.zip
roflnauts-5ef009920f2f180e21c2b0d910af438a180512b0.tar.gz
roflnauts-5ef009920f2f180e21c2b0d910af438a180512b0.tar.bz2
Improved Rayyss
-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