remove debug messages

This commit is contained in:
2021-12-27 17:25:07 +01:00
parent 56ffd396bc
commit e0ac6abaef
2 changed files with 1 additions and 4 deletions

View File

@@ -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, {

View File

@@ -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