remove debug messages
This commit is contained in:
1
main.lua
1
main.lua
@@ -37,6 +37,7 @@ if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
|
|||||||
function love.load()
|
function love.load()
|
||||||
love.window.setTitle('SpiderCut')
|
love.window.setTitle('SpiderCut')
|
||||||
love.graphics.setDefaultFilter('nearest', 'nearest')
|
love.graphics.setDefaultFilter('nearest', 'nearest')
|
||||||
|
love.graphics.setLineJoin( "miter" )
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
|
|
||||||
push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT, {
|
push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT, {
|
||||||
|
|||||||
@@ -39,13 +39,9 @@ function Player:init(def, level )
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Player:isMoveAllowed(point)
|
function Player:isMoveAllowed(point)
|
||||||
print("Player:isMoveAllowed " .. tostring(point[1]) .. "," .. tostring(point[2]))
|
|
||||||
point = {point[1] + self.width/2, point[2] + self.width/2}
|
point = {point[1] + self.width/2, point[2] + self.width/2}
|
||||||
print("Player:isMoveAllowed " .. tostring(point[1]) .. "," .. tostring(point[2]))
|
|
||||||
for i,segment in pairs (self.trailSegments) do
|
for i,segment in pairs (self.trailSegments) do
|
||||||
if segment:pointInSegment(point) then
|
if segment:pointInSegment(point) then
|
||||||
print("Player:isMoveAllowed = false")
|
|
||||||
print_r(segment)
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user