summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-07 19:07:54 +0200
committerAki <nthirtyone@gmail.com>2018-04-07 19:07:54 +0200
commit2e88eed328b7c561cbce8c3ae8faebc694a3983e (patch)
treeac46d831a9af2ae7818a0844921719c87726944b
parent6cef97b6e9ba6878607b1fff08e42ca19b79914f (diff)
downloadroflnauts-2e88eed328b7c561cbce8c3ae8faebc694a3983e.zip
roflnauts-2e88eed328b7c561cbce8c3ae8faebc694a3983e.tar.gz
roflnauts-2e88eed328b7c561cbce8c3ae8faebc694a3983e.tar.bz2
Changed values of colours in mask in newImage
-rw-r--r--not/Sprite.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/not/Sprite.lua b/not/Sprite.lua
index f1d1703..191a7f7 100644
--- a/not/Sprite.lua
+++ b/not/Sprite.lua
@@ -27,8 +27,8 @@ end
function Sprite.newImage (path)
local imagedata = love.image.newImageData(path)
local transparency = function(x, y, r, g, b, a)
- if (r == 0 and g == 128 and b == 64) or
- (r == 0 and g == 240 and b == 6) then
+ if (r == 0 and g == 128/255 and b == 64/255) or
+ (r == 0 and g == 240/255 and b == 6/255) then
a = 0
end
return r, g, b, a