Remove some debug lines
This commit is contained in:
parent
8aad3c79e9
commit
a00100de98
1 changed files with 0 additions and 5 deletions
5
game.lua
5
game.lua
|
@ -230,8 +230,6 @@ function _M.getExtendedSprites()
|
||||||
goto continue
|
goto continue
|
||||||
end
|
end
|
||||||
|
|
||||||
print(screenSprite)
|
|
||||||
|
|
||||||
-- Hide sprites near computed sprites
|
-- Hide sprites near computed sprites
|
||||||
for s=1,#sprites,1 do
|
for s=1,#sprites,1 do
|
||||||
local sprite = sprites[s]
|
local sprite = sprites[s]
|
||||||
|
@ -246,8 +244,6 @@ function _M.getExtendedSprites()
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
|
|
||||||
print(util.table_to_string(extended))
|
|
||||||
|
|
||||||
return extended
|
return extended
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -289,7 +285,6 @@ function _M.getInputs()
|
||||||
disty = math.abs(extended[i]["y"]+cameraY - (partyY+dy*TILE_SIZE))
|
disty = math.abs(extended[i]["y"]+cameraY - (partyY+dy*TILE_SIZE))
|
||||||
if distx < TILE_SIZE / 2 and disty < TILE_SIZE / 2 then
|
if distx < TILE_SIZE / 2 and disty < TILE_SIZE / 2 then
|
||||||
|
|
||||||
--print(screenX .. "," .. screenY .. " to " .. extended[i]["x"]-layer1x .. "," .. extended[i]["y"]-layer1y)
|
|
||||||
inputs[#inputs] = extended[i]["good"]
|
inputs[#inputs] = extended[i]["good"]
|
||||||
local dist = math.sqrt((distx * distx) + (disty * disty))
|
local dist = math.sqrt((distx * distx) + (disty * disty))
|
||||||
if dist > TILE_SIZE / 2 then
|
if dist > TILE_SIZE / 2 then
|
||||||
|
|
Loading…
Add table
Reference in a new issue