diff options
author | Aki <nthirtyone@gmail.com> | 2016-06-29 04:08:40 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-06-29 04:08:40 +0200 |
commit | 5ef009920f2f180e21c2b0d910af438a180512b0 (patch) | |
tree | 88c3af191bcaa3705c611ee138d1a5aab55437b9 | |
parent | 2b207c4282219bae06eff9589824dc851f014be3 (diff) | |
download | roflnauts-5ef009920f2f180e21c2b0d910af438a180512b0.zip roflnauts-5ef009920f2f180e21c2b0d910af438a180512b0.tar.gz roflnauts-5ef009920f2f180e21c2b0d910af438a180512b0.tar.bz2 |
Improved Rayyss
-rw-r--r-- | ray.lua | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |