Skip to content

Commit

Permalink
makefil
Browse files Browse the repository at this point in the history
  • Loading branch information
spectrenoir06 committed May 31, 2020
1 parent f8eb8fe commit 1cd4f16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion UI/settings/pixel_map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ end
function pixel_map:reload()
love.graphics.setFont(small_font)
local limits = love.graphics.getSystemLimits()
self.cv = love.graphics.newCanvas(math.min(24*mapping.lx,4096), math.min(24*mapping.ly,4096))
local cx, cy = math.min(24*mapping.lx,4096), math.min(24*mapping.ly,4096)
self.cv = love.graphics.newCanvas(cx,cy)
-- print(cx,cy)
love.graphics.setCanvas(self.cv)
local l = 0.8

Expand All @@ -126,6 +128,7 @@ function pixel_map:reload()

for x=1,mapping.lx do
for y=1,mapping.ly do
-- print(x,y,self.map[x], self.map[x] and self.map[x][y])
local v
if self.map[x] then
v = self.map[x][y]
Expand All @@ -134,6 +137,7 @@ function pixel_map:reload()
local ur,ug,ub = hslToRgb((v.uni/8)%1,1,l-( (v.id%170)/170) * (l * 0.8) )

love.graphics.setColor(ur, ug, ub)

love.graphics.rectangle("fill", v.x*24, v.y*24, 24, 24)
love.graphics.setColor(0.2,0.2,0.2,1)
love.graphics.rectangle("line", v.x*24, v.y*24, 24, 24)
Expand All @@ -149,6 +153,7 @@ function pixel_map:reload()
end
end
end
print("helllo")
love.graphics.setCanvas()
end

Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ releases/LED-Master.love: main.lua conf.lua UI/ lib/
love-release

releases/LED-Master.apk: releases/LED-Master.love
mv releases/LED-Master.love ../love2apk/love_decoded/assets/game.love
cp releases/LED-Master.love ../love2apk/love_decoded/assets/game.love
cp ressource/AndroidManifest.xml ../love2apk/love_decoded/
apktool b -o releases/LED-Master.apk ../love2apk/love_decoded

Expand Down

0 comments on commit 1cd4f16

Please sign in to comment.